password.cpp: In function 'std::string guess(int, int)':
password.cpp:17:31: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) ()'
17 | int len = suf.size() + pref().size();
| ^
password.cpp:20:48: 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 (int z = 1; z + pref.size() + suf.size() <= n; z++) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
password.cpp:42:32: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
42 | if (pref.size() + suf.size() == n) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~