crocodile.cpp:16:15: error: 'sqrt' was not declared in this scope
const int B = sqrt(N);
^~~~
crocodile.cpp:16:15: note: suggested alternative: 'short'
const int B = sqrt(N);
^~~~
short
crocodile.cpp:17:1: error: 'mt19937' does not name a type
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
^~~~~~~
crocodile.cpp:21:1: error: 'vector' does not name a type
vector < pair < int , ll > > v[N];
^~~~~~
crocodile.cpp: In function 'long long int dfs(int)':
crocodile.cpp:30:5: error: 'vector' was not declared in this scope
vector < ll > g;
^~~~~~
crocodile.cpp:5:12: error: expected primary-expression before 'long'
#define ll long long
^
crocodile.cpp:30:14: note: in expansion of macro 'll'
vector < ll > g;
^~
crocodile.cpp:31:30: error: 'v' was not declared in this scope
for( int i = 0; i < (int)v[x].size(); i++ ){
^
crocodile.cpp:36:9: error: 'g' was not declared in this scope
g.push_back(xx);
^
crocodile.cpp:38:14: error: 'g' was not declared in this scope
if( (int)g.size() < 2 )return g[0];
^
crocodile.cpp:39:11: error: 'g' was not declared in this scope
sort( g.begin() , g.end() );
^
crocodile.cpp:39:5: error: 'sort' was not declared in this scope
sort( g.begin() , g.end() );
^~~~
crocodile.cpp:39:5: note: suggested alternative: 'short'
sort( g.begin() , g.end() );
^~~~
short
crocodile.cpp: In function 'int travel_plan(int, int, int (*)[2], int*, int, int*)':
crocodile.cpp:49:9: error: 'v' was not declared in this scope
v[a[i][0]].push_back({ a[i][1] , l[i] });
^