combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:60:24: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char'
60 | temp.push_back(ans);
| ^~~
| |
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/13/string:54,
from combo.h:3,
from combo.cpp:1:
/usr/include/c++/13/bits/basic_string.h:1561:24: note: initializing argument 1 of 'constexpr void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::push_back(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
1561 | push_back(_CharT __c)
| ~~~~~~~^~~
combo.cpp:77:24: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char'
77 | temp.push_back(ans);
| ^~~
| |
| std::string {aka std::__cxx11::basic_string<char>}
/usr/include/c++/13/bits/basic_string.h:1561:24: note: initializing argument 1 of 'constexpr void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::push_back(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
1561 | push_back(_CharT __c)
| ~~~~~~~^~~