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;
| ^
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;
| ^
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;
| ^
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;
| ^
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 can(int, int*)':
teams.cpp:65:17: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
65 | int m=v.size();
| ~~~~~~^~