Problem | choochoo |
---|---|
User | Dantheman |
Submission Time | 2024-11-22 18:41:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
choochoo.cpp: In function ‘int main()’:
choochoo.cpp:15:15: error: cannot convert ‘std::vector<std::__cxx11::basic_string<char> >’ to ‘char’
15 | s.push_back(v1);
| ^~
| |
| std::vector<std::__cxx11::basic_string<char> >
In file included from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from choochoo.cpp:1:
/usr/include/c++/9/bits/basic_string.h:1353:24: note: initializing argument 1 of ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::push_back(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
1353 |