Why error is thrown

My code link https://www.codechef.com/viewsolution/15610125

I need repo points to upload a pic pls upvote .

Can you please explain your code?

You already have that much. Isnt the req 60 karma?