Please read the new rule regarding the restriction on the use of AI tools. ×

In c++, macOS chip — M1. cin.tie(0) doesn't work

Revision en1, by giang.best.1, 2022-02-27 14:37:18

Hello, I just switched to macOS M1. Now I'm using VSC to code c++ on codeforces. But I just realized cin.tie(0) doesn't work like in windows. In windows, after entering all input, the output will be written later. But now, the output comes before I finish the input (I'm talking about the problem with multiple test cases). Does anyone have the same problem, can help me to fix it? Thank you guys so much!

Tags c++, macos, m1 chip

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English giang.best.1 2022-02-27 14:37:18 457 Initial revision (published)