NZEC error not able to slove

I am getting runtime error (NZEC)
Please help i am unable to solve most of the problems because of this…
Problem=https://www.codechef.com/SDPCB21/problems/QUALPREL
my solution=https://www.codechef.com/viewsolution/51344928