foo.cc:7:17: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow]
7 | const int inf = 1e18;
| ^~~~
foo.cc: In function 'void change(int, int, int, int, int)':
foo.cc:75:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
75 | int mid = l + r >> 1;
| ~~^~~
foo.cc: In function 'int query(int, int)':
foo.cc:87:23: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
87 | int mid = tree[rt].l + tree[rt].r >> 1;
| ~~~~~~~~~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务