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

Compile Error

minstack.cpp: In function ‘void pop()’:
minstack.cpp:20: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 ‘()’ ?)
20 | if (dq.front = minVal) {
| ~~~^~~~~
| ()