crocodile.cpp: In function 'int dfs(int)':
crocodile.cpp:17:14: warning: overflow in implicit constant conversion [-Woverflow]
int mn = LLONG_MAX,mn2 = LLONG_MAX;
^~~~~~~~~
crocodile.cpp:17:30: warning: overflow in implicit constant conversion [-Woverflow]
int mn = LLONG_MAX,mn2 = LLONG_MAX;
^~~~~~~~~
crocodile.cpp:19:14: warning: decomposition declaration only available with -std=c++1z or -std=gnu++1z
for(auto [d,v] : adj[u]) if(dist[v]<dist[u])
^
crocodile.cpp:18:11: warning: variable 'm2' set but not used [-Wunused-but-set-variable]
int m,m2;
^~
crocodile.cpp: In function 'int travel_plan(int, int, int (*)[2], int*, int, int*)':
crocodile.cpp:37:40: warning: overflow in implicit constant conversion [-Woverflow]
for(int i = 0;i < n;i++) dist[i] = LLONG_MAX;
^~~~~~~~~
crocodile.cpp:43: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});
^