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)进行评测。