teams.cpp: In function 'int can(int, int*)':
teams.cpp:24:24: warning: comparison of integer expressions of different signedness: 'std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, std::greater<std::pair<int, int> > >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
24 | if (que.size() < x) return 0;
| ~~~~~~~~~~~^~~
teams.cpp:25:18: warning: declaration of 'i' shadows a previous local [-Wshadow]
25 | for (int i = 0; i < x; i++) que.pop();
| ^
teams.cpp:20:14: note: shadowed declaration is here
20 | for (int i = 0; i < M; i++) {
| ^