password.cpp: In function 'void dfs(char, int)':
password.cpp:10:5: warning: array subscript has type 'char' [-Wchar-subscripts]
10 | us[c][i] = 1;
| ^
password.cpp:11:17: warning: array subscript has type 'char' [-Wchar-subscripts]
11 | for(auto to: g[c][i]){
| ^
password.cpp:12:13: warning: array subscript has type 'char' [-Wchar-subscripts]
12 | if(!us[to.first][to.second])
| ~~~^~~~~
password.cpp: In function 'std::string guess(int, int)':
password.cpp:24:7: warning: array subscript has type 'char' [-Wchar-subscripts]
24 | cnt[c] = query(ans);
| ^
password.cpp:28:23: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | for(int i=1; i<=cnt[c]; i++){
| ^
password.cpp:30:16: warning: array subscript has type 'char' [-Wchar-subscripts]
30 | if(i != cnt[c]) g[c][i].push_back({c, i+1});
| ^
password.cpp:30:22: warning: array subscript has type 'char' [-Wchar-subscripts]
30 | if(i != cnt[c]) g[c][i].push_back({c, i+1});
| ^
password.cpp:35:25: warning: array subscript has type 'char' [-Wchar-subscripts]
35 | for(int j=1; j<=cnt[d]; j++){
| ^
password.cpp:37:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | if(query(t) == t.size()){
| ~~~~~~~~~^~~~~~~~~~~
password.cpp:38:18: warning: array subscript has type 'char' [-Wchar-subscripts]
38 | last = cnt[d]-j+1;
| ^
password.cpp:41:16: warning: array subscript has type 'char' [-Wchar-subscripts]
41 | if(last) g[c][i].push_back({d, last});
| ^
password.cpp:46:10: warning: array subscript has type 'char' [-Wchar-subscripts]
46 | if(cnt[c] && !us[c][1]) dfs(c, 1);
| ^
password.cpp:46:20: warning: array subscript has type 'char' [-Wchar-subscripts]
46 | if(cnt[c] && !us[c][1]) dfs(c, 1);
| ^