记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:2: error: expected initializer before 'cin'
  cin>>a>>b>>c;
  ^~~
/in/foo.cc:9:4: error: 'cout' was not declared in this scope
    cout<<a<<"<"<<b<<"<"<<c<endl; //123
    ^~~~
/in/foo.cc:9:28: error: 'endl' was not declared in this scope
    cout<<a<<"<"<<b<<"<"<<c<endl; //123
                            ^~~~
/in/foo.cc:13:5: error: 'cout' was not declared in this scope
     cout<<a<<"<"<<c<<"<"<<b<<endl;//132
     ^~~~
/in/foo.cc:13:30: error: 'endl' was not declared in this scope
     cout<<a<<"<"<<c<<"<"<<b<<endl;//132
                              ^~~~
/in/foo.cc:15:5: error: 'cout' was not declared in this scope
     cout<<C<<"<"<<a<<"<"<<B<<endl;//231
     ^~~~
/in/foo.cc:15:11: error: 'C' was not declared in this scope
     cout<<C<<"<"<<a<<"<"<<B<<endl;//231
           ^
/in/foo.cc:15:27: error: 'B' was not declared in this scope
     cout<<C<<"<"<<a<<"<"<<B<<endl;//231
                           ^
/in/foo.cc:15:30: error: 'endl' was not declared in this scope
     cout<<C<<"<"<<a<<"<"<<B<<endl;//231
                              ^~~~
/in/foo.cc:19:4: error: 'cout' was not declared in this scope
    cout<<b<<"<"<<a<<"<"<<c<<endl;//213
    ^~~~
/in/foo.cc:19:29: error: 'endl' was not declared in this scope
    cout<<b<<"<"<<a<<"<"<<c<<endl;//213
                             ^~~~
/in/foo.cc:23:5: error: 'cout' was not declared in this scope
     cout<<b<<"<"<<c<<"<"<<a<<endl;//312
     ^~~~
/in/foo.cc:23:30: error: 'endl' was not declared in this scope
     cout<<b<<"<"<<c<<"<"<<a<<endl;//312
                              ^~~~
/in/foo.cc:25:5: error: 'cout' was not declared in this scope
     cout<<c<<"<"<<b<<"<"<<a<<endl;//321
     ^~~~
/in/foo.cc:25:30: error: 'endl' was not declared in this scope
     cout<<c<<"<"<<b<<"<"<<a<<endl;//321
                              ^~~~
/in/foo.cc:16:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
  else
  ^~~~
/in/foo.cc:26:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
   return 0;
   ^~~~~~

信息

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