Whats the mistake in my code?

i am getting the exact output, but the cases arent correct. can u please help

@blackstorm2641_e27b69690b2cfddc, share the code or u can refer to https://ide.codingblocks.com/s/655914