I was solving the Street Parade from SPOJ and here’s my SOLUTION. After getting a ‘no’ ans the program’s outputs all are changed to ‘no’,but I’m using a bool variable. For the same testcase it shows ‘yes’ (before any ‘no’ testcase) and again ‘no’(after getting ‘no’ testcase).
Please help out. Thanks.