Problem guanine
User Duk168
Submission Time 2024-06-26 16:29:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

guanine.cpp: In function ‘int main()’:
guanine.cpp:29:28: error: no matching function for call to ‘std::deque<char>::erase(int&)’
29 | dna.erase(i);
| ^
In file included from /usr/include/c++/9/deque:67,
from guanine.cpp:2:
/usr/include/c++/9/bits/stl_deque.h:1807:7: note: candidate: ‘std::deque<_Tp, _Alloc>::iterator std::deque<_Tp, _Alloc>::erase(std::deque<_Tp, _Alloc>::const_iterator) [with _Tp = char; _Alloc = std::allocator<char>; std::deque<_Tp, _Alloc>::iterator = std::_Deque_iterator<char, char&, char*>; std::deque<_Tp, _Alloc>::const_iterator = std::_Deque_iterator<char, const char&, const char*>]’
1807 | erase(const_iterator __position)
| ^~~~~
/usr/include/c++/9/bits/stl_deque.h:1807:28: note: no known conversion for argument 1 from ‘int’ to ‘std::deque<char>::const_iterator’ {aka ‘std::_Deque_iterat