crocodile.cpp: In function 'std::pair<long long int, int> dfs(int)':
crocodile.cpp:4:12: error: could not convert 'g.std::vector<std::pair<long long int, int> >::operator[](2).std::pair<long long int, int>::first' from 'long long int' to 'std::pair<long long int, int>'
#define fi first
crocodile.cpp:41:56: note: in expansion of macro 'fi'
if( (int)g.size() > 2 && g[1].se == 1 )return g[2].fi;
^~
crocodile.cpp:4:12: error: could not convert 'g.std::vector<std::pair<long long int, int> >::operator[](1).std::pair<long long int, int>::first' from 'long long int' to 'std::pair<long long int, int>'
#define fi first
crocodile.cpp:42:17: note: in expansion of macro 'fi'
return g[1].fi;
^~