foo.cc: In function 'void move(int*, int, int)':
foo.cc:8:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
8 | if(i=x)
| ~^~
foo.cc:9:14: warning: unused variable 'b' [-Wunused-variable]
9 | int b=a[i];
| ^
foo.cc:14:7: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized]
14 | a[1]=b;
| ~~~~^~
foo.cc: In function 'int main()':
foo.cc:14:7: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized]
14 | a[1]=b;
| ~~~~^~
foo.cc:5:6: note: 'b' was declared here
5 | int b;
| ^
[Hydro](https://hydro.ac)提供评测服务