foo.cc: In function 'int find(int)':
foo.cc:10:58: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
10 | int find(int x){int l=1,r=2*m+n,pos;while(l<=r){int mid=l+r>>1;if(query(mid)>=x)pos=mid,r=mid-1;else l=mid+1;}return pos;}
| ~^~
foo.cc:10:118: warning: 'pos' may be used uninitialized [-Wmaybe-uninitialized]
10 | int find(int x){int l=1,r=2*m+n,pos;while(l<=r){int mid=l+r>>1;if(query(mid)>=x)pos=mid,r=mid-1;else l=mid+1;}return pos;}
| ^~~
foo.cc:10:33: note: 'pos' was declared here
10 | int find(int x){int l=1,r=2*m+n,pos;while(l<=r){int mid=l+r>>1;if(query(mid)>=x)pos=mid,r=mid-1;else l=mid+1;}return pos;}
| ^~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务