Problem calc
User beefburger
Submission Time 2026-01-29 10:26:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

calc.cpp: In function ‘int main()’:
calc.cpp:24:8: error: invalid use of non-static member function ‘void std::stack<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >]’
24 | sums.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 calc.cpp:1:
/usr/include/c++/9/bits/stl_stack.h:266:7: note: declared here
266 | pop()
| ^~~