Problem | lvm |
---|---|
User | WILLI1071A |
Submission Time | 2024-10-03 19:50:40 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lvm.cpp: In function ‘void push(long long int)’:
lvm.cpp:10:5: error: reference to ‘stack’ is ambiguous
10 | stack.push_back(Number);
| ^~~~~
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:99:11: note: candidates are: ‘template<class _Tp, class _Sequence> class std::stack’
99 | class stack
| ^~~~~
lvm.cpp:5:13: note: ‘std::vector<long long int> stack’
5 | vector<int> stack; // Stack to store numbers
| ^~~~~
lvm.cpp: In function ‘void store()’:
lvm.cpp:15:17: error: reference to ‘stack’ is ambiguous
15 | storeaged = stack.back();
| ^~~~~
In file included from /usr/include/c++/9/stack:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:89,