ho_t2.cpp: In function 'bool fix(char, int)':
ho_t2.cpp:26:22: warning: array subscript has type 'char' [-Wchar-subscripts]
26 | int aux = nxt[dq[c].back()];
| ^
ho_t2.cpp:27:15: warning: array subscript has type 'char' [-Wchar-subscripts]
27 | while (dq[c].empty() == false && dq[c].front() <= pref) {
| ^
ho_t2.cpp:27:41: warning: array subscript has type 'char' [-Wchar-subscripts]
27 | while (dq[c].empty() == false && dq[c].front() <= pref) {
| ^
ho_t2.cpp:28:12: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | dq[c].pop_front();
| ^
ho_t2.cpp:30:21: warning: array subscript has type 'char' [-Wchar-subscripts]
30 | while ((int) dq[c].size() < K) {
| ^
ho_t2.cpp:31:12: warning: array subscript has type 'char' [-Wchar-subscripts]
31 | dq[c].push_back(aux);
| ^
ho_t2.cpp:32:22: warning: array subscript has type 'char' [-Wchar-subscripts]
32 | aux = nxt[dq[c].back()];
| ^
ho_t2.cpp:34:16: warning: array subscript has type 'char' [-Wchar-subscripts]
34 | return (dq[c].back() != N);
| ^
ho_t2.cpp: In function 'int main()':
ho_t2.cpp:48:28: warning: array subscript has type 'char' [-Wchar-subscripts]
48 | nxt[i] = first[S[i]];
| ^
ho_t2.cpp:49:19: warning: array subscript has type 'char' [-Wchar-subscripts]
49 | first[S[i]] = i;
| ^