crocodile.cpp: In function 'int travel_plan(int, int, int (*)[2], int*, int, int*)':
crocodile.cpp:32:18: warning: decomposition declaration only available with -std=c++1z or -std=gnu++1z
for(auto [d,v] : adj[u]) if(dist[u]+d<dist[v]) dist[v] = dist[u]+d,q.push({dist[v],v});
^
crocodile.cpp:42:18: warning: decomposition declaration only available with -std=c++1z or -std=gnu++1z
for(auto [d,v] : adj[u]) if(dist[u]+d!=dist[v])
^
crocodile.cpp:44:35: error: 'ds2' was not declared in this scope
if(dis2[u]+d<dis2[v]) ds2[v] = dis2[u]+d,q.push({dis2[v],v});
^~~
crocodile.cpp:44:35: note: suggested alternative: 'dis2'
if(dis2[u]+d<dis2[v]) ds2[v] = dis2[u]+d,q.push({dis2[v],v});
^~~
dis2