Code isn't passing any testcases

My output is correct but all the testcases are failing. I tried this code on leetcode and all 96 testcases passed. Please help. Code: https://ide.codingblocks.com/s/651923

hi @mitrapranav0027_5d705c8b616e0add
try using long long int, instead of int… it might work…

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.