foo.cc: In function 'int main()':
foo.cc:13:12: error: 'a' was not declared in this scope
for(int i=a;i<=b;i++)
^
foo.cc:13:17: error: 'b' was not declared in this scope
for(int i=a;i<=b;i++)
^
foo.cc:14:3: error: 'fj' was not declared in this scope
fj(i,cnt);
^~
foo.cc:15:21: error: 'findmax' was not declared in this scope
cout<<Serch(cnt,10,findmax(cnt,10));
^~~~~~~
foo.cc:15:21: note: suggested alternative: 'findmaxcnt'
cout<<Serch(cnt,10,findmax(cnt,10));
^~~~~~~
findmaxcnt
foo.cc: In function 'int Serch(int*, int, int)':
foo.cc:37:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。