race.cpp: In function 'int dfssz(int, int)':
race.cpp:22:11: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
22 | 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:27:11: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
27 | 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:36:11: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
36 | 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:42:11: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
42 | for(auto [v,w]:adj[u]){
| ^
race.cpp:45:12: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
45 | for(auto [x,y]:res2)dist[x]=min(dist[x],y);
| ^
race.cpp:50:11: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
50 | for(auto [v,w]:adj[u])if(!used[v])decom(v);
| ^