记录详情

Compile Error

foo.cc: In function ‘int main()’:
foo.cc:16:20: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   16 |                 if(c<a)
      |                    ^
foo.cc:16:22: error: ‘a)’ was not declared in this scope
   16 |                 if(c<a)
      |                      ^~~
foo.cc:18:17: error: expected primary-expression before ‘else’
   18 |                 else
      |                 ^~~~
foo.cc:17:50: error: expected ‘)’ before ‘else’
   17 |                    cout<<b<<"<"<<a<<"<"<<c<<endl;
      |                                                  ^
      |                                                  )
   18 |                 else
      |                 ~~~~                              
foo.cc:16:19: note: to match this ‘(’
   16 |                 if(c<a)
      |                   ^
foo.cc:5:19: warning: unused variable ‘min’ [-Wunused-variable]
    5 |         int a,b,c,min;
      |                   ^~~

信息

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