foo.cc: In function 'void build(int, int, int)':
foo.cc:24:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
24 | int mid = l + r >> 1;
| ~~^~~
foo.cc: In function 'void update1(int, int, int, int, int, int)':
foo.cc:35:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
35 | int mid = l + r >> 1;
| ~~^~~
foo.cc: In function 'void update2(int, int, int, int, int)':
foo.cc:45:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
45 | int mid = l + r >> 1;
| ~~^~~
foo.cc: In function 'int query(int, int, int, int)':
foo.cc:52:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
52 | int mid = l + r >> 1;
| ~~^~~
[Hydro](https://hydro.ac)提供评测服务