combo.cpp: In function 'char extend(std::string&, bool)':
combo.cpp:37:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | if(res==ans.size()+2) return options[0];
| ~~~^~~~~~~~~~~~~~
combo.cpp:38:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | if(res==ans.size()+1) return options[1];
| ~~~^~~~~~~~~~~~~~
combo.cpp:39:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | if(res==ans.size()+0) return options[2];
| ~~~^~~~~~~~~~~~~~
combo.cpp:44:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
44 | if(res==ans.size()) return options[2];
| ~~~^~~~~~~~~~~~
combo.cpp:47:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
47 | if(res==ans.size()) return options[1];
| ~~~^~~~~~~~~~~~
combo.cpp:15:48: warning: control reaches end of non-void function [-Wreturn-type]
15 | vector <char> options = {'A', 'B', 'X', 'Y'};
| ^