combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:47:26: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
47 | while (ans.size()<n-1)
| ~~~~~~~~~~^~~~
In file included from /usr/include/c++/10/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from combo.cpp:1:
combo.cpp:62:28: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
62 | assert(d.size()<=4*n);
| ~~~~~~~~^~~~~
combo.cpp:65:18: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
65 | if (p==ans.size())
| ~^~~~~~~~~~~~
combo.cpp:67:18: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
67 | if (p==ans.size()+1)
| ~^~~~~~~~~~~~~~
combo.cpp:72:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
72 | for (int j = 0; j < z.size()-1; j++)
| ~~^~~~~~~~~~~~
combo.cpp:77:18: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
77 | if (p==ans.size()+1)
| ~^~~~~~~~~~~~~~
combo.cpp:46:14: warning: unused variable 'lst' [-Wunused-variable]
46 | char lst='-';
| ^~~