teams.cpp: In function 'void makeper(int, int, int)':
teams.cpp:7:33: warning: declaration of 'l' shadows a global declaration [-Wshadow]
7 | void makeper(int l,int r,int ind)
| ^
teams.cpp:6:13: note: shadowed declaration is here
6 | vector<int> l[MAXN],v,c,z[MAXN];
| ^
teams.cpp: In function 'void makenewper(int, int, int, int, int)':
teams.cpp:16:50: warning: declaration of 'v' shadows a global declaration [-Wshadow]
16 | void makenewper(int l,int r,int v,int ind,int inh)
| ^
teams.cpp:6:21: note: shadowed declaration is here
6 | vector<int> l[MAXN],v,c,z[MAXN];
| ^
teams.cpp:16:50: warning: declaration of 'l' shadows a global declaration [-Wshadow]
16 | void makenewper(int l,int r,int v,int ind,int inh)
| ^
teams.cpp:6:13: note: shadowed declaration is here
6 | vector<int> l[MAXN],v,c,z[MAXN];
| ^
teams.cpp: In function 'int query(int, int, int, int, int)':
teams.cpp:34:44: warning: declaration of 'l' shadows a global declaration [-Wshadow]
34 | int query(int l,int r,int lt,int rt,int ind)
| ^
teams.cpp:6:13: note: shadowed declaration is here
6 | vector<int> l[MAXN],v,c,z[MAXN];
| ^
teams.cpp: In function 'void init(int, int*, int*)':
teams.cpp:49:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | for(int j=0;j<l[i].size();j++) {int newlast=++t; makenewper(1,n,l[i][j],newlast,last); last=newlast;}
| ~^~~~~~~~~~~~
teams.cpp: In function 'int overtake(int, int)':
teams.cpp:55:9: warning: declaration of 'l' shadows a global declaration [-Wshadow]
55 | int l=b+1,r=m-1;
| ^
teams.cpp:6:13: note: shadowed declaration is here
6 | vector<int> l[MAXN],v,c,z[MAXN];
| ^
teams.cpp: In function 'int can(int, int*)':
teams.cpp:77:13: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
77 | m=v.size(); prv[0]=nxt[0]=-1; dp[0]=0; top=0;
| ~~~~~~^~
teams.cpp:81:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
81 | for(int j=0;j<z[i].size();j++) if(!fas[z[i][j]])
| ~^~~~~~~~~~~~
teams.cpp:83:17: warning: declaration of 't' shadows a global declaration [-Wshadow]
83 | int t=z[i][j];
| ^
teams.cpp:5:42: note: shadowed declaration is here
5 | int per[25*MAXN],lc[25*MAXN],rc[25*MAXN],t,n,st[MAXN],dp[MAXN],m,nxt[MAXN],prv[MAXN],top,fas[MAXN];
| ^