Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:14:5: error: 'ios' has not been declared
   14 |     ios::sync_with_stdio(false);
      |     ^~~
/in/foo.cc:16:5: error: 'cin' was not declared in this scope
   16 |     cin>>t;
      |     ^~~
/in/foo.cc:8:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
    7 | #include<cstdlib>
  +++ |+#include <iostream>
    8 | using namespace std;
/in/foo.cc:25:23: error: 'cout' was not declared in this scope
   25 |         if(temp||n&1) cout<<"lolanv"<<endl;
      |                       ^~~~
/in/foo.cc:25:23: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
/in/foo.cc:25:39: error: 'endl' was not declared in this scope
   25 |         if(temp||n&1) cout<<"lolanv"<<endl;
      |                                       ^~~~
/in/foo.cc:8:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
    7 | #include<cstdlib>
  +++ |+#include <ostream>
    8 | using namespace std;
/in/foo.cc:26:14: error: 'cout' was not declared in this scope
   26 |         else cout<<"Wind"<<endl; //只有全是对子 才会让wind赢
      |              ^~~~
/in/foo.cc:26:14: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
/in/foo.cc:26:28: error: 'endl' was not declared in this scope
   26 |         else cout<<"Wind"<<endl; //只有全是对子 才会让wind赢
      |                            ^~~~
/in/foo.cc:26:28: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?

信息

递交者
类型
递交
题目
P1160 校庆的娱乐
语言
C++
递交时间
2025-03-21 18:33:04
评测时间
2025-03-21 18:33:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes