Problem sort
User dieunq1309
Submission Time 2023-05-20 00:11:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘std::vector<long long int> asort(std::vector<long long int>, long long int, long long int)’:
sort.cpp:13:39: error: no matching function for call to ‘sort(std::vector<long long int>&, long long int&, long long int)’
13 | return sort(list, a, count + 1);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from sort.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:4863:5: note: candidate: ‘template<class _RAIter> void std::sort(_RAIter, _RAIter)’
4863 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
| ^~~~
/usr/include/c++/9/bits/stl_algo.h:4863:5: note: template argument deduction/substitution failed:
sort.cpp:13:39: note: deduced conflicting types for parameter ‘_RAIter’ (‘std::vector<long long int>’ and ‘long long int