You set streams to not sync with stdio and then try to flush using stdio after 
writing to a stream. If you flush the stream instead it works correctly (either 
using std::endl instead of \n or adding a << std::flush to the end of your 
cout).

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/fee9af81-b872-49bd-8e9d-d4af54fd2c42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to