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