Getting wrong answer

I have checked my program in an ide and it was showing the right answer but here it is showing the opposite hence check once what’s wrong

Save your code on ide.codingblocks.com and share its link.

Can you look into the problem?