/in/foo.cc: In function 'void build(int&, int, int)':
/in/foo.cc:43:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=L0+R0>>1;
~~^~~
/in/foo.cc: In function 'void ins(int, int, int, lint)':
/in/foo.cc:51:26: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
pushdw(p); int mid=L0+R0>>1;
~~^~~
/in/foo.cc: In function 'lint query(int, int, int)':
/in/foo.cc:59:26: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
pushdw(p); int mid=L0+R0>>1; lint r=0;
~~^~~
/in/foo.cc: In function 'void show(int, int, int)':
/in/foo.cc:67:102: warning: format '%d' expects argument of type 'int', but argument 6 has type 'lint {aka long long int}' [-Wformat=]
printf("[%d,%d] sum=%lld v1=%lld(%d) v2=%lld tag=%lld\n",L0,R0,sum[p],v1[p],v1Cnt[p],v2[p],tag[p]);
^
/in/foo.cc:68:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=L0+R0>>1; if(L0==R0) return;
~~^~~