password.cpp: In function 'void myinsert(std::string&, int, char)':
password.cpp:8:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | for (int i = 0; i <= str.size(); i++) {
| ~~^~~~~~~~~~~~~
password.cpp: In function 'void myerase(std::string&, int)':
password.cpp:18:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | for (int i = 0; i < str.size(); i++) {
| ~~^~~~~~~~~~~~
password.cpp:22:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
22 | return s;
| ^
password.cpp: In function 'std::string guess(int, int)':
password.cpp:33:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | if (query(cur) == cur.size()) was = true; else myerase(cur, i);
| ~~~~~~~~~~~^~~~~~~~~~~~~