Problem longesttrip
User chenweilian
Submission Time 2026-08-02 18:10:59
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 longesttrip.cpp:2:
/usr/include/c++/9/bits/stl_algo.h: In instantiation of ‘void std::shuffle(_RAIter, _RAIter, _UGenerator&&) [with _RAIter = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _UGenerator = long unsigned int]’:
longesttrip.cpp:77:27: required from here
/usr/include/c++/9/bits/stl_algo.h:3813:2: error: ‘std::remove_reference<long unsigned int>::type’ {aka ‘long unsigned int’} is not a class, struct, or union type
3813 | __uc_type;
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_algo.h:3841:37: error: ‘std::remove_reference<long unsigned int>::type’ {aka ‘long unsigned int’} is not a class, struct, or union type
3841 | const pair<__uc_type, __uc_type> __pospos =
| ^~~~~~~~
/usr/include/c++/9/bits/stl_algo.