teams.cpp: In function 'int up(int, int, int, int)':
teams.cpp:6:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
~~^~
teams.cpp:12:27: note: in expansion of macro 'tm'
L[w] = up(L[v],tl,tm,i);
^~
teams.cpp:6:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
~~^~
teams.cpp:13:24: note: in expansion of macro 'tm'
R[w] = up(R[v],tm+1,tr,i);
^~
teams.cpp: In function 'int qry(int, int, int, int, int, int)':
teams.cpp:6:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
~~^~
teams.cpp:21:29: note: in expansion of macro 'tm'
return qry(L[a],L[b],tl,tm,l,r) + qry(R[a],R[b],tm+1,tr,l,r);
^~
teams.cpp:6:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
~~^~
teams.cpp:21:53: note: in expansion of macro 'tm'
return qry(L[a],L[b],tl,tm,l,r) + qry(R[a],R[b],tm+1,tr,l,r);
^~
teams.cpp: In function 'int bs(int, int, int, int, int)':
teams.cpp:6:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
~~^~
teams.cpp:27:29: note: in expansion of macro 'tm'
return bs(R[a],R[b],tm+1,tr,k-(s[ L[a] ] - s[ L[b] ]));
^~
teams.cpp:6:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
#define tm (tl+tr >> 1)
~~^~
teams.cpp:28:28: note: in expansion of macro 'tm'
return bs(L[a],L[b],tl,tm,k);
^~
teams.cpp: In function 'int can(int, int*)':
teams.cpp:36:15: warning: unused variable 'md' [-Wunused-variable]
int t,i,l,md,r,x,y,z,las,req,ex;
^~
teams.cpp:36:18: warning: unused variable 'r' [-Wunused-variable]
int t,i,l,md,r,x,y,z,las,req,ex;
^
teams.cpp: In function 'void init(int, int*, int*)':
teams.cpp:91:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<V[i].size();j++)
~^~~~~~~~~~~~