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