output of compiler

I am running chef and number game program on ubuntu and it compiles and gives the desired output but it gives a strange 10 digit number as output in codechef c compiler?

Please make sure that you are using the access specifier which printing the answer correctly. If you are using an integer variable and printing it using %lld, it could give the wrong answer.