password.cpp: In function 'std::string guess(int, int)':
password.cpp:14:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | if (query(cur) == cur.size()) was = true; else cur.erase(cur.begin() + i);
| ~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/9/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from password.cpp:1:
password.cpp:18:27: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
18 | assert(cur.size() >= i + 1);
| ~~~~~~~~~~~^~~~~~~~