combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:47:22: 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:24: 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:14: 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:14: 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:71:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
71 | for (int j = 0; j < z.size(); j++)
| ~~^~~~~~~~~~
combo.cpp:76:14: 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]
76 | if (p==ans.size()+1)
| ~^~~~~~~~~~~~~~
combo.cpp:46:10: warning: unused variable 'lst' [-Wunused-variable]
46 | char lst='-';
| ^~~