Different output on codechef ide and other ide's

i ran a solution to a current long challenge problem on codechef ide and i was getting different output for the same input on codechef ide and other ide’s both online and offline .
Any guess as to why that would be happening.

Check for undefined behavior in your code. (Cases such as out of bounds exception, dangling else, etc.)