记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:16:6: warning: unused variable 'p' [-Wunused-variable]
  int p;
      ^
/in/foo.cc:31:13: error: too many arguments to function 'int sr(int*, int, int)'
 sr(d,j,min,x);
             ^
/in/foo.cc:3:5: note: declared here
 int sr(int d[10000],int j,int min);
     ^~
/in/foo.cc: In function 'int sr(int*, int, int, int)':
/in/foo.cc:36:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=0;i<x;i++)
  ^~~
/in/foo.cc:39:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   if(i>=x) return x;
   ^~
/in/foo.cc:40:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int j=i+1;j<x;j++)
  ^~~
/in/foo.cc:42:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   return x-1;
   ^~~~~~

信息

递交者
类型
递交
题目
5-8 留下最大数
比赛
2021苏青奥赛集训营(春季结业赛)
语言
C++
递交时间
2021-06-06 14:28:00
评测时间
2021-06-06 14:28:00
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes