Problem minstack
User Tracxr
Submission Time 2023-03-13 14:55:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minstack.cpp:8:1: error: ‘stackk’ does not name a type; did you mean ‘stack_t’?
8 | stackk<int>mins;
| ^~~~~~
| stack_t
minstack.cpp: In function ‘void push(int)’:
minstack.cpp:13:8: error: ‘mins’ was not declared in this scope
13 | if(mins.empty()||x<=mins) mins.push(x);
| ^~~~
minstack.cpp: In function ‘void pop()’:
minstack.cpp:17:17: error: ‘mins’ was not declared in this scope
17 | if(s.top()==mins.top()){
| ^~~~
minstack.cpp: In function ‘int getMin()’:
minstack.cpp:28:12: error: ‘mins’ was not declared in this scope
28 | return mins.top();
| ^~~~