Problem | lvm |
---|---|
User | avner21 |
Submission Time | 2023-04-26 16:08:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lvm.cpp: In function ‘void push(int)’:
lvm.cpp:10:5: error: reference to ‘stack’ is ambiguous
10 | stack.push(x);
| ^~~~~
In file included from /usr/include/c++/9/stack:61,
from lvm.cpp:2:
/usr/include/c++/9/bits/stl_stack.h:99:11: note: candidates are: ‘template<class _Tp, class _Sequence> class std::stack’
99 | class stack
| ^~~~~
lvm.cpp:7:12: note: ‘std::stack<int> stack’
7 | stack<int> stack;
| ^~~~~
lvm.cpp: In function ‘void store()’:
lvm.cpp:14:21: error: reference to ‘stack’ is ambiguous
14 | registerValue = stack.top();
| ^~~~~
In file included from /usr/include/c++/9/stack:61,
from lvm.cpp:2:
/usr/include/c++/9/bits/stl_stack.h:99:11: note: candidates are: ‘template<class _Tp, class _Sequence> class std::stack’
99 | class stack
|