ConquerCode's blog

By ConquerCode, history, 2 years ago, In English
  • Vote: I like it
  • -16
  • Vote: I do not like it

| Write comment?
»
2 years ago, # |
  Vote: I like it +5 Vote: I do not like it

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.