Problem islands
User JoonYorigami
Submission Time 2026-05-21 15:42:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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:72:11: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
72 | if(path.size==0)
| ~~~~~^~~~
| ()