messy.cpp: In function 'void add(int, int)':
messy.cpp:18:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int len = r-l+1>>1;
~~~^~
messy.cpp:8:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l+r>>1)
~^~
messy.cpp:19:11: note: in expansion of macro 'mid'
mem(l,mid,'1');
^~~
messy.cpp:8:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l+r>>1)
~^~
messy.cpp:20:15: note: in expansion of macro 'mid'
for(int i=mid+1;i<=mid+len/2;i++)
^~~
messy.cpp:8:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l+r>>1)
~^~
messy.cpp:20:24: note: in expansion of macro 'mid'
for(int i=mid+1;i<=mid+len/2;i++)
^~~
messy.cpp:8:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l+r>>1)
~^~
messy.cpp:27:11: note: in expansion of macro 'mid'
mem(l,mid,'0');
^~~
messy.cpp:8:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l+r>>1)
~^~
messy.cpp:29:9: note: in expansion of macro 'mid'
mem(mid+1,r,'1');
^~~
messy.cpp:8:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l+r>>1)
~^~
messy.cpp:30:15: note: in expansion of macro 'mid'
for(int i=mid-len/2+1;i<=mid;i++)
^~~
messy.cpp:8:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l+r>>1)
~^~
messy.cpp:30:30: note: in expansion of macro 'mid'
for(int i=mid-len/2+1;i<=mid;i++)
^~~
messy.cpp:8:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l+r>>1)
~^~
messy.cpp:37:9: note: in expansion of macro 'mid'
mem(mid+1,r,'0');
^~~
messy.cpp:8:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l+r>>1)
~^~
messy.cpp:38:11: note: in expansion of macro 'mid'
add(l,mid);
^~~
messy.cpp:8:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l+r>>1)
~^~
messy.cpp:39:9: note: in expansion of macro 'mid'
add(mid+1,r);
^~~
messy.cpp: In function 'void solve(int, int, std::vector<int>&, std::vector<int>&)':
messy.cpp:8:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l+r>>1)
~^~
messy.cpp:62:13: note: in expansion of macro 'mid'
solve(l,mid,dl,dr);
^~~
messy.cpp:8:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define mid (l+r>>1)
~^~
messy.cpp:76:11: note: in expansion of macro 'mid'
solve(mid+1,r,dl,dr);
^~~