Problem minstack
User LiuZq
Submission Time 2024-04-14 15:27:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minstack.cpp:5:1: error: ‘mulit_set’ does not name a type
5 | mulit_set <int> mini;
| ^~~~~~~~~
minstack.cpp: In function ‘void push(int)’:
minstack.cpp:8:4: error: ‘mini’ was not declared in this scope
8 | mini.insert(m);
| ^~~~
minstack.cpp:8:16: error: ‘m’ was not declared in this scope
8 | mini.insert(m);
| ^
minstack.cpp: In function ‘void pop()’:
minstack.cpp:12:4: error: ‘mini’ was not declared in this scope
12 | mini.erase(s.top());
| ^~~~
minstack.cpp: In function ‘int getMin()’:
minstack.cpp:21:11: error: ‘class std::stack<int>’ has no member named ‘begin’
21 | return s.begin();
| ^~~~~