Problem swapsort
User personjs
Submission Time 2025-01-05 20:46:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swapsort.cpp: In function β€˜int main()’:
swapsort.cpp:38:24: error: no match for call to β€˜(const std::pair<int, int>) (__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&)’
38 | swap(P[L], P[R]);
| ^