crocodile.cpp: In function 'long long int dfs(int)':
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 'long long int travel_plan(int, int, int (*)[2], int*, int, int*)':
crocodile.cpp:28:11: error: ambiguating new declaration of 'long long int travel_plan(int, int, int (*)[2], int*, int, int*)'
long long travel_plan(int n,int m,int r[][2],int l[],int k,int p[])
^~~~~~~~~~~
In file included from crocodile.cpp:1:0:
crocodile.h:1:5: note: old declaration 'int travel_plan(int, int, int (*)[2], int*, int, int*)'
int travel_plan(int N, int M, int R[][2], int L[], int K, int P[]);
^~~~~~~~~~~
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});
^