race.cpp: In function 'int dfssz(int, int)':
race.cpp:21:11: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
21 | for(auto [v,w]:adj[u])if(v!=p&&!used[v])sz[u]+=dfssz(v,u);
| ^
race.cpp: In function 'int centroid(int, int, int)':
race.cpp:26:11: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
26 | for(auto [v,w]:adj[u])if(v!=p&&!used[v]&&sz[v]*2>cnt)return centroid(v,cnt,u);
| ^
race.cpp: In function 'void dfs(int, int, int, int)':
race.cpp:35:11: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
35 | for(auto [v,w]:adj[u])if(v!=p&&used[v])dfs(v,d+w,cnt+1,u);
| ^
race.cpp: In function 'void decom(int)':
race.cpp:41:11: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
41 | for(auto [v,w]:adj[u])if(!used[v])dfs(v,w,1,u);
| ^
race.cpp:44:11: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
44 | for(auto [v,w]:adj[u])if(!used[v])decom(v);
| ^