Whats wrong in my code?

https://www.codechef.com/submit/S06E06
Here is my solution for the yesterdays CODERS.
Please help me find where I am Wrong.