longesttrip.cpp: In function 'int bsmin(std::vector<int>, std::vector<int>)':
longesttrip.cpp:10:12: error: 'are_connected' was not declared in this scope
10 | if(are_connected(C, B)) {
| ^~~~~~~~~~~~~
longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:29:12: error: 'are_connected' was not declared in this scope
29 | if(are_connected({A.back()}, {o[i]})) {
| ^~~~~~~~~~~~~
longesttrip.cpp:53:8: error: 'are_connected' was not declared in this scope
53 | if(are_connected({A[0]}, {B[0]})) reverse(A.begin(), A.end());
| ^~~~~~~~~~~~~
longesttrip.cpp:54:8: error: 'are_connected' was not declared in this scope
54 | if(are_connected({A.back()}, {B.back()})) reverse(B.begin(), B.end());
| ^~~~~~~~~~~~~
longesttrip.cpp:55:8: error: 'are_connected' was not declared in this scope
55 | if(are_connected({A[0]}, {B.back()})) reverse(A.begin(), A.end()), reverse(B.begin(), B.end());
| ^~~~~~~~~~~~~
longesttrip.cpp:56:8: error: 'are_connected' was not declared in this scope
56 | if(are_connected({A.back()}, {B[0]})) {
| ^~~~~~~~~~~~~
longesttrip.cpp:60:8: error: 'are_connected' was not declared in this scope
60 | if(are_connected(A, B)) {
| ^~~~~~~~~~~~~