Doubt in --Farmer Frenzy

I am not able to get why my code is giving wrong ans for 1 test case.
pls help me out.
link to my code is–https://ide.codingblocks.com/s/77426

beacuse Test case is wrong. will ask the admin to update it.

I’ve the same issue. https://ide.codingblocks.com/s/380848
this is the code and I’m getting tle for one test case.