password.cpp: In function 'std::string guess(int, int)':
password.cpp:25:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | for (int j = 1; j <= ans.length(); j++)
| ~~^~~~~~~~~~~~~~~
password.cpp:41:30: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
41 | if (ans.length() == n) break;
| ~~~~~~~~~~~~~^~~~
password.cpp:43:26: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
43 | if (ans.length() == n) break;
| ~~~~~~~~~~~~~^~~~