same input different output

well after running a program on ubuntu g++ compiler I am getting different output for the same input what is the problem?

If you think someone will hack into your system, see your code and solve your problem, you’re wrong.
Please post your code here so that other people can see it