记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:6:9: error: 'cout' was not declared in this scope
    6 |         cout<<"这n个整数:"<<endl;
      |         ^~~~
foo.cc:6:29: error: 'endl' was not declared in this scope
    6 |         cout<<"这n个整数:"<<endl;
      |                             ^~~~
foo.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin>>n:
      |         ^~~
foo.cc:10:10: error: 'else' without a previous 'if'
   10 |          else
      |          ^~~~
foo.cc:11:17: error: 'b' was not declared in this scope
   11 |          {cout<<b a<<endl;}
      |                 ^
foo.cc:12:12: error: 'a' was not declared in this scope
   12 |         if(a%2=0)
      |            ^
foo.cc:13:19: error: 'end' was not declared in this scope
   13 |         {cout<<a<<end}
      |                   ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1082 xf1-5排序与删除
比赛
2022年迎新赛(第二场)
语言
C++
递交时间
2022-08-27 16:27:40
评测时间
2022-08-27 16:27:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes