getting error for big inputs

i have just now submitted the solution for question
i have got 20 points but in my solution i have already declared array of size >10^5 ,but still getting the error for big data.
can anyone please help me out wat’s the actual problem in my submission.where i am geting wrong…

You cannot ask for help during the contest - read the guideines please.

thanks for the reply.i didn’t know it…hoping for the answers after the contest ended…