记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(b>c)
   ^~
/in/foo.cc:12:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    mid=b;
    ^~~
/in/foo.cc:14:3: error: 'else' without a previous 'if'
   else
   ^~~~
/in/foo.cc:15:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    if(a>c)
    ^~
/in/foo.cc:17:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     mid=c;
     ^~~
/in/foo.cc:18:5: error: 'else' without a previous 'if'
     else
     ^~~~
/in/foo.cc:22:2: error: 'else' without a previous 'if'
  else
  ^~~~
/in/foo.cc:23:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(a>c)
   ^~
/in/foo.cc:25:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    mid=a
    ^~~
/in/foo.cc:26:3: error: expected ';' before 'else'
   else
   ^~~~
/in/foo.cc:30:4: error: 'else' without a previous 'if'
    else
    ^~~~
/in/foo.cc:34:2: error: expected ';' before 'return'
  return 0;
  ^~~~~~

信息

递交者
类型
自测
题目
A1-2 分支结构练习:三数的特征值
语言
C++
递交时间
2024-08-15 14:04:45
评测时间
2024-08-15 14:04:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes