Main.cpp: In function 'void solve()':
Main.cpp:52:17: warning: array subscript has type 'char' [-Wchar-subscripts]
52 | cnt[s[i]]++;
| ^
Main.cpp:58:28: warning: array subscript has type 'char' [-Wchar-subscripts]
58 | type[i] = (cnt[s[i]] ? 0 : 1);
| ^
Main.cpp:60:17: warning: array subscript has type 'char' [-Wchar-subscripts]
60 | cnt[s[i]] = max(0ll, cnt[s[i]] - 1);
| ^
Main.cpp:60:38: warning: array subscript has type 'char' [-Wchar-subscripts]
60 | cnt[s[i]] = max(0ll, cnt[s[i]] - 1);
| ^
Main.cpp:68:19: warning: array subscript has type 'char' [-Wchar-subscripts]
68 | q[ss[0][i]].push(i + 1);
| ^
Main.cpp:71:27: warning: array subscript has type 'char' [-Wchar-subscripts]
71 | int a = q[ss[1][i]].front();
| ^
Main.cpp:72:19: warning: array subscript has type 'char' [-Wchar-subscripts]
72 | q[ss[1][i]].pop();
| ^
Main.cpp: In function 'int main()':
Main.cpp:84:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
84 | freopen("in.txt", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
Main.cpp:85:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
85 | freopen("out.txt", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~