# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1208979 | jasonic | 코알라 (APIO17_koala) | C++20 | Compilation error | 0 ms | 0 KiB |
#include "koala.h"
#include <bits/stdc++.h>
using namespace std;
int toSend[100];
int response[100];
int minValue(int n, int w) {
toSend[0] = 1;
playRound(toSend, response);
for(int i = 1; i < n; i++) {
if(response[i] == 0) return i;
}
return 0;
}
int maxValue(int n, int w) {
vector<int> candidates;
while(candidates.size() != 1) {
int cnt = w / candidates.size();
fill(toSend, toSend + n, 0);
for(auto i : candidates) toSend[i] = cnt;
playRound(toSend, response);
swap(candidates, vector<int>());
for(int i = 0; i < 100; i++) if(response[i] > cnt) candidates.push_back(i);
}
return candidates[0];
}
int greaterValue(int n, int w) {
// TODO: Implement Subtask 3 solution here.
// You may leave this function unmodified if you are not attempting this
// subtask.
return 0;
}
void allValues(int n, int w, int *p) {
if (w == 2*n) {
// TODO: Implement Subtask 4 solution here.
// You may leave this block unmodified if you are not attempting this
// subtask.
} else {
// TODO: Implement Subtask 5 solution here.
// You may leave this block unmodified if you are not attempting this
// subtask.
}
}
Compilation message (stderr)
koala.cpp: In function 'int maxValue(int, int)': koala.cpp:30:13: error: no matching function for call to 'swap(std::vector<int>&, std::vector<int>)' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from koala.cpp:2: /usr/include/c++/11/sstream:1185:5: note: candidate: 'template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>&, std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>&)' 1185 | swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x, | ^~~~ /usr/include/c++/11/sstream:1185:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from koala.cpp:2: /usr/include/c++/11/sstream:1193:5: note: candidate: 'template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(std::__cxx11::basic_istringstream<_CharT, _Traits, _Allocator>&, std::__cxx11::basic_istringstream<_CharT, _Traits, _Allocator>&)' 1193 | swap(basic_istringstream<_CharT, _Traits, _Allocator>& __x, | ^~~~ /usr/include/c++/11/sstream:1193:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::__cxx11::basic_istringstream<_CharT, _Traits, _Allocator>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from koala.cpp:2: /usr/include/c++/11/sstream:1200:5: note: candidate: 'template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(std::__cxx11::basic_ostringstream<_CharT, _Traits, _Allocator>&, std::__cxx11::basic_ostringstream<_CharT, _Traits, _Allocator>&)' 1200 | swap(basic_ostringstream<_CharT, _Traits, _Allocator>& __x, | ^~~~ /usr/include/c++/11/sstream:1200:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::__cxx11::basic_ostringstream<_CharT, _Traits, _Allocator>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from koala.cpp:2: /usr/include/c++/11/sstream:1207:5: note: candidate: 'template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(std::__cxx11::basic_stringstream<_CharT, _Traits, _Allocator>&, std::__cxx11::basic_stringstream<_CharT, _Traits, _Allocator>&)' 1207 | swap(basic_stringstream<_CharT, _Traits, _Allocator>& __x, | ^~~~ /usr/include/c++/11/sstream:1207:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::__cxx11::basic_stringstream<_CharT, _Traits, _Allocator>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/regex:63, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:110, from koala.cpp:2: /usr/include/c++/11/bits/regex.h:872:5: note: candidate: 'template<class _Ch_type, class _Rx_traits> void std::__cxx11::swap(std::__cxx11::basic_regex<_Ch_type, _Rx_traits>&, std::__cxx11::basic_regex<_Ch_type, _Rx_traits>&)' 872 | swap(basic_regex<_Ch_type, _Rx_traits>& __lhs, | ^~~~ /usr/include/c++/11/bits/regex.h:872:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::__cxx11::basic_regex<_Ch_type, _Rx_traits>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/regex:63, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:110, from koala.cpp:2: /usr/include/c++/11/bits/regex.h:2165:5: note: candidate: 'template<class _Bi_iter, class _Alloc> void std::__cxx11::swap(std::__cxx11::match_results<_BiIter, _Alloc>&, std::__cxx11::match_results<_BiIter, _Alloc>&)' 2165 | swap(match_results<_Bi_iter, _Alloc>& __lhs, | ^~~~ /usr/include/c++/11/bits/regex.h:2165:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::__cxx11::match_results<_BiIter, _Alloc>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/bits/stl_pair.h:59, from /usr/include/c++/11/bits/stl_algobase.h:64, from /usr/include/c++/11/bits/specfun.h:45, from /usr/include/c++/11/cmath:1935, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41, from koala.cpp:2: /usr/include/c++/11/bits/move.h:196:5: note: candidate: 'constexpr std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = std::vector<int>; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]' (near match) 196 | swap(_Tp& __a, _Tp& __b) | ^~~~ /usr/include/c++/11/bits/move.h:196:5: note: conversion of argument 2 would be ill-formed: koala.cpp:30:26: error: cannot bind non-const lvalue reference of type 'std::vector<int>&' to an rvalue of type 'std::vector<int>' 30 | swap(candidates, vector<int>()); | ^~~~~~~~~~~~~ In file included from /usr/include/c++/11/bits/stl_pair.h:59, from /usr/include/c++/11/bits/stl_algobase.h:64, from /usr/include/c++/11/bits/specfun.h:45, from /usr/include/c++/11/cmath:1935, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41, from koala.cpp:2: /usr/include/c++/11/bits/move.h:220:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr std::__enable_if_t<std::__is_swappable<_Tp>::value> std::swap(_Tp (&)[_Nm], _Tp (&)[_Nm])' 220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) | ^~~~ /usr/include/c++/11/bits/move.h:220:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: mismatched types '_Tp [_Nm]' and 'std::vector<int>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:64, from /usr/include/c++/11/bits/specfun.h:45, from /usr/include/c++/11/cmath:1935, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41, from koala.cpp:2: /usr/include/c++/11/bits/stl_pair.h:533:5: note: candidate: 'template<class _T1, class _T2> constexpr typename std::enable_if<std::__and_<std::__is_swappable<_T1>, std::__is_swappable<_T2> >::value>::type std::swap(std::pair<_T1, _T2>&, std::pair<_T1, _T2>&)' 533 | swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y) | ^~~~ /usr/include/c++/11/bits/stl_pair.h:533:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::pair<_T1, _T2>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:64, from /usr/include/c++/11/bits/specfun.h:45, from /usr/include/c++/11/cmath:1935, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41, from koala.cpp:2: /usr/include/c++/11/bits/stl_pair.h:541:5: note: candidate: 'template<class _T1, class _T2> typename std::enable_if<(! std::__and_<std::__is_swappable<_T1>, std::__is_swappable<_T2> >::value)>::type std::swap(std::pair<_T1, _T2>&, std::pair<_T1, _T2>&)' (deleted) 541 | swap(pair<_T1, _T2>&, pair<_T1, _T2>&) = delete; | ^~~~ /usr/include/c++/11/bits/stl_pair.h:541:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::pair<_T1, _T2>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/string:55, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/istream:38, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from koala.cpp:2: /usr/include/c++/11/bits/basic_string.h:6493:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> void std::swap(std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&, std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 6493 | swap(basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~ /usr/include/c++/11/bits/basic_string.h:6493:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/tuple:39, from /usr/include/c++/11/functional:54, 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/array:348:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr typename std::enable_if<typename std::__array_traits<_Tp, _Nm>::_Is_swappable::value>::type std::swap(std::array<_Tp, _Nm>&, std::array<_Tp, _Nm>&)' 348 | swap(array<_Tp, _Nm>& __one, array<_Tp, _Nm>& __two) | ^~~~ /usr/include/c++/11/array:348:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::array<_Tp, _Nm>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/tuple:39, from /usr/include/c++/11/functional:54, 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/array:356:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> typename std::enable_if<(! typename std::__array_traits<_Tp, _Nm>::_Is_swappable::value)>::type std::swap(std::array<_Tp, _Nm>&, std::array<_Tp, _Nm>&)' (deleted) 356 | swap(array<_Tp, _Nm>&, array<_Tp, _Nm>&) = delete; | ^~~~ /usr/include/c++/11/array:356:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::array<_Tp, _Nm>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/functional:54, 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/tuple:1760:5: note: candidate: 'template<class ... _Elements> constexpr typename std::enable_if<std::__and_<std::__is_swappable<_Elements>...>::value>::type std::swap(std::tuple<_Tps ...>&, std::tuple<_Tps ...>&)' 1760 | swap(tuple<_Elements...>& __x, tuple<_Elements...>& __y) | ^~~~ /usr/include/c++/11/tuple:1760:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::tuple<_Tps ...>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/functional:54, 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/tuple:1768:5: note: candidate: 'template<class ... _Elements> constexpr typename std::enable_if<(! std::__and_<std::__is_swappable<_Elements>...>::value)>::type std::swap(std::tuple<_Tps ...>&, std::tuple<_Tps ...>&)' (deleted) 1768 | swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete; | ^~~~ /usr/include/c++/11/tuple:1768:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::tuple<_Tps ...>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/functional:59, 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/std_function.h:758:5: note: candidate: 'template<class _Res, class ... _Args> void std::swap(std::function<_Res(_ArgTypes ...)>&, std::function<_Res(_ArgTypes ...)>&)' 758 | swap(function<_Res(_Args...)>& __x, function<_Res(_Args...)>& __y) noexcept | ^~~~ /usr/include/c++/11/bits/std_function.h:758:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::function<_Res(_ArgTypes ...)>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/unordered_map:47, from /usr/include/c++/11/functional:61, 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/unordered_map.h:2120:5: note: candidate: 'template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> void std::swap(std::unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&, std::unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&)' 2120 | swap(unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, | ^~~~ /usr/include/c++/11/bits/unordered_map.h:2120:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/unordered_map:47, from /usr/include/c++/11/functional:61, 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/unordered_map.h:2127:5: note: candidate: 'template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> void std::swap(std::unordered_multimap<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&, std::unordered_multimap<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&)' 2127 | swap(unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, | ^~~~ /usr/include/c++/11/bits/unordered_map.h:2127:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::unordered_multimap<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>' 30 | swap(candidates, 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:1962:5: note: candidate: 'void std::swap(std::vector<_Tp, _Alloc>&, std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]' (near match) 1962 | swap(vector<_Tp, _Alloc>& __x, vector<_Tp, _Alloc>& __y) | ^~~~ /usr/include/c++/11/bits/stl_vector.h:1962:5: note: conversion of argument 2 would be ill-formed: koala.cpp:30:26: error: cannot bind non-const lvalue reference of type 'std::vector<int>&' to an rvalue of type 'std::vector<int>' 30 | swap(candidates, vector<int>()); | ^~~~~~~~~~~~~ In file included from /usr/include/c++/11/deque:67, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:68, from koala.cpp:2: /usr/include/c++/11/bits/stl_deque.h:2317:5: note: candidate: 'template<class _Tp, class _Alloc> void std::swap(std::deque<_Tp, _Alloc>&, std::deque<_Tp, _Alloc>&)' 2317 | swap(deque<_Tp,_Alloc>& __x, deque<_Tp,_Alloc>& __y) | ^~~~ /usr/include/c++/11/bits/stl_deque.h:2317:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::deque<_Tp, _Alloc>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:70, from koala.cpp:2: /usr/include/c++/11/fstream:1269:5: note: candidate: 'template<class _CharT, class _Traits> void std::swap(std::basic_filebuf<_CharT, _Traits>&, std::basic_filebuf<_CharT, _Traits>&)' 1269 | swap(basic_filebuf<_CharT, _Traits>& __x, | ^~~~ /usr/include/c++/11/fstream:1269:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::basic_filebuf<_CharT, _Traits>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:70, from koala.cpp:2: /usr/include/c++/11/fstream:1276:5: note: candidate: 'template<class _CharT, class _Traits> void std::swap(std::basic_ifstream<_CharT, _Traits>&, std::basic_ifstream<_CharT, _Traits>&)' 1276 | swap(basic_ifstream<_CharT, _Traits>& __x, | ^~~~ /usr/include/c++/11/fstream:1276:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::basic_ifstream<_CharT, _Traits>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:70, from koala.cpp:2: /usr/include/c++/11/fstream:1283:5: note: candidate: 'template<class _CharT, class _Traits> void std::swap(std::basic_ofstream<_CharT, _Traits>&, std::basic_ofstream<_CharT, _Traits>&)' 1283 | swap(basic_ofstream<_CharT, _Traits>& __x, | ^~~~ /usr/include/c++/11/fstream:1283:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::basic_ofstream<_CharT, _Traits>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:70, from koala.cpp:2: /usr/include/c++/11/fstream:1290:5: note: candidate: 'template<class _CharT, class _Traits> void std::swap(std::basic_fstream<_CharT, _Traits>&, std::basic_fstream<_CharT, _Traits>&)' 1290 | swap(basic_fstream<_CharT, _Traits>& __x, | ^~~~ /usr/include/c++/11/fstream:1290:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::basic_fstream<_CharT, _Traits>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/bits/locale_conv.h:41, from /usr/include/c++/11/locale:43, from /usr/include/c++/11/iomanip:43, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:72, from koala.cpp:2: /usr/include/c++/11/bits/unique_ptr.h:738:5: note: candidate: 'template<class _Tp, class _Dp> typename std::enable_if<std::__is_swappable<_T2>::value>::type std::swap(std::unique_ptr<_Tp, _Dp>&, std::unique_ptr<_Tp, _Dp>&)' 738 | swap(unique_ptr<_Tp, _Dp>& __x, | ^~~~ /usr/include/c++/11/bits/unique_ptr.h:738:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::unique_ptr<_Tp, _Dp>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/bits/locale_conv.h:41, from /usr/include/c++/11/locale:43, from /usr/include/c++/11/iomanip:43, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:72, from koala.cpp:2: /usr/include/c++/11/bits/unique_ptr.h:745:5: note: candidate: 'template<class _Tp, class _Dp> typename std::enable_if<(! std::__is_swappable<_T2>::value)>::type std::swap(std::unique_ptr<_Tp, _Dp>&, std::unique_ptr<_Tp, _Dp>&)' (deleted) 745 | swap(unique_ptr<_Tp, _Dp>&, | ^~~~ /usr/include/c++/11/bits/unique_ptr.h:745:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::unique_ptr<_Tp, _Dp>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/list:63, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:79, from koala.cpp:2: /usr/include/c++/11/bits/stl_list.h:2117:5: note: candidate: 'template<class _Tp, class _Alloc> void std::swap(std::__cxx11::list<_Tp, _Alloc>&, std::__cxx11::list<_Tp, _Alloc>&)' 2117 | swap(list<_Tp, _Alloc>& __x, list<_Tp, _Alloc>& __y) | ^~~~ /usr/include/c++/11/bits/stl_list.h:2117:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::__cxx11::list<_Tp, _Alloc>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/map:60, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:81, from koala.cpp:2: /usr/include/c++/11/bits/stl_tree.h:1632:5: note: candidate: 'template<class _Key, class _Val, class _KeyOfValue, class _Compare, class _Alloc> void std::swap(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&, std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&)' 1632 | swap(_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, | ^~~~ /usr/include/c++/11/bits/stl_tree.h:1632:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/map:61, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:81, from koala.cpp:2: /usr/include/c++/11/bits/stl_map.h:1537:5: note: candidate: 'template<class _Key, class _Tp, class _Compare, class _Alloc> void std::swap(std::map<_Key, _Tp, _Compare, _Allocator>&, std::map<_Key, _Tp, _Compare, _Allocator>&)' 1537 | swap(map<_Key, _Tp, _Compare, _Alloc>& __x, | ^~~~ /usr/include/c++/11/bits/stl_map.h:1537:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::map<_Key, _Tp, _Compare, _Allocator>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/map:62, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:81, from koala.cpp:2: /usr/include/c++/11/bits/stl_multimap.h:1202:5: note: candidate: 'template<class _Key, class _Tp, class _Compare, class _Alloc> void std::swap(std::multimap<_Key, _Tp, _Compare, _Allocator>&, std::multimap<_Key, _Tp, _Compare, _Allocator>&)' 1202 | swap(multimap<_Key, _Tp, _Compare, _Alloc>& __x, | ^~~~ /usr/include/c++/11/bits/stl_multimap.h:1202:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::multimap<_Key, _Tp, _Compare, _Allocator>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/bits/shared_ptr.h:53, from /usr/include/c++/11/memory:77, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:82, from koala.cpp:2: /usr/include/c++/11/bits/shared_ptr_base.h:1534:5: note: candidate: 'template<class _Tp, __gnu_cxx::_Lock_policy _Lp> void std::swap(std::__shared_ptr<_Tp, _Lp>&, std::__shared_ptr<_Tp, _Lp>&)' 1534 | swap(__shared_ptr<_Tp, _Lp>& __a, __shared_ptr<_Tp, _Lp>& __b) noexcept | ^~~~ /usr/include/c++/11/bits/shared_ptr_base.h:1534:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::__shared_ptr<_Tp, _Lp>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/bits/shared_ptr.h:53, from /usr/include/c++/11/memory:77, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:82, from koala.cpp:2: /usr/include/c++/11/bits/shared_ptr_base.h:1740:5: note: candidate: 'template<class _Tp, __gnu_cxx::_Lock_policy _Lp> void std::swap(std::__weak_ptr<_Tp, _Lp>&, std::__weak_ptr<_Tp, _Lp>&)' 1740 | swap(__weak_ptr<_Tp, _Lp>& __a, __weak_ptr<_Tp, _Lp>& __b) noexcept | ^~~~ /usr/include/c++/11/bits/shared_ptr_base.h:1740:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::__weak_ptr<_Tp, _Lp>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/memory:77, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:82, from koala.cpp:2: /usr/include/c++/11/bits/shared_ptr.h:574:5: note: candidate: 'template<class _Tp> void std::swap(std::shared_ptr<_Tp>&, std::shared_ptr<_Tp>&)' 574 | swap(shared_ptr<_Tp>& __a, shared_ptr<_Tp>& __b) noexcept | ^~~~ /usr/include/c++/11/bits/shared_ptr.h:574:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::shared_ptr<_Tp>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/memory:77, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:82, from koala.cpp:2: /usr/include/c++/11/bits/shared_ptr.h:763:5: note: candidate: 'template<class _Tp> void std::swap(std::weak_ptr<_Tp>&, std::weak_ptr<_Tp>&)' 763 | swap(weak_ptr<_Tp>& __a, weak_ptr<_Tp>& __b) noexcept | ^~~~ /usr/include/c++/11/bits/shared_ptr.h:763:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::weak_ptr<_Tp>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/queue:64, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:86, from koala.cpp:2: /usr/include/c++/11/bits/stl_queue.h:405:5: note: candidate: 'template<class _Tp, class _Seq> typename std::enable_if<std::__is_swappable<_T2>::value>::type std::swap(std::queue<_Tp, _Seq>&, std::queue<_Tp, _Seq>&)' 405 | swap(queue<_Tp, _Seq>& __x, queue<_Tp, _Seq>& __y) | ^~~~ /usr/include/c++/11/bits/stl_queue.h:405:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::queue<_Tp, _Seq>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/queue:64, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:86, from koala.cpp:2: /usr/include/c++/11/bits/stl_queue.h:739:5: note: candidate: 'template<class _Tp, class _Sequence, class _Compare> typename std::enable_if<std::__and_<std::__is_swappable<_T2>, std::__is_swappable<_Compare> >::value>::type std::swap(std::priority_queue<_Tp, _Sequence, _Compare>&, std::priority_queue<_Tp, _Sequence, _Compare>&)' 739 | swap(priority_queue<_Tp, _Sequence, _Compare>& __x, | ^~~~ /usr/include/c++/11/bits/stl_queue.h:739:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::priority_queue<_Tp, _Sequence, _Compare>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/set:61, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87, from koala.cpp:2: /usr/include/c++/11/bits/stl_set.h:1059:5: note: candidate: 'template<class _Key, class _Compare, class _Alloc> void std::swap(std::set<_Key, _Compare, _Allocator>&, std::set<_Key, _Compare, _Allocator>&)' 1059 | swap(set<_Key, _Compare, _Alloc>& __x, set<_Key, _Compare, _Alloc>& __y) | ^~~~ /usr/include/c++/11/bits/stl_set.h:1059:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::set<_Key, _Compare, _Allocator>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/set:62, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87, from koala.cpp:2: /usr/include/c++/11/bits/stl_multiset.h:1045:5: note: candidate: 'template<class _Key, class _Compare, class _Alloc> void std::swap(std::multiset<_Key, _Compare, _Allocator>&, std::multiset<_Key, _Compare, _Allocator>&)' 1045 | swap(multiset<_Key, _Compare, _Alloc>& __x, | ^~~~ /usr/include/c++/11/bits/stl_multiset.h:1045:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::multiset<_Key, _Compare, _Allocator>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/stack:61, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:89, from koala.cpp:2: /usr/include/c++/11/bits/stl_stack.h:380:5: note: candidate: 'template<class _Tp, class _Seq> typename std::enable_if<std::__is_swappable<_T2>::value>::type std::swap(std::stack<_Tp, _Seq>&, std::stack<_Tp, _Seq>&)' 380 | swap(stack<_Tp, _Seq>& __x, stack<_Tp, _Seq>& __y) | ^~~~ /usr/include/c++/11/bits/stl_stack.h:380:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::stack<_Tp, _Seq>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/condition_variable:41, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:103, from koala.cpp:2: /usr/include/c++/11/bits/unique_lock.h:236:5: note: candidate: 'template<class _Mutex> void std::swap(std::unique_lock<_Mutex>&, std::unique_lock<_Mutex>&)' 236 | swap(unique_lock<_Mutex>& __x, unique_lock<_Mutex>& __y) noexcept | ^~~~ /usr/include/c++/11/bits/unique_lock.h:236:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::unique_lock<_Mutex>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/forward_list:38, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:104, from koala.cpp:2: /usr/include/c++/11/bits/forward_list.h:1505:5: note: candidate: 'template<class _Tp, class _Alloc> void std::swap(std::forward_list<_Tp, _Alloc>&, std::forward_list<_Tp, _Alloc>&)' 1505 | swap(forward_list<_Tp, _Alloc>& __lx, | ^~~~ /usr/include/c++/11/bits/forward_list.h:1505:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::forward_list<_Tp, _Alloc>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:105, from koala.cpp:2: /usr/include/c++/11/future:1175:5: note: candidate: 'template<class _Res> void std::swap(std::promise<_Res>&, std::promise<_Res>&)' 1175 | swap(promise<_Res>& __x, promise<_Res>& __y) noexcept | ^~~~ /usr/include/c++/11/future:1175:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::promise<_Res>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:105, from koala.cpp:2: /usr/include/c++/11/future:1638:5: note: candidate: 'template<class _Res, class ... _ArgTypes> void std::swap(std::packaged_task<_Res(_ArgTypes ...)>&, std::packaged_task<_Res(_ArgTypes ...)>&)' 1638 | swap(packaged_task<_Res(_ArgTypes...)>& __x, | ^~~~ /usr/include/c++/11/future:1638:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::packaged_task<_Res(_ArgTypes ...)>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/unordered_set:47, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:118, from koala.cpp:2: /usr/include/c++/11/bits/unordered_set.h:1790:5: note: candidate: 'template<class _Value, class _Hash, class _Pred, class _Alloc> void std::swap(std::unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&, std::unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&)' 1790 | swap(unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, | ^~~~ /usr/include/c++/11/bits/unordered_set.h:1790:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/unordered_set:47, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:118, from koala.cpp:2: /usr/include/c++/11/bits/unordered_set.h:1797:5: note: candidate: 'template<class _Value, class _Hash, class _Pred, class _Alloc> void std::swap(std::unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&, std::unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&)' 1797 | swap(unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, | ^~~~ /usr/include/c++/11/bits/unordered_set.h:1797:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:122, from koala.cpp:2: /usr/include/c++/11/shared_mutex:851:5: note: candidate: 'template<class _Mutex> void std::swap(std::shared_lock<_Mutex>&, std::shared_lock<_Mutex>&)' 851 | swap(shared_lock<_Mutex>& __x, shared_lock<_Mutex>& __y) noexcept | ^~~~ /usr/include/c++/11/shared_mutex:851:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::shared_lock<_Mutex>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:130, from koala.cpp:2: /usr/include/c++/11/optional:1264:5: note: candidate: 'template<class _Tp> constexpr std::enable_if_t<(is_move_constructible_v<_Tp> && is_swappable_v<_Tp>)> std::swap(std::optional<_Tp>&, std::optional<_Tp>&)' 1264 | swap(optional<_Tp>& __lhs, optional<_Tp>& __rhs) | ^~~~ /usr/include/c++/11/optional:1264:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::optional<_Tp>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:130, from koala.cpp:2: /usr/include/c++/11/optional:1270:5: note: candidate: 'template<class _Tp> std::enable_if_t<(!(is_move_constructible_v<_Tp> && is_swappable_v<_Tp>))> std::swap(std::optional<_Tp>&, std::optional<_Tp>&)' (deleted) 1270 | swap(optional<_Tp>&, optional<_Tp>&) = delete; | ^~~~ /usr/include/c++/11/optional:1270:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::optional<_Tp>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133, from koala.cpp:2: /usr/include/c++/11/variant:1285:5: note: candidate: 'template<class ... _Types> std::enable_if_t<((is_move_constructible_v<_Types> && ...) && (is_swappable_v<_Types> && ...))> std::swap(std::variant<_Types ...>&, std::variant<_Types ...>&)' 1285 | swap(variant<_Types...>& __lhs, variant<_Types...>& __rhs) | ^~~~ /usr/include/c++/11/variant:1285:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::variant<_Types ...>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133, from koala.cpp:2: /usr/include/c++/11/variant:1292:5: note: candidate: 'template<class ... _Types> std::enable_if_t<(!((is_move_constructible_v<_Types> && ...) && (is_swappable_v<_Types> && ...)))> std::swap(std::variant<_Types ...>&, std::variant<_Types ...>&)' (deleted) 1292 | swap(variant<_Types...>&, variant<_Types...>&) = delete; | ^~~~ /usr/include/c++/11/variant:1292:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::variant<_Types ...>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:151, from koala.cpp:2: /usr/include/c++/11/syncstream:304:5: note: candidate: 'template<class _CharT, class _Traits, class _Allocator> void std::swap(std::basic_syncbuf<_CharT, _Traits, _Alloc>&, std::basic_syncbuf<_CharT, _Traits, _Alloc>&)' 304 | swap(basic_syncbuf<_CharT, _Traits, _Allocator>& __x, | ^~~~ /usr/include/c++/11/syncstream:304:5: note: template argument deduction/substitution failed: koala.cpp:30:13: note: 'std::vector<int>' is not derived from 'std::basic_syncbuf<_CharT, _Traits, _Alloc>' 30 | swap(candidates, vector<int>()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/vector:68, 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_bvector.h:118:3: note: candidate: 'void std::swap(std::_Bit_reference, std::_Bit_reference)' 118 | swap(_Bit_reference __x, _Bit_reference __y) noexcept | ^~~~ /usr/include/c++/11/bits/stl_bvector.h:118:23: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::_Bit_reference' 118 | swap(_Bit_reference __x, _Bit_reference __y) noexcept | ~~~~~~~~~~~~~~~^~~ /usr/include/c++/11/bits/stl_bvector.h:126:3: note: candidate: 'void std::swap(std::_Bit_reference, bool&)' 126 | swap(_Bit_reference __x, bool& __y) noexcept | ^~~~ /usr/include/c++/11/bits/stl_bvector.h:126:23: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::_Bit_reference' 126 | swap(_Bit_reference __x, bool& __y) noexcept | ~~~~~~~~~~~~~~~^~~ /usr/include/c++/11/bits/stl_bvector.h:134:3: note: candidate: 'void std::swap(bool&, std::_Bit_reference)' 134 | swap(bool& __x, _Bit_reference __y) noexcept | ^~~~ /usr/include/c++/11/bits/stl_bvector.h:134:14: note: no known conversion for argument 1 from 'std::vector<int>' to 'bool&' 134 | swap(bool& __x, _Bit_reference __y) noexcept | ~~~~~~^~~ In file included from /usr/include/c++/11/stop_token:35, from /usr/include/c++/11/condition_variable:47, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:103, from koala.cpp:2: /usr/include/c++/11/bits/std_thread.h:283:3: note: candidate: 'void std::swap(std::thread&, std::thread&)' 283 | swap(thread& __x, thread& __y) noexcept | ^~~~ /usr/include/c++/11/bits/std_thread.h:283:16: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::thread&' 283 | swap(thread& __x, thread& __y) noexcept | ~~~~~~~~^~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:126, from koala.cpp:2: /usr/include/c++/11/any:428:15: note: candidate: 'void std::swap(std::any&, std::any&)' (near match) 428 | inline void swap(any& __x, any& __y) noexcept { __x.swap(__y); } | ^~~~ /usr/include/c++/11/any:428:15: note: conversion of argument 2 would be ill-formed: koala.cpp:30:26: error: cannot bind non-const lvalue reference of type 'std::any&' to an rvalue of type 'std::any' 30 | swap(candidates, vector<int>()); | ^~~~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:126, from koala.cpp:2: /usr/include/c++/11/any:189:7: note: after user-defined conversion: 'std::any::any(_Tp&&) [with _Tp = std::vector<int>; _VTp = std::vector<int>; _Mgr = std::any::_Manager_external<std::vector<int> >; <template-parameter-1-4> = void]' 189 | any(_Tp&& __value) | ^~~