记录详情

Compile Error

foo.cc: In function ‘int main()’:
foo.cc:6:9: error: ‘cin’ was not declared in this scope
    6 |         cin>>a>>b>>c;
      |         ^~~
foo.cc:9:17: error: ‘swap’ was not declared in this scope
    9 |                 swap(a,b);
      |                 ^~~~
foo.cc:11:17: error: ‘swap’ was not declared in this scope
   11 |                 swap(b,c);
      |                 ^~~~
foo.cc:13:17: error: ‘swap’ was not declared in this scope
   13 |                 swap(a,c);
      |                 ^~~~
foo.cc:15:9: error: ‘cout’ was not declared in this scope
   15 |         cout<<a<<""<<b<<""<<c<<endl;
      |         ^~~~
foo.cc:15:32: error: ‘endl’ was not declared in this scope
   15 |         cout<<a<<""<<b<<""<<c<<endl;
      |                                ^~~~
foo.cc:17:17: error: expected ‘;’ before ‘}’ token
   17 |         return 0
      |                 ^
      |                 ;
   18 | }
      | ~                

信息

递交者
类型
递交
题目
A1-1 分支结构练习:三数排序
比赛
南师大(含泰州学院)2024年新生赛(第一场)
语言
C++
递交时间
2024-08-16 10:39:23
评测时间
2024-08-16 10:39:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes