Why wrong at 1 test case?

My code - “https://ide.codingblocks.com/s/109980”,
is wrong at one test case ? why?
is it due to limit or something else?

Hi!
Please check the comments in the following code:


Thanks!

It is also giving wrong answer

Hey Ayush!
Please check this code:

Thanks!