Problem minstack
User idkhowtocode
Submission Time 2025-12-18 11:36:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minstack.cpp: In function ‘void push(int)’:
minstack.cpp:13:2: error: ‘v’ was not declared in this scope
13 | v.push_back(X);
| ^
minstack.cpp: In function ‘void pop()’:
minstack.cpp:17:2: error: ‘v’ was not declared in this scope
17 | v.pop_bacl(X);
| ^
minstack.cpp:17:13: error: ‘X’ was not declared in this scope
17 | v.pop_bacl(X);
| ^
minstack.cpp: In function ‘int top()’:
minstack.cpp:21:9: error: ‘v’ was not declared in this scope
21 | return v[0];
| ^
minstack.cpp: In function ‘int getMin()’:
minstack.cpp:25:2: error: ‘v’ was not declared in this scope
25 | v.back();
| ^