password.cpp: In function 'std::string guess(int, int)':
password.cpp:20:34: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
20 | for (; pref.size() + suf.size() <= n; ) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
password.cpp:24:48: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
24 | for (int z = 1; z + pref.size() + suf.size() <= n;) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
password.cpp:50:32: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
50 | if (pref.size() + suf.size() == n) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
password.cpp:52:8: warning: unused variable 'Z' [-Wunused-variable]
52 | int Z = query(pref);
| ^
password.cpp:22:8: warning: variable 'LAST' set but not used [-Wunused-but-set-variable]
22 | char LAST = ((int)pref.size() ? pref.back() : 'a');
| ^~~~
password.cpp:57:6: warning: unused variable 'z' [-Wunused-variable]
57 | int z = query(pref);
| ^