Not able to find the issue with the code

I am not able to pass any test case ,but when i run the code using testcases given in hint,i got the correct output,please help.

@Vikash
Please share your code using ide.codingblocks.com so I can help you out.

https://ide.codingblocks.com/s/108158

@Vikash
Use long long int for your code instead of int.