Why does "ios::sync_with_stdio(false)" cause a "fread" error?

Revision en1, by platelet, 2023-02-09 06:15:52

Wrong answer submission and Accepted submission

You can compare them, the only difference is that the Wrong answer submission has an extra cin.tie(0)->sync_with_stdio(0);

I didn't use cin and cout, just fread and fwrite.

Can someone tell me if there is something wrong with my usage or a compiler bug.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English platelet 2023-02-09 06:15:52 521 Initial revision (published)