Shopping game c++ august

Getting right output for samples but fails in all test cases
Question - https://hack.codingblocks.com/contests/c/509/1427
Solution- https://ide.codingblocks.com/#/s/28527

https://ide.codingblocks.com/#/s/28532

I have marked the changes.

it worked…actually all I forgot was to write a=1 inside the loop and rest of the change 1 was implemented already and change 2 was a typo while copying the solution to online IDE. Anyways thank you.

1 Like