Problem adjacentswaps
User Henries
Submission Time 2024-10-22 10:27:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from adjacentswaps.cpp:1:
/usr/include/c++/9/bits/stl_vector.h: In instantiation of ‘struct std::_Vector_base<long long int, long long int>’:
/usr/include/c++/9/bits/stl_vector.h:386:11: required from ‘class std::vector<long long int, long long int>’
/usr/include/c++/9/bits/stl_pair.h:214:11: required from ‘struct std::pair<std::vector<long long int, long long int>, long long int>’
adjacentswaps.cpp:3:77: required from here
/usr/include/c++/9/bits/stl_vector.h:84:21: error: ‘long long int’ is not a class, struct, or union type
84 | rebind<_Tp>::other _Tp_alloc_type;
|