| Problem | card |
|---|---|
| User | Zachareeeee |
| Submission Time | 2024-11-30 21:20:35 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
card.cpp: In function ‘int main()’:
card.cpp:15:26: error: no match for ‘operator[]’ (operand types are ‘std::__cxx11::list<long int>’ and ‘int’)
15 | v.push_back(v[0]);
| ^
card.cpp:19:26: error: no match for ‘operator[]’ (operand types are ‘std::__cxx11::list<long int>’ and ‘int’)
19 | v.push_back(v[1]);
| ^
card.cpp:20:31: error: no match for ‘operator+’ (operand types are ‘std::__cxx11::list<long int>::iterator’ {aka ‘std::_List_iterator<long int>’} and ‘int’)
20 | v.erase(v.begin() + 1);
| ~~~~~~~~~ ^ ~
| | |
| | int
| std::__cxx11::list<long int>::iterator {aka std::_List_iterator<long int>}
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,