Problem leave
User P55D2K
Submission Time 2023-04-22 16:53:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

leave.cpp: In function ‘int main()’:
leave.cpp:12:11: error: ‘class std::deque<int>’ has no member named ‘reserve’
12 | queue.reserve(amt_instructions);
| ^~~~~~~
leave.cpp:21:61: error: no matching function for call to ‘find(std::deque<int>::iterator, std::deque<int>::iterator, int&)’
21 | auto it = find(queue.begin(), queue.end(), param);
| ^
In file included from /usr/include/c++/9/bits/locale_facets.h:48,
from /usr/include/c++/9/bits/basic_ios.h:37,
from /usr/include/c++/9/ios:44,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from leave.cpp:1:
/usr/include/c++/9/bits/streambuf_iterator.h:373:5: note: candidate: ‘template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value