Https://hack.codingblocks.com/contests/c/537/195

This is my code for the above question https://ide.codingblocks.com/s/34789. I’m getting a partial score in this one. please help.

Your code is completely correct.
There is a very small mistake.

Your line 27 is
cout<<“Invalid operation. Try again.”;

Instead it has to be
cout<<“Invalid operation. Try again.”<<endl;

You missed the endl. Otherwise your code is completely correct.

You have to be very careful as the online judge checks each character of your output and it must exactly match with the one defined.