Problem trapezes
User Xiaoyang
Submission Time 2024-01-03 01:00:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from trapezes.cpp:3:
/usr/include/c++/9/bits/stl_algo.h: In instantiation of ‘void std::random_shuffle(_RAIter, _RAIter, _Generator&&) [with _RAIter = __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >; _Generator = long unsigned int]’:
trapezes.cpp:60:32: required from here
/usr/include/c++/9/bits/stl_algo.h:4656:48: error: expression cannot be used as a function
4656 | _RandomAccessIterator __j = __first + __rand((__i - __first) + 1);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~