记录详情

Compile Error

foo.cc: In function ‘int main()’:
foo.cc:4:9: error: ‘cin’ was not declared in this scope; did you mean ‘min’?
    4 |         cin>>a>>b>>c;
      |         ^~~
      |         min
foo.cc:7:25: error: ‘cout’ was not declared in this scope
    7 |                         cout<<a<<"<"<<b<<"<"<<c<<endl;    // 1 2 3
      |                         ^~~~
foo.cc:7:50: error: ‘endl’ was not declared in this scope
    7 |                         cout<<a<<"<"<<b<<"<"<<c<<endl;    // 1 2 3
      |                                                  ^~~~
foo.cc:11:33: error: ‘cout’ was not declared in this scope
   11 |                                 cout<<a<<"<"<<c<<"<"<<b<<endl; // 1 3 2
      |                                 ^~~~
foo.cc:11:58: error: ‘endl’ was not declared in this scope
   11 |                                 cout<<a<<"<"<<c<<"<"<<b<<endl; // 1 3 2
      |                                                          ^~~~
foo.cc:13:33: error: ‘cout’ was not declared in this scope
   13 |                                 cout<<c<<"<"<<a<<"<"<<b<<endl; // 2 3 1
      |                                 ^~~~
foo.cc:13:58: error: ‘endl’ was not declared in this scope
   13 |                                 cout<<c<<"<"<<a<<"<"<<b<<endl; // 2 3 1
      |                                                          ^~~~
foo.cc:17:25: error: ‘cout’ was not declared in this scope
   17 |                         cout<<b<<"<"<<a<<"<"<<c<<endl; // 2 1 3
      |                         ^~~~
foo.cc:17:50: error: ‘endl’ was not declared in this scope
   17 |                         cout<<b<<"<"<<a<<"<"<<c<<endl; // 2 1 3
      |                                                  ^~~~
foo.cc:21:33: error: ‘cout’ was not declared in this scope
   21 |                                 cout<<b<<"<"<<c<<"<"<<a<<endl; // 3 1 2
      |                                 ^~~~
foo.cc:21:58: error: ‘endl’ was not declared in this scope
   21 |                                 cout<<b<<"<"<<c<<"<"<<a<<endl; // 3 1 2
      |                                                          ^~~~
foo.cc:23:33: error: ‘cout’ was not declared in this scope
   23 |                                 cout<<c<<"<"<<b<<"<"<<a<<endl; // 3 2 1
      |                                 ^~~~
foo.cc:23:58: error: ‘endl’ was not declared in this scope
   23 |                                 cout<<c<<"<"<<b<<"<"<<a<<endl; // 3 2 1
      |                                                          ^~~~
foo.cc:3:20: warning: unused variable ‘min’ [-Wunused-variable]
    3 |         int a,b,c, min;
      |                    ^~~

信息

递交者
类型
自测
题目
A1-1 分支结构练习:三数排序
语言
C++
递交时间
2025-08-13 14:22:46
评测时间
2025-08-13 14:22:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes