Test cases 0,1,2 not running

programme:https://ide.codingblocks.com/s/208060#
Can you please check.

@nautiyal.anurag200501 try taking long long int instead of integer data type

it is still not working

@nautiyal.anurag200501 I feel solution is almost ok try to to change some of the things that you might get an AC

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.