teams.cpp: In function 'int qry(int, int, int, int, int, int)':
teams.cpp:14:39: warning: conversion from '__gnu_cxx::__normal_iterator<int*, std::vector<int> >::difference_type' {aka 'long int'} to 'int' may change value [-Wconversion]
14 | return upper_bound(all(st[i]), val) - st[i].begin();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
teams.cpp: In function 'void init(int, int*, int*)':
teams.cpp:31:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | while(j < st[i * 2].size() && i < st[i * 2 + 1].size()){
| ~~^~~~~~~~~~~~~~~~~~
teams.cpp:31:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | while(j < st[i * 2].size() && i < st[i * 2 + 1].size()){
| ~~^~~~~~~~~~~~~~~~~~~~~~
teams.cpp:39:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | for (; j < st[i * 2].size(); j++) st[i].push_back(st[i * 2][j]);
| ~~^~~~~~~~~~~~~~~~~~
teams.cpp:40:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
40 | for (; k < st[i * 2 + 1].size(); k++) st[i].push_back(st[i * 2 + 1][k]);
| ~~^~~~~~~~~~~~~~~~~~~~~~