Problem | guanine |
---|---|
User | justin271828 |
Submission Time | 2023-06-06 14:26:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
guanine.cpp: In function ‘int main()’:
guanine.cpp:13:17: error: no matching function for call to ‘std::deque<char>::push_back(std::string&)’
13 | d.push_back(p);
| ^
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:1569:7: note: candidate: ‘void std::deque<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = char; _Alloc = std::allocator<char>; std::deque<_Tp, _Alloc>::value_type = char]’
1569 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_deque.h:1569:35: note: no known conversion for argument 1 from ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘const value_type&’ {aka ‘const char&’}
1569 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/u