longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:26:16: warning: the address of 'bool are_connected(std::vector<int>, std::vector<int>)' will never be NULL [-Waddress]
26 | bool connect = are_connected{a,b};
| ^~~~~~~~~~~~~
longesttrip.cpp:26:29: error: expected ',' or ';' before '{' token
26 | bool connect = are_connected{a,b};
| ^
longesttrip.cpp: At global scope:
longesttrip.cpp:45:1: error: expected declaration before '}' token
45 | }
| ^
longesttrip.cpp:46:1: error: expected unqualified-id before 'return'
46 | return out;
| ^~~~~~
longesttrip.cpp:47:1: error: expected declaration before '}' token
47 | }
| ^