Problem minstack
User asruby
Submission Time 2025-01-04 23:05:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minstack.cpp: In function ‘void push(int)’:
minstack.cpp:19:12: error: a function-definition is not allowed here before ‘{’ token
19 | void pop() {
| ^
minstack.cpp:28:11: error: a function-definition is not allowed here before ‘{’ token
28 | int top() {
| ^
minstack.cpp:32:14: error: a function-definition is not allowed here before ‘{’ token
32 | int getMin() {
| ^
minstack.cpp:34:1: error: expected ‘}’ at end of input
34 | }
| ^
minstack.cpp:7:18: note: to match this ‘{’
7 | void push(int X) {
| ^