WA in SHIVIGOD

https://www.codechef.com/viewsolution/29101902

Can someone tell what is wrong in the code

can someone have a look at my code cause i am unable to get what’s wrong