race.cpp: In function 'void get_subtree_size(int)':
race.cpp:16:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
16 | for(auto [x , y]:g[p]){
| ^
race.cpp: In function 'int get_centroid(int)':
race.cpp:28:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
28 | for(auto [x , y]:g[p]){
| ^
race.cpp: In function 'void dfs1(int, int, int)':
race.cpp:44:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
44 | for(auto [x , y]:g[p]){
| ^
race.cpp: In function 'void dfs2(int, int, int)':
race.cpp:56:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
56 | for(auto [x , y]:g[p]){
| ^
race.cpp: In function 'void solve(int)':
race.cpp:70:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
70 | for(auto [x , y]: g[centroid]){
| ^
race.cpp:76:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
76 | for(int i = 1; i < cnt.size(); i++){
| ~~^~~~~~~~~~~~
race.cpp:79:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
79 | for(auto [x , y]: g[centroid]){
| ^