https://www.codechef.com/COOK107B/problems/ANTEATER

https://www.codechef.com/COOK107B/problems/ANTEATER

solution link: https://www.codechef.com/viewsolution/24929714

can anyone please tell me the error in the code