longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:9:12: error: 'are_connected' was not declared in this scope
9 | if(are_connected({u}, {u + 1})) ans.push_back(++u);
| ^~~~~~~~~~~~~
longesttrip.cpp:25:11: error: 'are_connected' was not declared in this scope
25 | if(!are_connected({i}, {j})){
| ^~~~~~~~~~~~~
longesttrip.cpp:30:47: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
30 | for(int i = 0; i < N; i++) if(adj[i].size() >= (N + 1) / 2) return adj[i];
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~
longesttrip.cpp:47:1: warning: control reaches end of non-void function [-Wreturn-type]
47 | }
| ^