antirsi's blog

By antirsi, 12 years ago, In English

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:

gcc

msc++

Can anyone point out what causes this weird behavior?

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it