| Problem | brick |
|---|---|
| User | Memeathon |
| Submission Time | 2025-02-13 18:25:29 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
brick.cpp: In function ‘int main()’:
brick.cpp:10:10: error: reference to ‘stack’ is ambiguous
10 | while (stack.size()>0 && stack[0]<=a[i]) stack.pop_back();
| ^~~~~
In file included from /usr/include/c++/9/stack:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:89,
from brick.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
| ^~~~~
brick.cpp:4:13: note: ‘std::vector<int> stack’
4 | vector<int> stack = {};
| ^~~~~
brick.cpp:10:28: error: reference to ‘stack’ is ambiguous
10 | while (stack.size()>0 && stack[0]<=a[i]) stack.pop_back();
| ^~~~~
In file included from /usr/include/c++/9/stack:61,
from /usr/include/x86_64-linux-gnu/c++/9/bit