记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:13: error: expected initializer before 'max'
  int a,b,c  max;
             ^~~
/in/foo.cc:7:13: error: 'c' was not declared in this scope
  cin>>a>>b>>c;
             ^
/in/foo.cc:11:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   else
   ^~~~
/in/foo.cc:13:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
    if(c>a)
    ^~
/in/foo.cc:8:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
  if(a>b)
    ^
/in/foo.cc:17:2: error: 'else' without a previous 'if'
  else   //(b>a)
  ^~~~
/in/foo.cc:20:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   else
   ^~~~
/in/foo.cc:22:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
    if(a>c)
    ^~
/in/foo.cc:26:10: error: expected '}' at end of input
  return 0;
          ^

信息

递交者
类型
递交
比赛
泰院2401程序设计基础作业赛第一场(牛刀小试)
语言
C++
递交时间
2024-10-21 14:27:20
评测时间
2024-10-21 14:27:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes