combo.cpp:20:23: warning: multi-character character constant [-Wmultichar]
20 | x='BXY';
| ^~~~~
combo.cpp:24:23: warning: multi-character character constant [-Wmultichar]
24 | x='AXY';
| ^~~~~
combo.cpp:33:19: warning: multi-character character constant [-Wmultichar]
33 | x='ABY';
| ^~~~~
combo.cpp:37:19: warning: multi-character character constant [-Wmultichar]
37 | x='ABX';
| ^~~~~
combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:20:23: warning: overflow in conversion from 'int' to 'char' changes value from '4347993' to ''Y'' [-Woverflow]
20 | x='BXY';
| ^~~~~
combo.cpp:24:23: warning: overflow in conversion from 'int' to 'char' changes value from '4282457' to ''Y'' [-Woverflow]
24 | x='AXY';
| ^~~~~
combo.cpp:33:19: warning: overflow in conversion from 'int' to 'char' changes value from '4276825' to ''Y'' [-Woverflow]
33 | x='ABY';
| ^~~~~
combo.cpp:37:19: warning: overflow in conversion from 'int' to 'char' changes value from '4276824' to ''X'' [-Woverflow]
37 | x='ABX';
| ^~~~~
combo.cpp:71:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
71 | if (y==ans.size())ans+=x[2];
| ~^~~~~~~~~~~~
combo.cpp:72:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
72 | if (y==ans.size()+1)ans+=x[0];
| ~^~~~~~~~~~~~~~
combo.cpp:73:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
73 | if (y==ans.size()+2)ans+=x[1];
| ~^~~~~~~~~~~~~~
combo.cpp:9:12: warning: control reaches end of non-void function [-Wreturn-type]
9 | string p;
| ^