记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(b>c)
   ^~
/in/foo.cc:9:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
       max=a;mid=b;
             ^~~
/in/foo.cc:10:3: error: 'else' without a previous 'if'
   else
   ^~~~
/in/foo.cc:11:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
       if(a>c)
       ^~
/in/foo.cc:12:17: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
           max=a;mid=c;
                 ^~~
/in/foo.cc:13:7: error: 'else' without a previous 'if'
       else
       ^~~~
/in/foo.cc:16:2: error: 'else' without a previous 'if'
  else
  ^~~~
/in/foo.cc:18:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(a>c)
   ^~
/in/foo.cc:19:10: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    max=b;mid=a;
          ^~~
/in/foo.cc:20:3: error: 'else' without a previous 'if'
   else
   ^~~~
/in/foo.cc:22:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    if(b>c)
    ^~
/in/foo.cc:23:11: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     max=b;mid=c;
           ^~~
/in/foo.cc:24:4: error: 'else' without a previous 'if'
    else
    ^~~~

信息

递交者
类型
递交
题目
A1-2 分支结构练习:三数的特征值
语言
C++
递交时间
2021-01-28 20:47:05
评测时间
2021-01-28 20:47:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes