You don't provide full code but if you untie cin you could end up waiting
for data before any of your output is shown.  So, for example, you might
have printed a solution but not really flushed it before blocking waiting
for a new problem.

If you are asking for input it would be best to not untie cin.

On Tue, Apr 16, 2019 at 10:21 AM Shubham Nagaria <[email protected]>
wrote:

> Golf Gophers was an interactive problem that was asked recently in CodeJam
> Round A.
>
> I used fast IO during the contest but I was getting TLE verdict because i
> was using :
>
> ios_base::sync_with_stdio(false);cin.tie(NULL);
>
> After the contest, when I tried to run it without the above line of code
> it passed.
>
> Now this line of code is being used by C++ programmers for ages for fast
> IO but for some reason it didn't work during the contest.
>
> Can we not use fast io in interactive problems or is this a bug in
> compiler?
>
> --
> 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/103453af-e0c6-42be-9163-fa51aef417da%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAE%3D7p0TSdXMbng5ykwTmviAk1xOEt_jMAD%2B_aN8i7Psn7YJEAA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to