teams.cpp: In constructor 'Node::Node(int, int)':
teams.cpp:14:19: warning: declaration of 'r' shadows a member of 'Node' [-Wshadow]
14 | Node(int l, int r) : l(l), r(r), lc(0), rc(0), sum(0) {
| ~~~~^
teams.cpp:10:10: note: shadowed declaration is here
10 | int l, r;
| ^
teams.cpp:14:12: warning: declaration of 'l' shadows a member of 'Node' [-Wshadow]
14 | Node(int l, int r) : l(l), r(r), lc(0), rc(0), sum(0) {
| ~~~~^
teams.cpp:10:7: note: shadowed declaration is here
10 | int l, r;
| ^
teams.cpp: In constructor 'Node::Node(int, int)':
teams.cpp:14:19: warning: declaration of 'r' shadows a member of 'Node' [-Wshadow]
14 | Node(int l, int r) : l(l), r(r), lc(0), rc(0), sum(0) {
| ~~~~^
teams.cpp:10:10: note: shadowed declaration is here
10 | int l, r;
| ^
teams.cpp:14:12: warning: declaration of 'l' shadows a member of 'Node' [-Wshadow]
14 | Node(int l, int r) : l(l), r(r), lc(0), rc(0), sum(0) {
| ~~~~^
teams.cpp:10:7: note: shadowed declaration is here
10 | int l, r;
| ^
teams.cpp: In constructor 'Node::Node(int, int)':
teams.cpp:14:19: warning: declaration of 'r' shadows a member of 'Node' [-Wshadow]
14 | Node(int l, int r) : l(l), r(r), lc(0), rc(0), sum(0) {
| ~~~~^
teams.cpp:10:10: note: shadowed declaration is here
10 | int l, r;
| ^
teams.cpp:14:12: warning: declaration of 'l' shadows a member of 'Node' [-Wshadow]
14 | Node(int l, int r) : l(l), r(r), lc(0), rc(0), sum(0) {
| ~~~~^
teams.cpp:10:7: note: shadowed declaration is here
10 | int l, r;
| ^
teams.cpp: In function 'void init(int, int*, int*)':
teams.cpp:53:15: warning: declaration of 'N' shadows a global declaration [-Wshadow]
53 | void init(int N, int A[], int B[])
| ~~~~^
teams.cpp:51:5: note: shadowed declaration is here
51 | int N;
| ^