Problem minstack
User elainagrey
Submission Time 2023-01-06 07:06:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minstack.cpp: In function ‘void push(int)’:
minstack.cpp:7:9: error: ‘x’ was not declared in this scope
7 | s.push(x);
| ^
minstack.cpp: In function ‘void pop()’:
minstack.cpp:12:28: error: expected ‘;’ before ‘s’
12 | st.erase(st.find(s.top()))
| ^
| ;
13 | s.pop();
| ~