Problem | calc |
---|---|
User | Debdan01 |
Submission Time | 2025-08-28 17:18:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
calc.cpp: In function ‘int main()’:
calc.cpp:10:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
10 | if(s=="ADD"){
| ^~~~~
calc.cpp:14:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | }else if(s=="UNDO"){
| ^~~~~~
calc.cpp:15:7: error: invalid use of non-static member function ‘void std::deque<_Tp, _Alloc>::pop_back() [with _Tp = int; _Alloc = std::allocator<int>]’
15 | dq.pop_back;
| ~~~^~~~~~~~
In file included from /usr/include/c++/9/deque:67,
from calc.cpp:2:
/usr/include/c++/9/bits/stl_deque.h:1628:7: note: declared here
1628 | pop_back() _GLIBCXX_NOEXCEPT
| ^~~~~~~~