Problem minstack
User polyda
Submission Time 2024-06-23 18:50:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from minstack.cpp:1:
/usr/include/c++/9/bits/stl_queue.h: In instantiation of ‘class std::priority_queue<int, int, std::greater<int> >’:
minstack.cpp:4:41: required from here
/usr/include/c++/9/bits/stl_queue.h:460:8: error: ‘int’ is not a class, struct, or union type
460 | using _Uses = typename
| ^~~~~
/usr/include/c++/9/bits/stl_queue.h:473:47: error: ‘int’ is not a class, struct, or union type
473 | typedef typename _Sequence::value_type value_type;
| ^~~~~~~~~~
/usr/include/c++/9/bits/stl_queue.h:474:46: error: ‘int’ is not a class, struct, or union type
474 | typedef typename _Sequence::reference reference;
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_qu