password.cpp: In function 'std::string guess(int, int)':
password.cpp:24:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for (int j = 1; j <= ans.length(); j++)
| ~~^~~~~~~~~~~~~~~
password.cpp:29:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | if (j != ans.length()) assd = ans.substr(j, (int)(ans.length()) - j);
| ~~^~~~~~~~~~~~~~~
password.cpp:43:17: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'legth'; did you mean 'length'?
43 | if (ans.legth() > 100)
| ^~~~~
| length