Markets end flat; Q2 earnings eyed