3 ms·
Whenever this question is asked, it's almost always std::sync_with_stdio.
by jemfinch 15y ago
Whenever this question is asked, it's almost always std::sync_with_stdio.
- codemac 15y agoI think it's a larger problem that defaults in standard libraries are rarely understood. For python OR for C++. I'm asking to the larger Hacker News community here, how do you illustrate the dependencies of a standard library API call without making it more complicated? Syntax is nothing, understanding is everything.
- 16s 15y agoYes, and it's an easy fix as the accepted answer shows: cin.sync_with_stdio(false);