password.cpp: In function 'std::string guess(int, int)':
password.cpp:55:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | for(i=1,s=ch;query(s)==s.size();++i,s+=ch);
| ~~~~~~~~^~~~~~~~~~
password.cpp:56:13: warning: array subscript has type 'char' [-Wchar-subscripts]
56 | cnt[ch]=i-1;
| ^~
password.cpp:72:48: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
72 | while(j<siz2 && query(rez+s2[j]+*p)==(rez+s2[j]+*p).size())
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
password.cpp:48:9: warning: variable 'cnt' set but not used [-Wunused-but-set-variable]
48 | int cnt[300];
| ^~~
password.cpp: At global scope:
password.cpp:30:13: warning: 'void end(int)' defined but not used [-Wunused-function]
30 | static void end(int success) {
| ^~~
password.cpp:27:18: warning: 'numQueries' defined but not used [-Wunused-variable]
27 | static int n, s, numQueries;
| ^~~~~~~~~~
password.cpp:27:15: warning: 's' defined but not used [-Wunused-variable]
27 | static int n, s, numQueries;
| ^
password.cpp:27:12: warning: 'n' defined but not used [-Wunused-variable]
27 | static int n, s, numQueries;
| ^