crocodile.cpp:6:1: error: 'vector' does not name a type
vector < pair < int, int > > adj[NN];
^~~~~~
crocodile.cpp: In function 'void dfs(int, int)':
crocodile.cpp:12:17: error: 'adj' was not declared in this scope
for ( auto pr: adj[v] ) {
^~~
crocodile.cpp:16:24: error: 'ind' was not declared in this scope
int cnt = dp[u] + l[ind];
^~~
crocodile.cpp:16:24: note: suggested alternative: 'int'
int cnt = dp[u] + l[ind];
^~~
int
crocodile.cpp: In function 'int travel_plan(int, int, int (*)[2], int*, int, int*)':
crocodile.cpp:36:3: error: 'adj' was not declared in this scope
adj[u].push_back( { v, i } );
^~~