| Problem | brick |
|---|---|
| User | Keira |
| Submission Time | 2026-02-21 10:18:08 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
brick.cpp: In function ‘int main()’:
brick.cpp:11:34: error: no matching function for call to ‘std::vector<int>::begin(int&)’
11 | #define crush erase(stack.begin(i), stack.end(i+1));
| ^
brick.cpp:44:13: note: in expansion of macro ‘crush’
44 | crush;
| ^~~~~
In file included from /usr/include/c++/9/vector:67,
from brick.cpp:2:
/usr/include/c++/9/bits/stl_vector.h:808:7: note: candidate: ‘std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::begin() [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = int*]’
808 | begin() _GLIBCXX_NOEXCEPT
| ^~~~~
/usr/include/c++/9/bits/stl_vector.h:808:7: note: candidate expects 0 arguments, 1 provided
/usr/inc