rt,当两者同时使用时,会使评测产生奇怪的报错,(WA,输出文件不匹配等),现在已知在本地跑也会出现输出缺少的问题,只要去掉 fclose(stdout); 或 ios::sync_with_stdio(false); 中的一句或者在 fclose(stdout); 前加上 cout<<endl; 或 cout.flush(); 便可通过。有没有大佬知道具体是什么问题(只知道大概和输出流有关)。
fclose(stdout);
ios::sync_with_stdio(false);
cout<<endl;
cout.flush();