scrivener.cpp: In function 'int upd(int, int, int, int, int)':
scrivener.cpp:17:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
17 | if(l==r)return nn(v); if(l+r>>1<p)
| ^~
scrivener.cpp:17:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
17 | if(l==r)return nn(v); if(l+r>>1<p)
| ^~
scrivener.cpp:17:31: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
17 | if(l==r)return nn(v); if(l+r>>1<p)
| ~^~
scrivener.cpp:18:44: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
18 | return nn(ch[i][0],upd(ch[i][1],l+r+2>>1,r,p,v));
| ~~~^~
scrivener.cpp:19:36: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
19 | else return nn(upd(ch[i][0],l,l+r>>1,p,v),ch[i][1]);
| ~^~
scrivener.cpp: In function 'int query(int, int, int, int)':
scrivener.cpp:23:9: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
23 | if(l+r>>1>=p)
| ~^~
scrivener.cpp:24:34: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
24 | return query(ch[i][0],l,l+r>>1,p);
| ~^~
scrivener.cpp:25:30: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
25 | return query(ch[i][1],l+r+2>>1,r,p);
| ~~~^~
scrivener.cpp: In function 'int buildt(int, int)':
scrivener.cpp:29:25: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
29 | return nn(buildt(l,l+r>>1),
| ~^~
scrivener.cpp:30:23: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
30 | buildt(l+r+2>>1,r));
| ~~~^~