password.cpp: In function 'std::string obtainstr(std::string, int, char)':
password.cpp:9:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
9 | if (m >= s.length()) return s + i;
| ~~^~~~~~~~~~~~~
password.cpp: In function 'std::string guess(int, int)':
password.cpp:29:17: warning: array subscript has type 'char' [-Wchar-subscripts]
29 | if (amt[cur] <= 0) {++cur; continue;}
| ^~~
password.cpp:32:22: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
32 | int m = l+r >> 1;
| ~^~
password.cpp:35:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | if (res >= ans.length() + 1) l = m + 1;
| ~~~~^~~~~~~~~~~~~~~~~~~
password.cpp:39:15: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | --amt[cur];
| ^~~