/in/foo.cc: In function 'void add(int, int, int, int, int)':
/in/foo.cc:11:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=l+r>>1;
~^~
/in/foo.cc: In function 'int search(int, int, int, int, int)':
/in/foo.cc:17:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=l+r>>1;
~^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:33:45: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
printf("%d\n",search(hd[b-1],hd[c],1,n,c-b+1>>1));
~~~^~