Problem minstack
User Ush
Submission Time 2024-12-11 15:01:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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