Problem minstack
User CKCodeBreaker55
Submission Time 2023-07-22 19:07:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minstack.cpp: In function ‘void push(int)’:
minstack.cpp:6:2: error: ‘s’ was not declared in this scope
6 | s.push(X);
| ^
minstack.cpp: In function ‘void pop()’:
minstack.cpp:10:2: error: ‘s’ was not declared in this scope
10 | s.pop();
| ^
minstack.cpp: In function ‘int top()’:
minstack.cpp:14:2: error: ‘s’ was not declared in this scope
14 | s.top();
| ^
minstack.cpp: In function ‘int getMin()’:
minstack.cpp:18:2: error: ‘s’ was not declared in this scope
18 | s.size();
| ^