password.cpp: In function 'std::string guess(int, int)':
password.cpp:13:7: warning: array subscript has type 'char' [-Wchar-subscripts]
13 | cnt[c] = query(s);
| ^
password.cpp:19:12: warning: array subscript has type 'char' [-Wchar-subscripts]
19 | if(!cnt[c]) continue;
| ^
password.cpp:20:11: warning: array subscript has type 'char' [-Wchar-subscripts]
20 | if(cnt[c]+ans.size()==n){
| ^
password.cpp:20:24: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
20 | if(cnt[c]+ans.size()==n){
| ~~~~~~~~~~~~~~~~~^~~
password.cpp:22:9: warning: array subscript has type 'char' [-Wchar-subscripts]
22 | cnt[c]--;
| ^
password.cpp:25:24: warning: array subscript has type 'char' [-Wchar-subscripts]
25 | for(int j=1; j<=cnt[c]; j++){
| ^
password.cpp:30:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | if(query(t) == t.size()){
| ~~~~~~~~~^~~~~~~~~~~
password.cpp:36:9: warning: array subscript has type 'char' [-Wchar-subscripts]
36 | cnt[c]--;
| ^
password.cpp:39:24: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | for(int j=1; j<=cnt[c]; j++){
| ^