/in/foo.cc: In function 'int up(int)':
/in/foo.cc:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/in/foo.cc: In function 'void build(int, int, int)':
/in/foo.cc:21:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=s+t>>1;
~^~
/in/foo.cc: In function 'void push(int, int, int)':
/in/foo.cc:27:9: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
D mid=s+t>>1,ls=mid-s+1,rs=t-mid;
~^~
/in/foo.cc:34:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
tree[r].t3=tree[r1].t1=tree[r1].t2=tree[r2].t1=tree[r2].t2=0;
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'void update(int, int, int, int, int, double, double)':
/in/foo.cc:58:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=ns+nt>>1;
~~^~~
/in/foo.cc: In function 'void update(int, int, int, int, int)':
/in/foo.cc:70:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=ns+nt>>1;
~~^~~
/in/foo.cc: In function 'void query(int, int, int, int, int)':
/in/foo.cc:80:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=ns+nt>>1;
~~^~~