/in/foo.cc: In function 'num update(int, int, int, int, int)':
/in/foo.cc:5:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l+r>>1)
~^~
/in/foo.cc:11:9: note: in expansion of macro 'mid'
if (p<=mid) update(ls,l,mid,p,v);
^~~
/in/foo.cc:5:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l+r>>1)
~^~
/in/foo.cc:11:26: note: in expansion of macro 'mid'
if (p<=mid) update(ls,l,mid,p,v);
^~~
/in/foo.cc:5:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l+r>>1)
~^~
/in/foo.cc:12:17: note: in expansion of macro 'mid'
else update(rs,mid+1,r,p,v);
^~~
/in/foo.cc: In function 'num query(int, int, int, int, int)':
/in/foo.cc:5:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l+r>>1)
~^~
/in/foo.cc:21:20: note: in expansion of macro 'mid'
num q1=query(ls,l,mid,x,y),q2=query(rs,mid+1,r,x,y);
^~~
/in/foo.cc:5:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l+r>>1)
~^~
/in/foo.cc:21:41: note: in expansion of macro 'mid'
num q1=query(ls,l,mid,x,y),q2=query(rs,mid+1,r,x,y);
^~~
/in/foo.cc: In function 'num update(int, int, int, int, int)':
/in/foo.cc:17:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^