teams.cpp: In function 'void read(T&)':
teams.cpp:12:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
12 | register int c;
| ^
teams.cpp: In constructor 'node::node(node*, node*, int)':
teams.cpp:26:52: warning: declaration of 'cnt' shadows a member of 'node' [-Wshadow]
26 | node(node *l = nullptr, node *r = nullptr, int cnt = 0) : l(l), r(r), cnt(cnt) {}
| ~~~~^~~~~~~
teams.cpp:24:9: note: shadowed declaration is here
24 | int cnt;
| ^~~
teams.cpp:26:35: warning: declaration of 'r' shadows a member of 'node' [-Wshadow]
26 | node(node *l = nullptr, node *r = nullptr, int cnt = 0) : l(l), r(r), cnt(cnt) {}
| ~~~~~~^~~~~~~~~~~
teams.cpp:25:15: note: shadowed declaration is here
25 | node *l, *r;
| ^
teams.cpp:26:16: warning: declaration of 'l' shadows a member of 'node' [-Wshadow]
26 | node(node *l = nullptr, node *r = nullptr, int cnt = 0) : l(l), r(r), cnt(cnt) {}
| ~~~~~~^~~~~~~~~~~
teams.cpp:25:11: note: shadowed declaration is here
25 | node *l, *r;
| ^
teams.cpp:25:15: warning: 'node::r' will be initialized after [-Wreorder]
25 | node *l, *r;
| ^
teams.cpp:24:9: warning: 'int node::cnt' [-Wreorder]
24 | int cnt;
| ^~~
teams.cpp:26:5: warning: when initialized here [-Wreorder]
26 | node(node *l = nullptr, node *r = nullptr, int cnt = 0) : l(l), r(r), cnt(cnt) {}
| ^~~~
teams.cpp: In constructor 'node::node(node*, node*, int)':
teams.cpp:26:52: warning: declaration of 'cnt' shadows a member of 'node' [-Wshadow]
26 | node(node *l = nullptr, node *r = nullptr, int cnt = 0) : l(l), r(r), cnt(cnt) {}
| ~~~~^~~~~~~
teams.cpp:24:9: note: shadowed declaration is here
24 | int cnt;
| ^~~
teams.cpp:26:35: warning: declaration of 'r' shadows a member of 'node' [-Wshadow]
26 | node(node *l = nullptr, node *r = nullptr, int cnt = 0) : l(l), r(r), cnt(cnt) {}
| ~~~~~~^~~~~~~~~~~
teams.cpp:25:15: note: shadowed declaration is here
25 | node *l, *r;
| ^
teams.cpp:26:16: warning: declaration of 'l' shadows a member of 'node' [-Wshadow]
26 | node(node *l = nullptr, node *r = nullptr, int cnt = 0) : l(l), r(r), cnt(cnt) {}
| ~~~~~~^~~~~~~~~~~
teams.cpp:25:11: note: shadowed declaration is here
25 | node *l, *r;
| ^
teams.cpp: In constructor 'node::node(node*, node*, int)':
teams.cpp:26:52: warning: declaration of 'cnt' shadows a member of 'node' [-Wshadow]
26 | node(node *l = nullptr, node *r = nullptr, int cnt = 0) : l(l), r(r), cnt(cnt) {}
| ~~~~^~~~~~~
teams.cpp:24:9: note: shadowed declaration is here
24 | int cnt;
| ^~~
teams.cpp:26:35: warning: declaration of 'r' shadows a member of 'node' [-Wshadow]
26 | node(node *l = nullptr, node *r = nullptr, int cnt = 0) : l(l), r(r), cnt(cnt) {}
| ~~~~~~^~~~~~~~~~~
teams.cpp:25:15: note: shadowed declaration is here
25 | node *l, *r;
| ^
teams.cpp:26:16: warning: declaration of 'l' shadows a member of 'node' [-Wshadow]
26 | node(node *l = nullptr, node *r = nullptr, int cnt = 0) : l(l), r(r), cnt(cnt) {}
| ~~~~~~^~~~~~~~~~~
teams.cpp:25:11: note: shadowed declaration is here
25 | node *l, *r;
| ^
teams.cpp: In function 'int Get(node*, int, int, const int&, const int&)':
teams.cpp:83:44: warning: declaration of 'a' shadows a global declaration [-Wshadow]
83 | int Get(node *st, int l, int r, const int &a, const int &b)
| ~~~~~~~~~~~^
teams.cpp:32:8: note: shadowed declaration is here
32 | int n, a[N];
| ^