Problem minstack
User SilverClaw
Submission Time 2025-02-08 23:20:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minstack.cpp: In function ‘void pop()’:
minstack.cpp:13:45: error: expected primary-expression before ‘)’ token
13 | if(stk.top() == minstk.top()){minstk.pop();)
| ^
minstack.cpp:18:11: error: a function-definition is not allowed here before ‘{’ token
18 | int top() {
| ^
minstack.cpp:22:14: error: a function-definition is not allowed here before ‘{’ token
22 | int getMin() {
| ^
minstack.cpp:24:1: error: expected ‘}’ at end of input
24 | }
| ^
minstack.cpp:12:12: note: to match this ‘{’
12 | void pop() {
| ^