C output stream is desychronized with itself?

Правка en1, от Heisenbug, 2015-09-11 02:33:00

In the submission http://codeforces.me/contest/577/submission/12949782 I first printf "YES" and then I printf some numbers. In the output, the numbers came out first and then the "YES". Documentation for std::ios_base::sync_with_stdio generally seems to indicate that bad effects from disabling it should only occur if you use both C- and C++-style I/O. Here I only used C-style output throughout, yet the print statements were mixed. Is this really an allowed behavior for the library?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Heisenbug 2015-09-11 02:33:00 532 Initial revision (published)