sails.cpp: In member function 'int segtree::walk(int, int, int, int)':
sails.cpp:17:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
17 | pd(i*2,r-l+2>>1),pd(i*2+1,r-l+1>>1);
| ~~~^~
sails.cpp:17:38: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
17 | pd(i*2,r-l+2>>1),pd(i*2+1,r-l+1>>1);
| ~~~^~
sails.cpp:19:32: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
19 | return walk(i*2,l,l+r>>1,p);
| ~^~
sails.cpp:20:30: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
20 | return walk(i*2+1,l+r+2>>1,r,p);
| ~~~^~
sails.cpp: In member function 'int segtree::atpos(int, int, int, int)':
sails.cpp:24:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
24 | if(l+r>>1<p)
| ~^~
sails.cpp:25:35: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
25 | return atpos(i*2+1,l+r+2>>1,r,p);
| ~~~^~
sails.cpp:26:34: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
26 | else return atpos(i*2,l,l+r>>1,p);
| ~^~
sails.cpp: In member function 'long long int segtree::query(int, int, int, int, int)':
sails.cpp:33:36: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
33 | long long ans=query(i*2,l,l+r>>1,ll,rr)+
| ~^~
sails.cpp:34:28: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
34 | query(i*2+1,l+r+2>>1,r,ll,rr);
| ~~~^~