sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:48:46: error: no matching function for call to 'shuffle(std::vector<int>::iterator, __gnu_cxx::__normal_iterator<int*, std::vector<int> >)'
48 | shuffle(wrong.begin(), wrong.begin() + 10);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from sorting.cpp:2:
/usr/include/c++/10/bits/stl_algo.h:3748:5: note: candidate: 'template<class _RAIter, class _UGenerator> void std::shuffle(_RAIter, _RAIter, _UGenerator&&)'
3748 | shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last,
| ^~~~~~~
/usr/include/c++/10/bits/stl_algo.h:3748:5: note: template argument deduction/substitution failed:
sorting.cpp:48:46: note: candidate expects 3 arguments, 2 provided
48 | shuffle(wrong.begin(), wrong.begin() + 10);
| ^