SISSUES problem

I recently came upon a fairly easy looking problem from an external contest, written by @katana_handler, named SISSUES. My code is: https://ideone.com/KLcWVr . All it does is a really simple approach to the problem, adding whenever input is ‘+’ and vice-versa. Can anyone guide me where I am wrong? Thanks in advance when you see this :slight_smile:

link is not working

Sorry, the full-stop messed it up, edited that. Please see to it again. Thanks.

Change line 32 to bool b = true;

Istg this is so annoying. I thought I initialised it but never looked back. Thank you so much dude