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:27:52: warning: declaration of 'cnt' shadows a member of 'node' [-Wshadow]
27 | node(node *l = nullptr, node *r = nullptr, int cnt = 0) : l(l), r(r), cnt(cnt) {}
| ~~~~^~~~~~~
teams.cpp:25:9: note: shadowed declaration is here
25 | int cnt;
| ^~~
teams.cpp:27:35: warning: declaration of 'r' shadows a member of 'node' [-Wshadow]
27 | node(node *l = nullptr, node *r = nullptr, int cnt = 0) : l(l), r(r), cnt(cnt) {}
| ~~~~~~^~~~~~~~~~~
teams.cpp:26:15: note: shadowed declaration is here
26 | node *l, *r;
| ^
teams.cpp:27:16: warning: declaration of 'l' shadows a member of 'node' [-Wshadow]
27 | node(node *l = nullptr, node *r = nullptr, int cnt = 0) : l(l), r(r), cnt(cnt) {}
| ~~~~~~^~~~~~~~~~~
teams.cpp:26:11: note: shadowed declaration is here
26 | node *l, *r;
| ^
teams.cpp:26:15: warning: 'node::r' will be initialized after [-Wreorder]
26 | node *l, *r;
| ^
teams.cpp:25:9: warning: 'int node::cnt' [-Wreorder]
25 | int cnt;
| ^~~
teams.cpp:27:5: warning: when initialized here [-Wreorder]
27 | 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:27:52: warning: declaration of 'cnt' shadows a member of 'node' [-Wshadow]
27 | node(node *l = nullptr, node *r = nullptr, int cnt = 0) : l(l), r(r), cnt(cnt) {}
| ~~~~^~~~~~~
teams.cpp:25:9: note: shadowed declaration is here
25 | int cnt;
| ^~~
teams.cpp:27:35: warning: declaration of 'r' shadows a member of 'node' [-Wshadow]
27 | node(node *l = nullptr, node *r = nullptr, int cnt = 0) : l(l), r(r), cnt(cnt) {}
| ~~~~~~^~~~~~~~~~~
teams.cpp:26:15: note: shadowed declaration is here
26 | node *l, *r;
| ^
teams.cpp:27:16: warning: declaration of 'l' shadows a member of 'node' [-Wshadow]
27 | node(node *l = nullptr, node *r = nullptr, int cnt = 0) : l(l), r(r), cnt(cnt) {}
| ~~~~~~^~~~~~~~~~~
teams.cpp:26:11: note: shadowed declaration is here
26 | node *l, *r;
| ^
teams.cpp: In constructor 'node::node(node*, node*, int)':
teams.cpp:27:52: warning: declaration of 'cnt' shadows a member of 'node' [-Wshadow]
27 | node(node *l = nullptr, node *r = nullptr, int cnt = 0) : l(l), r(r), cnt(cnt) {}
| ~~~~^~~~~~~
teams.cpp:25:9: note: shadowed declaration is here
25 | int cnt;
| ^~~
teams.cpp:27:35: warning: declaration of 'r' shadows a member of 'node' [-Wshadow]
27 | node(node *l = nullptr, node *r = nullptr, int cnt = 0) : l(l), r(r), cnt(cnt) {}
| ~~~~~~^~~~~~~~~~~
teams.cpp:26:15: note: shadowed declaration is here
26 | node *l, *r;
| ^
teams.cpp:27:16: warning: declaration of 'l' shadows a member of 'node' [-Wshadow]
27 | node(node *l = nullptr, node *r = nullptr, int cnt = 0) : l(l), r(r), cnt(cnt) {}
| ~~~~~~^~~~~~~~~~~
teams.cpp:26:11: note: shadowed declaration is here
26 | node *l, *r;
| ^
teams.cpp: In function 'int Get(node*, int, int, const int&, const int&)':
teams.cpp:90:44: warning: declaration of 'a' shadows a global declaration [-Wshadow]
90 | int Get(node *st, int l, int r, const int &a, const int &b)
| ~~~~~~~~~~~^
teams.cpp:35:8: note: shadowed declaration is here
35 | int n, a[N];
| ^
teams.cpp: In function 'int Cal(int, int)':
teams.cpp:102:78: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
102 | return dp[x] + Get(f[a[y]], 1, n, a[y], n) - Get(f[a[x]], 1, n, a[y], n) - a[y];
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~