Problem minstack
User DoubleShaurya
Submission Time 2024-03-04 16:21:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minstack.cpp:9:1: error: ‘mins’ does not name a type
9 | mins.push(INT_MAX);
| ^~~~
minstack.cpp: In function ‘void pop()’:
minstack.cpp:21:9: error: invalid use of member function ‘std::deque<_Tp, _Alloc>::const_reference std::deque<_Tp, _Alloc>::front() const [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::deque<_Tp, _Alloc>::const_reference = const long long int&]’ (did you forget the ‘()’ ?)
21 | if (dq.front = minVal) {
| ~~~^~~~~
| ()