/in/foo.cc: In function 'void update(int, int, int)':
/in/foo.cc:5:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (ll+lr>>1)
~~^~
/in/foo.cc:44:9: note: in expansion of macro 'mid'
if(l<=mid) update(ls,ll,mid);
^~~
/in/foo.cc:5:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (ll+lr>>1)
~~^~
/in/foo.cc:44:27: note: in expansion of macro 'mid'
if(l<=mid) update(ls,ll,mid);
^~~
/in/foo.cc:5:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (ll+lr>>1)
~~^~
/in/foo.cc:45:8: note: in expansion of macro 'mid'
if(r>mid) update(rs,mid+1,lr);
^~~
/in/foo.cc:5:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (ll+lr>>1)
~~^~
/in/foo.cc:45:23: note: in expansion of macro 'mid'
if(r>mid) update(rs,mid+1,lr);
^~~
/in/foo.cc: In function 'void work(aa*, int)':
/in/foo.cc:51:8: warning: unused variable 'j' [-Wunused-variable]
int i,j;
^
/in/foo.cc: In function 'll wk4(std::pair<long long int, long long int>)':
/in/foo.cc:80:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
ll midd=(la.first+la.second>>1);
~~~~~~~~^~~~~~~~~~
/in/foo.cc: In function 'void work2(std::vector<std::pair<long long int, long long int> >)':
/in/foo.cc:91:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<lx.size();i++)
~^~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:100:8: warning: unused variable 'j' [-Wunused-variable]
int i,j;
^