longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:23:42: error: too few arguments to function 'bool are_connected(std::vector<int>, std::vector<int>)'
23 | if (are_connected({i, ans.back()}))ans.pb(i);
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from longesttrip.cpp:1:
longesttrip.h:5:6: note: declared here
5 | bool are_connected(std::vector<int> A, std::vector<int> B);
| ^~~~~~~~~~~~~
longesttrip.cpp:26:24: error: could not convert 'ans' from 'std::deque<int>' to 'std::vector<int>'
26 | return ans;
| ^~~
| |
| std::deque<int>