Problem lvm
User SharpnessChipped
Submission Time 2023-06-12 21:52:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lvm.cpp: In function ‘int main()’:
lvm.cpp:47:10: error: invalid use of non-static member function ‘void std::stack<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >]’
47 | stack.pop;
| ~~~~~~^~~
In file included from /usr/include/c++/9/stack:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:89,
from lvm.cpp:1:
/usr/include/c++/9/bits/stl_stack.h:266:7: note: declared here
266 | pop()
| ^~~