Problem minstack
User kesleryak
Submission Time 2024-08-20 20:03:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minstack.cpp:3:7: error: ‘ll’ was not declared in this scope
3 | deque<ll> dq;
| ^~
minstack.cpp:3:9: error: template argument 1 is invalid
3 | deque<ll> dq;
| ^
minstack.cpp:3:9: error: template argument 2 is invalid
minstack.cpp: In function ‘void push(int)’:
minstack.cpp:8:8: error: request for member ‘push_front’ in ‘dq’, which is of non-class type ‘int’
8 | dq.push_front(X);
| ^~~~~~~~~~
minstack.cpp: In function ‘void pop()’:
minstack.cpp:12:5: error: request for member ‘pop_front’ in ‘dq’, which is of non-class type ‘int’
12 | dq.pop_front();
| ^~~~~~~~~
minstack.cpp: In function ‘int top()’:
minstack.cpp:16:13: error: invalid types ‘int[int]’ for array subscript
16 | return dq[0];
| ^
minstack.cpp: In function ‘int getMin()’:
minstack.cpp:20:29: error: request for member ‘begin’ in ‘dq’, which is of non-class type ‘in