记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:10: error: expected ',' or ';' before 'b'
  int a=2 b=5 c=3;
          ^
/in/foo.cc:7:5: error: 'b' was not declared in this scope
  if(b>a)
     ^
/in/foo.cc:7:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(b>a)
  ^~
/in/foo.cc:9:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   a=b;
   ^
/in/foo.cc:9:5: error: 'b' was not declared in this scope
   a=b;
     ^
/in/foo.cc:11:5: error: 'c' was not declared in this scope
  if(c>a)
     ^
/in/foo.cc:11:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(c>a)
  ^~
/in/foo.cc:13:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   a=c;
   ^
/in/foo.cc:13:5: error: 'c' was not declared in this scope
   a=c;
     ^
/in/foo.cc:15:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(b>c)
  ^~
/in/foo.cc:17:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   c=b;
   ^

信息

递交者
类型
递交
语言
C++
递交时间
2024-10-21 22:47:10
评测时间
2024-10-21 22:47:10
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes