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:61:32: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
61 | int mid=tr[u].l+tr[u].r>>1;
| ~~~~~~~^~~~~~~~
foo.cc: In function 'll query(int, int, int)':
foo.cc:72:32: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
72 | int mid=tr[u].l+tr[u].r>>1;
| ~~~~~~~^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务