Problem guanine
User supercel980
Submission Time 2025-02-14 16:11:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

guanine.cpp: In function ‘int main()’:
guanine.cpp:18:23: error: no matching function for call to ‘std::deque<std::__cxx11::basic_string<char> >::resize(std::string&)’
18 | d.resize(a);
| ^
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from guanine.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1317:7: note: candidate: ‘void std::deque<_Tp, _Alloc>::resize(std::deque<_Tp, _Alloc>::size_type) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; std::deque<_Tp, _Alloc>::size_type = long unsigned int]’
1317 | resize(size_type __new_size)
| ^~~~~~
/usr/include/c++/9/bits/stl_deque.h:1317:24: note: no known conversion for argument 1 from ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘std::