password.cpp: In function 'std::string guess(int, int)':
password.cpp:15:13: warning: array subscript has type 'char' [-Wchar-subscripts]
15 | amt[i] = query(g);
| ^
password.cpp:16:20: warning: array subscript has type 'char' [-Wchar-subscripts]
16 | cnt += amt[i];
| ^
password.cpp:18:17: warning: array subscript has type 'char' [-Wchar-subscripts]
18 | if (amt[i] > 0) remaining.insert(i);
| ^
password.cpp:20:17: warning: array subscript has type 'char' [-Wchar-subscripts]
20 | if (amt[i] == n) return g;
| ^
password.cpp:26:26: warning: array subscript has type 'char' [-Wchar-subscripts]
26 | string g(amt[cur], 'a' + i);
| ^~~
password.cpp:30:28: warning: array subscript has type 'char' [-Wchar-subscripts]
30 | if (res == amt[cur]) continue;
| ^~~
password.cpp:35:13: warning: array subscript has type 'char' [-Wchar-subscripts]
35 | amt[cur]--;
| ^~~
password.cpp:37:17: warning: array subscript has type 'char' [-Wchar-subscripts]
37 | if (amt[cur] == 0) remaining.erase(cur);
| ^~~
password.cpp:40:26: warning: array subscript has type 'char' [-Wchar-subscripts]
40 | string g(amt[cur], 'a' + cur);
| ^~~