Can't get my code correct even though the test cases are running correctly

https://ide.codingblocks.com/s/178693 Any TA who can help me with the Codechef February challenge problem 1?
it is accepting my answer even though the test cases are running perfectly.

@priyeshant1104

We cannot help you while the contest is running but I can provide you a hint
some of the variables in your code could go out of their range
Like “int” can only hold values from -2,147,483,647 to 2,147,483,647