Why getting WA, MAXIMUM AND problem from june lunch time

Can someone please tell why am I getting WA in the code. Subtask 1 is giving AC.]
My code: https://ideone.com/cMdtRd
THANKS IN ADVANCED!!!