/in/foo.cc: In function 'int query(int, int, int, int)':
/in/foo.cc:27:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=l+r>>1,tmp=mid-l+1-sum[ls[rt]];
~^~
/in/foo.cc: In function 'void change(int&, int, int, int)':
/in/foo.cc:33:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(!rt)rt=++tot;++sum[rt];
^~
/in/foo.cc:33:21: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if(!rt)rt=++tot;++sum[rt];
^~
/in/foo.cc:35:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=l+r>>1;
~^~