Problem show
User ZivTheONe
Submission Time 2024-10-22 11:57:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

Alice.cpp: In function ‘std::vector<std::pair<int, int> > Alice()’:
Alice.cpp:48:31: error: no matching function for call to ‘shuffle(std::vector<std::pair<int, int> >::iterator, std::vector<std::pair<int, int> >::iterator)’
48 | shuffle(V.begin(), V.end());
| ^
In file included from /usr/include/c++/9/algorithm:62,
from Alice.cpp:5:
/usr/include/c++/9/bits/stl_algo.h:3792:5: note: candidate: ‘template<class _RAIter, class _UGenerator> void std::shuffle(_RAIter, _RAIter, _UGenerator&&)’
3792 | shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last,
| ^~~~~~~
/usr/include/c++/9/bits/stl_algo.h:3792:5: note: template argument deduction/substitution failed:
Alice.cpp:48:31: note: candidate expects 3 arguments, 2 provided
48 | shuffle(V.begin(), V.end());
| ^