crocodile.cpp:13:31: error: array bound is not an integer constant before ']' token
vector< pair<int, ll> > g[MAXS];
^
crocodile.cpp:15:14: error: array bound is not an integer constant before ']' token
bool vis[MAXS];
^
crocodile.cpp:17:12: error: array bound is not an integer constant before ']' token
ll acc[MAXS];
^
crocodile.cpp: In function 'void dfs(int)':
crocodile.cpp:21:3: error: 'vis' was not declared in this scope
vis[u] = 1;
^~~
crocodile.cpp:21:3: note: suggested alternative: 'vii'
vis[u] = 1;
^~~
vii
crocodile.cpp:22:7: error: 'g' was not declared in this scope
if (g[u].size() == 1) {
^
crocodile.cpp:23:5: error: 'acc' was not declared in this scope
acc[u] = 0;
^~~
crocodile.cpp:27:19: error: 'g' was not declared in this scope
for (int i=0; i<g[u].size(); i++){
^
crocodile.cpp:32:14: error: 'acc' was not declared in this scope
adj.pb(acc[v] + g[u][i].second);
^~~
crocodile.cpp:36:3: error: 'acc' was not declared in this scope
acc[u] = adj[1];
^~~
crocodile.cpp: In function 'int travel_plan(int, int, int (*)[2], int*, int, int*)':
crocodile.cpp:41:5: error: 'g' was not declared in this scope
g[ R[i][0] ].pb(ii( R[i][1] , L[i]));
^
crocodile.cpp:47:15: error: 'acc' was not declared in this scope
return (int)acc[u];
^~~
crocodile.cpp:47:19: error: 'u' was not declared in this scope
return (int)acc[u];
^