Submission #1188105

#TimeUsernameProblemLanguageResultExecution timeMemory
1188105user736482Maze (JOI23_ho_t3)C++20
Compilation error
0 ms0 KiB
#pragma GCC optimize("O3") #include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define pb push_back #define ff first #define ss second #define MOD 1000000009 #define INF 1000000019 #define INFL 1000000000000000099LL #define POT (1<<20) ll a,b,r,c,d,t,n,m,l,q,k,ak,ans,s; vector<ll>g[6000000],g2[6000000],g3[6000000]; bool co[6000000]; ll dst[6000000]; bool odw[6000000]; ll in(){ ll x=0; char ch=getchar_unlocked(); while(ch>'9' || ch<'0')ch=getchar_unlocked(); while(ch>='0' && ch<='9'){ x*=10; x+=ch-'0'; ch=getchar_unlocked(); } return x; } int main() { ios_base::sync_with_stdio(0);cin.tie(0); c=in();r=in();n=in(); b=in();a=in(); a--;b--; s=r*b+a; b=in();a=in(); a--;b--; t=r*b+a; for(ll i=0;i<r*c;i++){ char ch; ch=getchar_unlocked(); while(ch!='.' && ch!='#')ch=getchar_unlocked(); co[i]=(ch=='.'); } for(ll i=0;i<r*c;i++){ if(i>=r){ if(co[i]) g[i].pb(i-r); g2[i].pb(i-r); } if(i+r<r*c){ if(co[i]) g[i].pb(i+r); g2[i].pb(i+r); } if(i%r<r-1){ if(co[i]) g[i].pb(i+1); g2[i].pb(i+1); } if(i%r){ if(co[i]) g[i].pb(i-1); g2[i].pb(i-1); } swap(g3[i]=g2[i]); if(i%r && i>=r){ g2[i].pb(i-r-1); } if(i%r<r-1 && i>=r){ g2[i].pb(i-r+1); } if(i%r && i+r<r*c){ g2[i].pb(i+r-1); } if(i%r<r-1 && i+r<r*c){ g2[i].pb(i+r+1); } } deque<pair<ll,ll>>pq; pq.pb({0,s}); while(pq.size()){ auto pom=pq.front(); pq.pop_front(); if(odw[pom.ss])continue; odw[pom.ss]=1; dst[pom.ss]=pom.ff; if(pom.ff%n!=n-1){ for(ll i : g2[pom.ss]){ pq.pb({pom.ff+1,i}); } } for(ll i : g3[pom.ss]){ pq.pb({pom.ff+1,i}); } if(pom.ff%n==0){ for(ll i : g[pom.ss]){ pq.push_front({pom.ff,i}); } } } cout<<(dst[t]+n-1)/n; return 0; }

Compilation message (stderr)

Main.cpp: In function 'int main()':
Main.cpp:66:13: error: no matching function for call to 'swap(std::vector<long long int>&)'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::__cxx11::basic_istringstream<_CharT, _Traits, _Allocator>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::__cxx11::basic_ostringstream<_CharT, _Traits, _Allocator>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::__cxx11::basic_stringstream<_CharT, _Traits, _Allocator>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/11/regex:63,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:110,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::__cxx11::basic_regex<_Ch_type, _Rx_traits>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/11/regex:63,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:110,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::__cxx11::match_results<_BiIter, _Alloc>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.cpp:2:
/usr/include/c++/11/bits/move.h:196:5: note: candidate: 'template<class _Tp> constexpr std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&)'
  196 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/11/bits/move.h:196:5: note:   template argument deduction/substitution failed:
Main.cpp:66:13: note:   candidate expects 2 arguments, 1 provided
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   mismatched types '_Tp [_Nm]' and 'std::vector<long long int>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::pair<_T1, _T2>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::pair<_T1, _T2>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::array<_Tp, _Nm>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::array<_Tp, _Nm>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::tuple<_Tps ...>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::tuple<_Tps ...>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::function<_Res(_ArgTypes ...)>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::unordered_multimap<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.cpp:2:
/usr/include/c++/11/bits/stl_vector.h:1962:5: note: candidate: 'template<class _Tp, class _Alloc> void std::swap(std::vector<_Tp, _Alloc>&, std::vector<_Tp, _Alloc>&)'
 1962 |     swap(vector<_Tp, _Alloc>& __x, vector<_Tp, _Alloc>& __y)
      |     ^~~~
/usr/include/c++/11/bits/stl_vector.h:1962:5: note:   template argument deduction/substitution failed:
Main.cpp:66:13: note:   candidate expects 2 arguments, 1 provided
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/11/deque:67,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:68,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::deque<_Tp, _Alloc>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:70,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::basic_filebuf<_CharT, _Traits>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:70,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::basic_ifstream<_CharT, _Traits>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:70,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::basic_ofstream<_CharT, _Traits>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:70,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::basic_fstream<_CharT, _Traits>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::unique_ptr<_Tp, _Dp>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::unique_ptr<_Tp, _Dp>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/11/list:63,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:79,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::__cxx11::list<_Tp, _Alloc>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/11/map:60,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:81,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/11/map:61,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:81,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::map<_Key, _Tp, _Compare, _Allocator>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/11/map:62,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:81,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::multimap<_Key, _Tp, _Compare, _Allocator>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::__shared_ptr<_Tp, _Lp>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::__weak_ptr<_Tp, _Lp>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/11/memory:77,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:82,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::shared_ptr<_Tp>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/11/memory:77,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:82,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::weak_ptr<_Tp>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/11/queue:64,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:86,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::queue<_Tp, _Seq>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/11/queue:64,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:86,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::priority_queue<_Tp, _Sequence, _Compare>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/11/set:61,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::set<_Key, _Compare, _Allocator>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/11/set:62,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::multiset<_Key, _Compare, _Allocator>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/11/stack:61,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:89,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::stack<_Tp, _Seq>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::unique_lock<_Mutex>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::forward_list<_Tp, _Alloc>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:105,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::promise<_Res>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:105,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::packaged_task<_Res(_ArgTypes ...)>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:122,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::shared_lock<_Mutex>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:130,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::optional<_Tp>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:130,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::optional<_Tp>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::variant<_Types ...>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::variant<_Types ...>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:151,
                 from Main.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:
Main.cpp:66:13: note:   'std::vector<long long int>' is not derived from 'std::basic_syncbuf<_CharT, _Traits, _Alloc>'
   66 |         swap(g3[i]=g2[i]);
      |         ~~~~^~~~~~~~~~~~~
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 Main.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:3: note:   candidate expects 2 arguments, 1 provided
/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:3: note:   candidate expects 2 arguments, 1 provided
/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:3: note:   candidate expects 2 arguments, 1 provided
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 Main.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:3: note:   candidate expects 2 arguments, 1 provided
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:126,
                 from Main.cpp:2:
/usr/include/c++/11/any:428:15: note: candidate: 'void std::swap(std::any&, std::any&)'
  428 |   inline void swap(any& __x, any& __y) noexcept { __x.swap(__y); }
      |               ^~~~
/usr/include/c++/11/any:428:15: note:   candidate expects 2 arguments, 1 provided