Problem | minstack |
---|---|
User | ashgreninja1006 |
Submission Time | 2025-07-12 19:43:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minstack.cpp: In function ‘void push(int)’:
minstack.cpp:6:2: error: ‘s’ was not declared in this scope
6 | s.push(X);
| ^
minstack.cpp:8:7: error: overloaded function with no contextual type information
8 | min.push(X);
| ^~~~
minstack.cpp:11:7: error: overloaded function with no contextual type information
11 | min.push(s.top());
| ^~~~
minstack.cpp: In function ‘void pop()’:
minstack.cpp:16:2: error: ‘s’ was not declared in this scope
16 | s.pop();
| ^
minstack.cpp:17:6: error: overloaded function with no contextual type information
17 | min.pop();
| ^~~
minstack.cpp: In function ‘int top()’:
minstack.cpp:22:10: error: ‘s’ was not declared in this scope
22 | cout << s.top();
| ^
minstack.cpp: In function ‘int getMin()’:
minstack.cpp:26:14: error: overloaded function with no contextual type information
26 | cout <