记录详情

Compile Error

/in/foo.cc: In function 'int getmin(int*, int)':
/in/foo.cc:17:2: error: expected ',' or ';' before 'for'
  for(int i=1;i<n;i++)
  ^~~
/in/foo.cc:17:14: error: 'i' was not declared in this scope
  for(int i=1;i<n;i++)
              ^
/in/foo.cc: In function 'int in(int*, int*, int*, int)':
/in/foo.cc:41:20: error: 'pow' was not declared in this scope
    most[i]=pow(10,5);
                    ^
/in/foo.cc:43:21: error: too few arguments to function 'int getmin(int*, int)'
  int max=getmin(most);
                     ^
/in/foo.cc:14:5: note: declared here
 int getmin(int a[],int n)
     ^~~~~~
/in/foo.cc:44:22: error: too few arguments to function 'int getmax(int*, int)'
  int min=getmax(least);
                      ^
/in/foo.cc:4:5: note: declared here
 int getmax(int a[],int n)
     ^~~~~~
/in/foo.cc:26:6: warning: unused variable 'cnt' [-Wunused-variable]
  int cnt=0;
      ^~~
/in/foo.cc:49:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
P1313 H. Divide
比赛
2021年互联网创新创业科技节程序设计大赛
语言
C++
递交时间
2021-12-23 20:59:00
评测时间
2021-12-23 20:59:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes