islands.cpp: In function 'std::variant<bool, std::vector<int, std::allocator<int> > > find_journey(int, int, std::vector<int>, std::vector<int>)':
islands.cpp:23:25: error: 'm' was not declared in this scope
23 | for (int i = 0; i < m; i++) {
| ^
islands.cpp:30:18: error: 'm' was not declared in this scope
30 | for (int i = m - 1; i >= 0; i--) {
| ^
islands.cpp:37:25: error: 'm' was not declared in this scope
37 | for (int i = 0; i < m; i++) {
| ^
islands.cpp:44:29: error: could not convert '{a, c, b, a, c, b}' from '<brace-enclosed initializer list>' to 'std::variant<bool, std::vector<int, std::allocator<int> > >'
44 | return {a, c, b, a, c, b};
| ^
| |
| <brace-enclosed initializer list>