teams.cpp: In function 'int update(int, int, int, int, int)':
teams.cpp:7:47: warning: declaration of 'v' shadows a global declaration [-Wshadow]
7 | int update(int node, int l, int r, int u, int v){
| ~~~~^
teams.cpp:6:14: note: shadowed declaration is here
6 | vector <int> v[500001],ve;
| ^
teams.cpp: In function 'int get(int, int, int, int, int)':
teams.cpp:22:44: warning: declaration of 'v' shadows a global declaration [-Wshadow]
22 | int get(int node, int l, int r, int u, int v){
| ~~~~^
teams.cpp:6:14: note: shadowed declaration is here
6 | vector <int> v[500001],ve;
| ^
teams.cpp:28:47: warning: conversion from '__gnu_cxx::__normal_iterator<int*, std::vector<int> >::difference_type' {aka 'long int'} to 'int' may change value [-Wconversion]
28 | int x=upper_bound(ve.begin(),ve.end(),mid)-ve.begin();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
teams.cpp: In function 'int can(int, int*)':
teams.cpp:58:25: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
58 | for (int i=ve.size()-1;i>=0;i--)
| ~~~~~~~~~^~
teams.cpp:59:51: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
59 | dp[i]=max(get(R[ve[i]+1],1,n,i+1,ve.size()-1),0)+cnt[ve[i]];
| ~~~~~~~~~^~