teams.cpp: In function 'int get(int, int, int, int, int, int)':
teams.cpp:31:68: warning: declaration of 'r' shadows a global declaration [-Wshadow]
int get(int l , int r , int val , int s = 0 , int e = n , int h = 0)
^
teams.cpp:12:30: note: shadowed declaration is here
int dp[maxn] , n , l[maxn] , r[maxn];
^
teams.cpp:31:68: warning: declaration of 'l' shadows a global declaration [-Wshadow]
int get(int l , int r , int val , int s = 0 , int e = n , int h = 0)
^
teams.cpp:12:20: note: shadowed declaration is here
int dp[maxn] , n , l[maxn] , r[maxn];
^
teams.cpp:34:12: warning: conversion to 'int' from 'long int' may alter its value [-Wconversion]
return e - (lower_bound(seg[h] + s , seg[h] + e , val) - seg[h]);
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
teams.cpp: In function 'int can(int, int*)':
teams.cpp:79:36: warning: conversion to 'int' from 'long int' may alter its value [-Wconversion]
m = unique(p + 1 , p + m + 1) - p - 1;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
teams.cpp:87:41: warning: conversion to 'int' from 'long int' may alter its value [-Wconversion]
int x = lower_bound(r , r + n , p[i]) - r;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~