foo.cc: In function 'int main()':
foo.cc:11:12: warning: variable 'b' set but not used [-Wunused-but-set-variable]
11 | int m1=0,b,b1;
| ^
foo.cc:11:14: warning: unused variable 'b1' [-Wunused-variable]
11 | int m1=0,b,b1;
| ^~
foo.cc:23:18: warning: unused variable 'b1' [-Wunused-variable]
23 | int m1=99999,b,b1,x;
| ^~
foo.cc:23:21: warning: variable 'x' set but not used [-Wunused-but-set-variable]
23 | int m1=99999,b,b1,x;
| ^
foo.cc:19:6: warning: unused variable 'f' [-Wunused-variable]
19 | int f=1;
| ^
foo.cc:28:9: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized]
28 | if(d[b]==m1)
| ~~~^
[Hydro](https://hydro.ac)提供评测服务