Problem minstack
User Martin
Submission Time 2026-07-12 11:42:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minstack.cpp: In function ‘void push(int)’:
minstack.cpp:5:3: error: ‘s’ was not declared in this scope
5 | s.push(x);
| ^
minstack.cpp: In function ‘int top(int)’:
minstack.cpp:9:10: error: ‘s’ was not declared in this scope
9 | return s.top();
| ^
minstack.cpp: In function ‘void pop()’:
minstack.cpp:13:3: error: ‘s’ was not declared in this scope
13 | s.pop();
| ^
minstack.cpp: In function ‘int get_min()’:
minstack.cpp:17:19: error: ‘s’ was not declared in this scope
17 | int stack_size = s.size();
| ^