| Problem | brick |
|---|---|
| User | Xiwen |
| Submission Time | 2025-11-07 13:57:08 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
brick.cpp: In function ‘int main()’:
brick.cpp:20:34: error: cannot convert ‘std::vector<int>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’} to ‘const char*’
20 | stack.erase(remove(stack.begin(), stack.end(), first_height), stack.end());
| ~~~~~~~~~~~^~
| |
| std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}
In file included from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from