foo.cc: In member function 'void SegTree::build(SegTree::Node*, long long int, long long int)':
foo.cc:23:26: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
23 | build(cur->Lchild,L,L+R>>1);
| ~^~
foo.cc:24:25: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
24 | build(cur->Rchild,(L+R>>1)+1,R);
| ~^~
foo.cc: In member function 'long long int SegTree::querysum(SegTree::Node*, long long int, long long int)':
foo.cc:35:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
35 | if(L<=cur->Left+cur->Right>>1)
| ~~~~~~~~~^~~~~~~~~~~
foo.cc:37:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
37 | if(R> cur->Left+cur->Right>>1)
| ~~~~~~~~~^~~~~~~~~~~
foo.cc: In member function 'long long int SegTree::querymax(SegTree::Node*, long long int, long long int)':
foo.cc:49:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
49 | if(L<=cur->Left+cur->Right>>1)
| ~~~~~~~~~^~~~~~~~~~~
foo.cc:51:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
51 | if(R> cur->Left+cur->Right>>1)
| ~~~~~~~~~^~~~~~~~~~~
foo.cc: In member function 'long long int SegTree::querymin(SegTree::Node*, long long int, long long int)':
foo.cc:63:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
63 | if(L<=cur->Left+cur->Right>>1)
| ~~~~~~~~~^~~~~~~~~~~
foo.cc:65:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
65 | if(R> cur->Left+cur->Right>>1)
| ~~~~~~~~~^~~~~~~~~~~
foo.cc: In member function 'void SegTree::update(SegTree::Node*, long long int, long long int)':
foo.cc:80:22: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
80 | if(Dex<=cur->Left+cur->Right>>1)update(cur->Lchild,Dex,Change);
| ~~~~~~~~~^~~~~~~~~~~
foo.cc:81:22: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
81 | if(Dex> cur->Left+cur->Right>>1)update(cur->Rchild,Dex,Change);
| ~~~~~~~~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务