crocodile.cpp: In function 'void dfs(int, int, long long int)':
crocodile.cpp:23:13: error: cannot convert 'std::pair<int, int>' to 'int'
23 | dfs(to,from,dis+to.s);
| ^~
| |
| std::pair<int, int>
crocodile.cpp:15:14: note: initializing argument 1 of 'void dfs(int, int, long long int)'
15 | void dfs(int from , int p, ll dis){
| ~~~~^~~~
crocodile.cpp: In function 'int travel_plan(int, int, int (*)[2], int*, int, int*)':
crocodile.cpp:36:24: error: expected '}' before ')' token
36 | g[a].pb({b,L[i]);
| ~ ^