Problem distribution
User shoryu386
Submission Time 2023-12-04 21:59:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

distribution.cpp: In function ‘void solve(long long int, long long int, long long int*)’:
distribution.cpp:120:22: error: no matching function for call to ‘shuffle(long long int*&, long long int*)’
120 | shuffle(arr, arr+N);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from distribution.cpp:1:
/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:
distribution.cpp:120:22: note: candidate expects 3 arguments, 2 provided
120 | shuffle(arr, arr+N);
| ^
distribution.cpp: In fu