foo.cc: In function 'void Output(int*, int)':
foo.cc:6:8: error: 'ans' was not declared in this scope
cout<<ans<<endl;
^~~
foo.cc:6:8: note: suggested alternative: 'abs'
cout<<ans<<endl;
^~~
abs
foo.cc: In function 'void yueseph(int, int, int*, int)':
foo.cc:21:11: error: expected ')' before numeric constant
if(i==n 1)
^
foo.cc: In function 'int main()':
foo.cc:33:15: error: too few arguments to function 'void yueseph(int, int, int*, int)'
yueseph(n,k,a);
^
foo.cc:9:6: note: declared here
void yueseph(int n,int k, int out[],int ans)
^~~~~~~
foo.cc:31:16: warning: unused variable 'ans' [-Wunused-variable]
int n=10, k=7,ans;
^~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。