Unable to understand the error in my solution.

I am getting a runtime error in the solution https://www.codechef.com/viewsolution/22099495 of the problem chef and science problem

//