The lead game

,

What is wrong in my solution…it is not accepting it?

LINK:https://www.codechef.com/viewsolution/23625909

//