race.cpp: In function 'void solve(int, int)':
race.cpp:15:12: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
15 | for (auto [y,d]:v[x]){
| ^
race.cpp:25:12: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
25 | for (auto [y,d]:v[x]){
| ^
race.cpp:27:12: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
27 | for(auto [kk,ans]:m[e[y]]){
| ^
race.cpp:32:12: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
32 | for(auto [kk,ans]:m[e[y]]){
| ^
race.cpp:26:11: warning: 'Y' may be used uninitialized in this function [-Wmaybe-uninitialized]
26 | if(y==pa||y==Y)continue;
| ~~~~~^~~~~~
race.cpp:23:18: warning: 'D' may be used uninitialized in this function [-Wmaybe-uninitialized]
23 | else z1[x]=z1[Y]+D, z2[x]=z2[Y]+1, e[x]=e[Y];
| ~~~~~^~