foo.cc: In function 'void Build(int, int, int)':
foo.cc:13:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
13 | int mid=l+r>>1,lc=k<<1,rc=k<<1|1;
| ~^~
foo.cc: In function 'void Sq(int, int, int, int, int)':
foo.cc:27:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
27 | int mid=l+r>>1,lc=k<<1,rc=k<<1|1;
| ~^~
foo.cc: In function 'int Query(int, int, int, int, int)':
foo.cc:40:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
40 | int mid=l+r>>1,lc=k<<1,rc=k<<1|1,ret=0;
| ~^~
foo.cc: In function 'int main()':
foo.cc:50:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
50 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
foo.cc:52:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
52 | scanf("%d",del+i);
| ~~~~~^~~~~~~~~~~~
foo.cc:55:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
55 | scanf("%d",&m);
| ~~~~~^~~~~~~~~
foo.cc:59:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
59 | scanf("%d%d%d",&op,&l,&r);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务