teams.cpp:2:0: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
#pragma GCC optimization("O3")
teams.cpp:3:0: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
#pragma GCC optimization("unroll-loops")
teams.cpp: In function 'int nlf(int)':
teams.cpp:24:14: warning: declaration of 'x' shadows a global declaration [-Wshadow]
int nlf(int x)
^
teams.cpp:22:69: note: shadowed declaration is here
int n,i,nr[nmax],st[10*20*nmax],lch[10*20*nmax],rch[10*20*nmax],q,t,x,y,nds,r,rt[nmax],nd[nmax],m,s,j,k[nmax];
^
teams.cpp: In function 'int npr(int, int)':
teams.cpp:31:20: warning: declaration of 'r' shadows a global declaration [-Wshadow]
int npr(int l,int r)
^
teams.cpp:22:77: note: shadowed declaration is here
int n,i,nr[nmax],st[10*20*nmax],lch[10*20*nmax],rch[10*20*nmax],q,t,x,y,nds,r,rt[nmax],nd[nmax],m,s,j,k[nmax];
^
teams.cpp: In function 'int upd(int, int, int, int)':
teams.cpp:38:34: warning: declaration of 'r' shadows a global declaration [-Wshadow]
int upd(int nod,int l,int r,int p)
^
teams.cpp:22:77: note: shadowed declaration is here
int n,i,nr[nmax],st[10*20*nmax],lch[10*20*nmax],rch[10*20*nmax],q,t,x,y,nds,r,rt[nmax],nd[nmax],m,s,j,k[nmax];
^
teams.cpp: In function 'int qry(int, int, int, int, int)':
teams.cpp:45:42: warning: declaration of 'r' shadows a global declaration [-Wshadow]
int qry(int nod,int l,int r,int tl,int tr)
^
teams.cpp:22:77: note: shadowed declaration is here
int n,i,nr[nmax],st[10*20*nmax],lch[10*20*nmax],rch[10*20*nmax],q,t,x,y,nds,r,rt[nmax],nd[nmax],m,s,j,k[nmax];
^
teams.cpp: In function 'void init(int, int*, int*)':
teams.cpp:65:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<a[i].size();j++)
~^~~~~~~~~~~~
teams.cpp:68:7: warning: operation on 'r' may be undefined [-Wsequence-point]
rt[++r]=upd(rt[r-1],1,n,a[i][j]);
^~~