race.cpp: In function 'void dfs(int, int)':
race.cpp:14:44: warning: decomposition declaration only available with -std=c++1z or -std=gnu++1z
void dfs(int u,int p){ sz[u] = 1; for(auto [d,v] : adj[u]) if(v!=p and !blocked[v]) dfs(v,u),sz[u]+=sz[v]; }
^
race.cpp:14:48: warning: unused variable 'd' [-Wunused-variable]
void dfs(int u,int p){ sz[u] = 1; for(auto [d,v] : adj[u]) if(v!=p and !blocked[v]) dfs(v,u),sz[u]+=sz[v]; }
^
race.cpp: In function 'void build(int, int)':
race.cpp:23:18: warning: decomposition declaration only available with -std=c++1z or -std=gnu++1z
for(auto [d,v] : adj[c]) if(!blocked[v] and v!=prev) if(sz[v]>mx) mx = sz[v],id = v;
^
race.cpp:23:22: warning: unused variable 'd' [-Wunused-variable]
for(auto [d,v] : adj[c]) if(!blocked[v] and v!=prev) if(sz[v]>mx) mx = sz[v],id = v;
^
race.cpp:30:14: warning: decomposition declaration only available with -std=c++1z or -std=gnu++1z
for(auto [d,v] : adj[c]) if(!blocked[v]) build(v,c);
^
race.cpp:30:18: warning: unused variable 'd' [-Wunused-variable]
for(auto [d,v] : adj[c]) if(!blocked[v]) build(v,c);
^
race.cpp: In function 'void dfslca(int, int)':
race.cpp:33:66: warning: decomposition declaration only available with -std=c++1z or -std=gnu++1z
void dfslca(int u,int p){ lv[u] = lv[p]+1,dp[0][u] = p; for(auto [d,v] : adj[u]) if(v!=p) dist[v] = dist[u]+(long long)d,dfslca(v,u); }
^