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;
| ^
teams.cpp: In function 'int can(int, int*)':
teams.cpp:73:7: warning: unused variable 'p' [-Wunused-variable]
73 | int p = i ? k[i-1] : -1;
| ^