/in/foo.cc: In member function 'void Tree::build(int, int, int)':
/in/foo.cc:116:26: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
116 | int mid=l+r>>1;
| ~^~
/in/foo.cc: In member function 'void Tree::update(int, int, int, ll)':
/in/foo.cc:130:33: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
130 | int mid=tre[k].l+tre[k].r>>1;
| ~~~~~~~~^~~~~~~~~
/in/foo.cc: In member function 'll Tree::query(int, int, int)':
/in/foo.cc:139:33: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
139 | int mid=tre[k].l+tre[k].r>>1;ll ans=0;
| ~~~~~~~~^~~~~~~~~