teams.cpp: In function 'int get(int, int)':
teams.cpp:31:30: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
31 | res+=lis[u].size();
| ^
teams.cpp:34:80: warning: conversion from '__gnu_cxx::__normal_iterator<int*, std::vector<int> >::difference_type' {aka 'long int'} to 'int' may change value [-Wconversion]
34 | res+=prev(upper_bound(lis[u].begin(),lis[u].end(),pos))-lis[u].begin()+1;
| ^
teams.cpp: In function 'void init(int, int*, int*)':
teams.cpp:39:15: warning: declaration of 'sl' shadows a global declaration [-Wshadow]
39 | void init(int sl,int a[],int b[])
| ~~~~^~
teams.cpp:12:4: note: shadowed declaration is here
12 | ll sl[N],n,cnt[N],l[N],r[N];
| ^~
teams.cpp:48:19: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
48 | update(l[i],r[i]);
| ~~~^
teams.cpp:48:24: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
48 | update(l[i],r[i]);
| ~~~^
teams.cpp: In function 'int can(int, int*)':
teams.cpp:72:13: warning: declaration of 'l' shadows a global declaration [-Wshadow]
72 | int l=sz[i],r=n,val=-1,tru=get(sz[i],sz[i]-1);
| ^
teams.cpp:12:19: note: shadowed declaration is here
12 | ll sl[N],n,cnt[N],l[N],r[N];
| ^
teams.cpp:72:21: warning: declaration of 'r' shadows a global declaration [-Wshadow]
72 | int l=sz[i],r=n,val=-1,tru=get(sz[i],sz[i]-1);
| ^
teams.cpp:12:24: note: shadowed declaration is here
12 | ll sl[N],n,cnt[N],l[N],r[N];
| ^
teams.cpp:72:23: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
72 | int l=sz[i],r=n,val=-1,tru=get(sz[i],sz[i]-1);
| ^