Блог пользователя ConquerCode

Автор ConquerCode, история, 2 года назад, По-английски
  • Проголосовать: нравится
  • -16
  • Проголосовать: не нравится

»
2 года назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

About sync_with_stdio:

If any input or output operation has occurred using the standard streams prior to the call, the effect is implementation-defined. Meaning: it depends on compiler if sync_with_stdio used after read/write from/to cin/cout.

So call this exactly once before any read/write operation.