/in/foo.cc: In function 'void pushdown(int, int, int)':
/in/foo.cc:44:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(!tree[p].add) return;int mid=l+r>>1;
^~
/in/foo.cc:44:26: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if(!tree[p].add) return;int mid=l+r>>1;
^~~
/in/foo.cc:44:35: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
if(!tree[p].add) return;int mid=l+r>>1;
~^~
/in/foo.cc: In function 'void build(int, int, int)':
/in/foo.cc:49:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=l+r>>1;build(p<<1,l,mid);build(p<<1|1,mid+1,r);pushup(p);
~^~
/in/foo.cc: In function 'void add(int, int, int, int, int, int)':
/in/foo.cc:53:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=l+r>>1;pushdown(p,l,r);
~^~
/in/foo.cc:55:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(y>mid) add(p<<1|1,mid+1,r,x,y,val);pushup(p);
^~
/in/foo.cc:55:40: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if(y>mid) add(p<<1|1,mid+1,r,x,y,val);pushup(p);
^~~~~~
/in/foo.cc: In function 'int ask(int, int, int, int, int)':
/in/foo.cc:59:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=l+r>>1;pushdown(p,l,r);int res=0;
~^~
/in/foo.cc: In function 'int askmx(int, int, int, int, int)':
/in/foo.cc:66:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=l+r>>1;pushdown(p,l,r);int res=-inf;
~^~