foo.cc: In function 'int main()':
foo.cc:29:27: warning: statement has no effect [-Wunused-value]
29 | ok==0;
| ~~^~~
foo.cc:8:32: warning: unused variable 's' [-Wunused-variable]
8 | int xmin,xmax,a[10000],s,s1;
| ^
foo.cc:8:34: warning: unused variable 's1' [-Wunused-variable]
8 | int xmin,xmax,a[10000],s,s1;
| ^~
foo.cc:37:15: warning: 'n' may be used uninitialized [-Wmaybe-uninitialized]
37 | cout<<n;
| ^
foo.cc:33:18: note: 'n' was declared here
33 | int m=0,n;
| ^
[Hydro](https://hydro.ac)提供评测服务