foo.cc: In function 'void build(int, int, int)':
foo.cc:45:26: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
45 | int mid=l+r>>1;
| ~^~
foo.cc: In function 'void update(int, int, int, ll)':
foo.cc:60:32: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
60 | int mid=tr[u].l+tr[u].r>>1;
| ~~~~~~~^~~~~~~~
foo.cc: In function 'll query(int, int, int)':
foo.cc:71:32: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
71 | int mid=tr[u].l+tr[u].r>>1;
| ~~~~~~~^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务