Problem | minstack |
---|---|
User | pythonPerfectionist |
Submission Time | 2023-07-22 19:28:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minstack.cpp: In function ‘void push(int)’:
minstack.cpp:11:27: error: overloaded function with no contextual type information
11 | int minimum = min(min.top(),X);
| ^~~
minstack.cpp: In function ‘void pop()’:
minstack.cpp:17:13: error: expected ‘;’ before ‘}’ token
17 | mins.pop()
| ^
| ;
18 | }
| ~
minstack.cpp: In function ‘int top()’:
minstack.cpp:20:17: error: expected ‘;’ before ‘}’ token
20 | return s.top()
| ^
| ;
21 | }
| ~
minstack.cpp: In function ‘int getMin()’:
minstack.cpp:23:20: error: expected ‘;’ before ‘}’ token
23 | return mins.top()
| ^
| ;
24 | }
| ~