teams.cpp: In constructor 'stree::stree(stree*, stree*)':
teams.cpp:29:25: warning: declaration of 'r' shadows a member of 'stree' [-Wshadow]
29 | stree(stree *l, stree *r) : l(l), r(r) {
| ~~~~~~~^
teams.cpp:18:9: note: shadowed declaration is here
18 | stree *r = nullptr;
| ^
teams.cpp:29:15: warning: declaration of 'l' shadows a member of 'stree' [-Wshadow]
29 | stree(stree *l, stree *r) : l(l), r(r) {
| ~~~~~~~^
teams.cpp:17:9: note: shadowed declaration is here
17 | stree *l = nullptr;
| ^
teams.cpp: In constructor 'stree::stree(stree*, stree*)':
teams.cpp:29:25: warning: declaration of 'r' shadows a member of 'stree' [-Wshadow]
29 | stree(stree *l, stree *r) : l(l), r(r) {
| ~~~~~~~^
teams.cpp:18:9: note: shadowed declaration is here
18 | stree *r = nullptr;
| ^
teams.cpp:29:15: warning: declaration of 'l' shadows a member of 'stree' [-Wshadow]
29 | stree(stree *l, stree *r) : l(l), r(r) {
| ~~~~~~~^
teams.cpp:17:9: note: shadowed declaration is here
17 | stree *l = nullptr;
| ^
teams.cpp: In constructor 'stree::stree(stree*, stree*)':
teams.cpp:29:25: warning: declaration of 'r' shadows a member of 'stree' [-Wshadow]
29 | stree(stree *l, stree *r) : l(l), r(r) {
| ~~~~~~~^
teams.cpp:18:9: note: shadowed declaration is here
18 | stree *r = nullptr;
| ^
teams.cpp:29:15: warning: declaration of 'l' shadows a member of 'stree' [-Wshadow]
29 | stree(stree *l, stree *r) : l(l), r(r) {
| ~~~~~~~^
teams.cpp:17:9: note: shadowed declaration is here
17 | stree *l = nullptr;
| ^
In file included from /usr/include/c++/10/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from teams.cpp:3:
teams.cpp: In function 'int can(int, int*)':
teams.cpp:80:33: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
80 | assert(vals.size()*vals.size() <= 2*n);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
teams.cpp:81:15: warning: conversion from 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
81 | m = vals.size();
| ~~~~~~~~~^~