answer.code: In function ‘void solve(int, int, int)’:
answer.code:109:13: error: no matching function for call to ‘swap(std::set<int>&, std::unordered_set<int>&)’
109 | swap(st2,st);
| ~~~~^~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:77,
from answer.code:1:
/usr/include/c++/13/any:429:15: note: candidate: ‘void std::swap(any&, any&)’ (near match)
429 | inline void swap(any& __x, any& __y) noexcept { __x.swap(__y); }
| ^~~~
/usr/include/c++/13/any:429:15: note: conversion of argument 2 would be ill-formed:
answer.code:109:18: error: cannot bind non-const lvalue reference of type ‘std::any&’ to an rvalue of type ‘std::any’
109 | swap(st2,st);
| ^~
/usr/include/c++/13/any:190:7: note: after user-defined conversion: ‘std::any::any(_Tp&&) [with _Tp = std::unordered_set<int>&; _VTp = std::unordered_set<int>; _Mgr = _Manager_external<std::unordered_set<int> >; typename std::enable_if<(is_copy_constructible_v<_VTp> && (! __is_in_place_type_v<_VTp>)), bool>::type <anonymous> = true]’
190 | any(_Tp&& __value)
| ^~~
In file included from /usr/include/c++/13/stop_token:37,
from /usr/include/c++/13/condition_variable:49,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:174:
/usr/include/c++/13/bits/std_thread.h:319:3: note: candidate: ‘void std::swap(thread&, thread&)’
319 | swap(thread& __x, thread& __y) noexcept
| ^~~~
/usr/include/c++/13/bits/std_thread.h:319:16: note: no known conversion for argument 1 from ‘std::set<int>’ to ‘std::thread&’
319 | swap(thread& __x, thread& __y) noexcept
| ~~~~~~~~^~~
In file included from /usr/include/c++/13/exception:164,
from /usr/include/c++/13/stdexcept:38,
from /usr/include/c++/13/system_error:43,
from /usr/include/c++/13/bits/ios_base.h:46,
from /usr/include/c++/13/streambuf:43,
from /usr/include/c++/13/bits/streambuf_iterator.h:35,
from /usr/include/c++/13/iterator:66,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:54:
/usr/include/c++/13/bits/exception_ptr.h:230:5: note: candidate: ‘void std::__exception_ptr::swap(exception_ptr&, exception_ptr&)’
230 | swap(exception_ptr& __lhs, exception_ptr& __rhs)
| ^~~~
/usr/include/c++/13/bits/exception_ptr.h:230:25: note: no known conversion for argument 1 from ‘std::set<int>’ to ‘std::__exception_ptr::exception_ptr&’
230 | swap(exception_ptr& __lhs, exception_ptr& __rhs)
| ~~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/13/complex:45,
from /usr/include/c++/13/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:127:
/usr/include/c++/13/sstream:1204:5: note: candidate: ‘template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(basic_stringbuf<_CharT, _Traits, _Alloc>&, basic_stringbuf<_CharT, _Traits, _Alloc>&)’
1204 | swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x,
| ^~~~
/usr/include/c++/13/sstream:1204:5: note: template argument deduction/substitution failed:
answer.code:109:13: note: ‘std::set<int>’ is not derived from ‘std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>’
109 | swap(st2,st);
| ~~~~^~~~~~~~
/usr/include/c++/13/sstream:1212:5: note: candidate: ‘template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(basic_istringstream<_CharT, _Traits, _Allocator>&, basic_istringstream<_CharT, _Traits, _Allocator>&)’
1212 | swap(basic_istringstream<_CharT, _Traits, _Allocator>& __x,
| ^~~~
/usr/include/c++/13/sstream:1212:5: note: template argument deduction/substitution failed:
answer.code:109:13: note: ‘std::set<int>’ is not derived from ‘std::__cxx11::basic_istringstream<_CharT, _Traits, _Allocator>’
109 | swap(st2,st);
| ~~~~^~~~~~~~
/usr/include/c++/13/sstream:1219:5: note: candidate: ‘template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(basic_ostringstream<_CharT, _Traits, _Allocator>&, basic_ostringstream<_CharT, _Traits, _Allocator>&)’
1219 | swap(basic_ostringstream<_CharT, _Traits, _Allocator>& __x,
| ^~~~
/usr/include/c++/13/sstream:1219:5: note: template argument deduction/substitution failed:
answer.code:109:13: note: ‘std::set<int>’ is not derived from ‘std::__cxx11::basic_ostringstream<_CharT, _Traits, _Allocator>’
109 | swap(st2,st);
| ~~~~^~~~~~~~
/usr/include/c++/13/sstream:1226:5: note: candidate: ‘template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(basic_stringstream<_CharT, _Traits, _Allocator>&, basic_stringstream<_CharT, _Traits, _Allocator>&)’
1226 | swap(basic_stringstream<_CharT, _Traits, _Allocator>& __x,
| ...