Which test cases make my code fail?

Can anyone tell me for which test cases my code CodeChef: Practical coding for everyone for problem CodeChef: Practical coding for everyone fails?
I made some changes on line 24 & 32 and did get a working solution CodeChef: Practical coding for everyone but I have no idea why it works now and didn’t work before.
Can anyone tell me where I can get the test cases to this problem from?

Edit: Sorry for the really messy code.