combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:29:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | for(int i = 1;i<v.size();i++)
| ~^~~~~~~~~
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==answer.size()+0) answer += v[3];
| ~~~^~~~~~~~~~~~~~~~~
combo.cpp:48:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | else if(res==answer.size()+1) answer += v[2];
| ~~~^~~~~~~~~~~~~~~~~
combo.cpp:52:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
52 | if(press(answer+"A"+answer+"B")>answer.size())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
combo.cpp:54:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
54 | if(press(answer+"A")>answer.size()) answer += "A";
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
combo.cpp:59:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
59 | if(press(answer+"X")>answer.size()) answer += "X";
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
combo.cpp:15:9: warning: unused variable 'index' [-Wunused-variable]
15 | int index = 1;
| ^~~~~