foo.cc: In function 'int fj(int, int*)':
foo.cc:15:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
foo.cc: In function 'int findmax(int*)':
foo.cc:27:6: warning: unused variable 'cnt' [-Wunused-variable]
int cnt=0;
^~~
foo.cc:35:9: warning: 'bl' may be used uninitialized in this function [-Wmaybe-uninitialized]
return bl;
^~
foo.cc: In function 'int main()':
foo.cc:45:17: warning: 'bl' may be used uninitialized in this function [-Wmaybe-uninitialized]
cout<<findmax(n)<<endl;
^
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。