Problem | swapsort |
---|---|
User | YongXin |
Submission Time | 2023-06-02 17:05:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swapsort.cpp: In function ‘int main()’:
swapsort.cpp:12:11: error: no matching function for call to ‘copy(long long int [n], long long int [n])’
12 | copy(t,p);
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from swapsort.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:465:5: note: candidate: ‘template<class _II, class _OI> _OI std::copy(_II, _II, _OI)’
465 | copy(_II __first, _II __last, _OI __result)
| ^~~~
/usr/include/c++/9/bits/stl_algobase.h:465:5: note: template argument deduction/substitution failed:
swapsort.cpp:12:11: note: candidate expects 3 arguments, 2 provided
12 | copy(t,p);
| ^
In file included from /usr/include/c++/9/bits/locale_facets.h:48,
from /usr/include/c++/9/bits/basic_ios