teams.cpp: In function 'int count(int, int, int)':
teams.cpp:53:23: warning: declaration of 'r' shadows a global declaration [-Wshadow]
53 | int count(int now,int r,int qus){
| ~~~~^
teams.cpp:31:13: note: shadowed declaration is here
31 | int l[MAXN],r[MAXN],n;
| ^
teams.cpp: In function 'void make_change(int, int, int)':
teams.cpp:67:30: warning: declaration of 'r' shadows a global declaration [-Wshadow]
67 | void make_change(int val,int r,int need_out){
| ~~~~^
teams.cpp:31:13: note: shadowed declaration is here
31 | int l[MAXN],r[MAXN],n;
| ^
teams.cpp:67:22: warning: declaration of 'val' shadows a global declaration [-Wshadow]
67 | void make_change(int val,int r,int need_out){
| ~~~~^~~
teams.cpp:34:12: note: shadowed declaration is here
34 | vector<int>val[300],onlyl;
| ^~~
teams.cpp: In function 'void reset(int)':
teams.cpp:95:16: warning: declaration of 'val' shadows a global declaration [-Wshadow]
95 | void reset(int val){
| ~~~~^~~
teams.cpp:34:12: note: shadowed declaration is here
34 | vector<int>val[300],onlyl;
| ^~~
teams.cpp: In function 'int can(int, int*)':
teams.cpp:104:75: warning: conversion from '__gnu_cxx::__normal_iterator<int*, std::vector<int> >::difference_type' {aka 'long int'} to 'int' may change value [-Wconversion]
104 | int canr=upper_bound(onlyl.begin(),onlyl.end(),K[i])-onlyl.begin()-1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
teams.cpp:105:13: warning: declaration of 'l' shadows a global declaration [-Wshadow]
105 | int l=K[i],r=n+1;
| ^
teams.cpp:31:5: note: shadowed declaration is here
31 | int l[MAXN],r[MAXN],n;
| ^
teams.cpp:105:20: warning: declaration of 'r' shadows a global declaration [-Wshadow]
105 | int l=K[i],r=n+1;
| ^
teams.cpp:31:13: note: shadowed declaration is here
31 | int l[MAXN],r[MAXN],n;
| ^