记录详情

Compile Error

/in/foo.cc: In function 'int FindMaxIndex(int*, int)':
/in/foo.cc:7:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(a[i]>max)
  ^~
/in/foo.cc:9:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   imax=i;
   ^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:17:11: warning: right operand of comma operator has no effect [-Wunused-value]
  for(i=0,i<n;i++)
          ~^~
/in/foo.cc:17:17: error: expected ';' before ')' token
  for(i=0,i<n;i++)
                 ^

信息

递交者
类型
自测
语言
C++
递交时间
2024-11-18 13:44:31
评测时间
2024-11-18 13:44:31
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes