我在使用C++的时候,遇到了如下报错:
-> % g++ test.cpp
In file included from /usr/include/c++/7/queue:64:0,
from test.cpp:5:
/usr/include/c++/7/bits/stl_queue.h: In instantiation of ‘class std::queue<int, int>’:
test.cpp:33:21: required from here
/usr/include/c++/7/bits/stl_queue.h:124:47: error: ‘int’ is not a class, struct, or union type
typedef typename _Sequence::value_type value_type;
^~~~~~~~~~
/usr/include/c++/7/bits/stl_queue.h:125:46: error: ‘int’ is not a class,