While solving theCodeforces Round #192 (Div. 2), problem: (A) Cakeminator, I noticed that the output differs whenever I use the gcc compiler as opposed to the microsoft one.
The solution was judged correct, but only when I used the microsoft c++ compiler.
Here are the links to the two solutions:
Can anyone point out what causes this weird behavior?








