foo.cc: In function 'int findmax(int)':
foo.cc:15:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (h[i]>max1);
^~
foo.cc:16:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
{ max1=h[i];
^
foo.cc: In function 'int findmin(int)':
foo.cc:36:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (h[i]<min1);
^~
foo.cc:37:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
{ min1=h[i];
^
foo.cc: In function 'int main()':
foo.cc:54:7: warning: unused variable 'shu2' [-Wunused-variable]
int shu2=findmax(shu1);
^~~~
foo.cc:60:7: warning: unused variable 'shu3' [-Wunused-variable]
int shu3=findmax(n-shu1);
^~~~
foo.cc:49:20: warning: 'n' is used uninitialized in this function [-Wuninitialized]
int shu1=findmax(n);
^
foo.cc: In function 'int findmax(int)':
foo.cc:22:9: warning: 'shu' may be used uninitialized in this function [-Wmaybe-uninitialized]
return shu;
^~~
foo.cc: In function 'int findmin(int)':
foo.cc:43:9: warning: 'zhu' may be used uninitialized in this function [-Wmaybe-uninitialized]
return zhu;
^~~
[Hydro](https://hydro.ac)提供评测服务