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];
| ^~~
/usr/bin/ld: /tmp/ccwwZNDN.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccA3FrxL.o:password.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status