Problem minstack
User Sheb
Submission Time 2025-04-21 17:56:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minstack.cpp: In function ‘void push(int)’:
minstack.cpp:10:9: error: ‘minS’ was not declared in this scope
10 | if (minS.empty()) {
| ^~~~
minstack.cpp: In function ‘void pop()’:
minstack.cpp:20:5: error: ‘minS’ was not declared in this scope
20 | minS.pop_back();
| ^~~~
minstack.cpp: In function ‘int getMin()’:
minstack.cpp:28:12: error: ‘minS’ was not declared in this scope
28 | return minS.back();
| ^~~~