记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:17:19: error: invalid conversion from 'int*' to 'int' [-fpermissive]
  FindMinCount(n1,a);
                   ^
foo.cc:17:19: error: too few arguments to function 'int FindMinCount(int, int, int*)'
foo.cc:4:5: note: declared here
 int FindMinCount(int min,int n,int a[]);
     ^~~~~~~~~~~~
foo.cc:18:26: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   cout<<FindMinCount(n1,a);
                          ^
foo.cc:18:26: error: too few arguments to function 'int FindMinCount(int, int, int*)'
foo.cc:4:5: note: declared here
 int FindMinCount(int min,int n,int a[]);
     ^~~~~~~~~~~~
foo.cc:19:2: error: 'FindMinCount1' was not declared in this scope
  FindMinCount1(n2,a);
  ^~~~~~~~~~~~~
foo.cc:19:2: note: suggested alternative: 'FindMinCount'
  FindMinCount1(n2,a);
  ^~~~~~~~~~~~~
  FindMinCount
foo.cc: At global scope:
foo.cc:23:36: error: ISO C++ forbids declaration of 'FindMinCount' with no type [-fpermissive]
 FindMinCount(int min,int n1,int a[])
                                    ^
foo.cc:33:38: error: ISO C++ forbids declaration of 'FindMinCount1' with no type [-fpermissive]
  FindMinCount1(int min,int n2,int b[])
                                      ^
foo.cc: In function 'int FindMinCount(int, int, int*)':
foo.cc:32:2: warning: control reaches end of non-void function [-Wreturn-type]
  }
  ^
foo.cc: In function 'int FindMinCount1(int, int, int*)':
foo.cc:42:2: warning: control reaches end of non-void function [-Wreturn-type]
  }
  ^
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
A9-5 数组中最小值的个数
比赛
2020苏青奥赛集训营(2021-3-7课后作业)
语言
C++
递交时间
2021-03-08 18:30:46
评测时间
2021-03-08 18:30:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes