Problem | minstack |
---|---|
User | Fet |
Submission Time | 2024-12-11 14:53:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minstack.cpp: In function ‘void push(int)’:
minstack.cpp:9:7: error: ‘x’ was not declared in this scope
9 | q = x;
| ^
minstack.cpp:13:11: error: ‘x’ was not declared in this scope
13 | else if (x < q){
| ^
minstack.cpp:23:12: error: a function-definition is not allowed here before ‘{’ token
23 | 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) {
| ^