| Problem | calc |
|---|---|
| User | beefburger |
| Submission Time | 2026-01-29 10:23:38 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
calc.cpp: In function ‘int main()’:
calc.cpp:15:4: error: ‘coun’ was not declared in this scope; did you mean ‘count’?
15 | coun++;
| ^~~~
| count
calc.cpp:17:9: error: invalid use of non-static member function ‘void std::stack<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >]’
17 | 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()
| ^~~
calc.cpp:22:15: error: missing template arguments before ‘.’ token
22 | sum += stack.pop;
| ^
calc.cpp:25:1: error: expected ‘}’ at end of input
25 | }
| ^
calc.cpp:5:11: note: to match this ‘{’
5 | int main(){
| ^<