koala.cpp: In function 'int maxValue(int, int)':
koala.cpp:31:25: error: cannot bind non-const lvalue reference of type 'std::vector<int>&' to an rvalue of type 'std::vector<int>'
31 | candidates.swap(vector<int>());
| ^~~~~~~~~~~~~
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from koala.cpp:2:
/usr/include/c++/11/bits/stl_vector.h:1480:20: note: initializing argument 1 of 'void std::vector<_Tp, _Alloc>::swap(std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]'
1480 | swap(vector& __x) _GLIBCXX_NOEXCEPT
| ~~~~~~~~^~~