teams.cpp: In function 'void add(int, int)':
teams.cpp:24:6: warning: statement has no effect [-Wunused-value]
24 | for(x; x <= n; x += x&(-x)){
| ^
teams.cpp:25:54: warning: conversion from '__gnu_cxx::__normal_iterator<int*, std::vector<int> >::difference_type' {aka 'long int'} to 'int' may change value [-Wconversion]
25 | int idx = lower_bound(d[x].begin(), d[x].end(), y) - d[x].begin();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
teams.cpp: In function 'int gt(int, int)':
teams.cpp:32:6: warning: statement has no effect [-Wunused-value]
32 | for(x; x > 0; x -= x&(-x)){
| ^
teams.cpp:33:69: warning: conversion from '__gnu_cxx::__normal_iterator<int*, std::vector<int> >::difference_type' {aka 'long int'} to 'int' may change value [-Wconversion]
33 | int idx = upper_bound(d[x].begin(), d[x].end(), y) - d[x].begin() - 1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
teams.cpp: In function 'int gt_gap(int, int)':
teams.cpp:41:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | if(r-l < precalc[l].size())return precalc[l][r-l];
| ~~~~^~~~~~~~~~~~~~~~~~~
teams.cpp: In function 'void init(int, int*, int*)':
teams.cpp:70:75: warning: conversion from '__gnu_cxx::__normal_iterator<int*, std::vector<int> >::difference_type' {aka 'long int'} to 'int' may change value [-Wconversion]
70 | crr += pos[i+j].end() - lower_bound(pos[i+j].begin(), pos[i+j].end(), i);
| ^
teams.cpp:78:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
78 | for(int j = 1; j < FW[i].size(); j++)FW[i][j] += FW[i][j-1];
| ~~^~~~~~~~~~~~~~
teams.cpp: In function 'int can(int, int*)':
teams.cpp:92:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
92 | for(int i = 0; i < vec.size(); i++){
| ~~^~~~~~~~~~~~