Same code giving RE in Codechef IDE but works fine in my local, why?

i was solving on problem on codechef so when i submitted it, the result was RE but the same solution works fine in local IDE, why is this happening…? help !!!

Ps: i even used long long… while no of testcases and inputs are in < 10 ^ 9.
ans there were no extra declared debug commands…

your code must not be fullfiling every test case ,check your code with various inputs and get the problem debugged