Problem sort
User boaznumberd5555
Submission Time 2026-02-03 20:12:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘int32_t main()’:
sort.cpp:12:28: error: no matching function for call to ‘sort(std::vector<std::__cxx11::basic_string<char> >&, std::vector<std::__cxx11::basic_string<char> >::size_type)’
12 | sort(arr[i],arr[i].size());
| ^
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:12:28: note: deduced conflicting types for parameter ‘_RAIter’ (‘std::vector<std::__cxx11::basic_string<char> >’ and ‘long unsigned int’)
12 |