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