记录详情

Compile Error

foo.cc: In function ‘int main()’:
foo.cc:9:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
    9 |                 if(b<c)
      |                 ^~
foo.cc:10:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
   10 |                         median=b;max=c;
      |                                  ^~~
foo.cc:11:17: error: ‘else’ without a previous ‘if’
   11 |                 else// a<b  b>c
      |                 ^~~~
foo.cc:15:25: error: ‘else’ without a previous ‘if’
   15 |                         else
      |                         ^~~~
foo.cc:18:9: error: ‘else’ without a previous ‘if’
   18 |         else// b<a
      |         ^~~~
foo.cc:22:17: error: ‘else’ without a previous ‘if’
   22 |                 else// b<a  a>c
      |                 ^~~~
foo.cc:26:25: error: ‘else’ without a previous ‘if’
   26 |                         else
      |                         ^~~~

信息

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