记录详情

Compile Error

/in/foo.cc:17:9: error: stray '\357' in program
  for(i=0;i<n;i++)
         ^
/in/foo.cc:17:10: error: stray '\274' in program
  for(i=0;i<n;i++)
          ^
/in/foo.cc:17:11: error: stray '\233' in program
  for(i=0;i<n;i++)
           ^
/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:12: error: expected ';' before 'i'
  for(i=0;i<n;i++)
            ^
/in/foo.cc:17:19: error: expected ';' before ')' token
  for(i=0;i<n;i++)
                   ^

信息

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