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:25:45: warning: conversion from '__gnu_cxx::__normal_iterator<int*, std::vector<int> >::difference_type' {aka 'long int'} to 'int' may change value [-Wconversion]
25 | int x=lower_bound(ve.begin(),ve.end(),l)-ve.begin(),y=upper_bound(ve.begin(),ve.end(),r)-ve.begin()-1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
teams.cpp:25:104: warning: conversion from '__gnu_cxx::__normal_iterator<int*, std::vector<int> >::difference_type' {aka 'long int'} to 'int' may change value [-Wconversion]
25 | int x=lower_bound(ve.begin(),ve.end(),l)-ve.begin(),y=upper_bound(ve.begin(),ve.end(),r)-ve.begin()-1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
teams.cpp: In function 'int can(int, int*)':
teams.cpp:60:25: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
60 | for (int i=ve.size()-1;i>=0;i--)
| ~~~~~~~~~^~
teams.cpp:61:51: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
61 | dp[i]=max(get(R[ve[i]+1],1,n,i+1,ve.size()-1),0)+cnt[ve[i]];
| ~~~~~~~~~^~