combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:50:22: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
50 | 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:65:24: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
65 | assert(d.size()<=4*n);
| ~~~~~~~~^~~~~
combo.cpp:69: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]
69 | if (p==ans.size())
| ~^~~~~~~~~~~~
combo.cpp:71: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]
71 | if (p==ans.size()+1)
| ~^~~~~~~~~~~~~~
combo.cpp:73: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]
73 | if (p==ans.size()+2)
| ~^~~~~~~~~~~~~~
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:79:22: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
79 | assert(ans.size()==n-1);
| ~~~~~~~~~~^~~~~
combo.cpp:81:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
81 | for (int j = 0; j < z.size()-1; j++)
| ~~^~~~~~~~~~~~
combo.cpp:86: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]
86 | if (p==ans.size()+1)
| ~^~~~~~~~~~~~~~
combo.cpp:49:10: warning: unused variable 'lst' [-Wunused-variable]
49 | char lst='-';
| ^~~
combo.cpp:91:8: warning: unused variable 'o' [-Wunused-variable]
91 | ll o=ans.size();
| ^