selling_rna.cpp: In function 'int32_t main()':
selling_rna.cpp:26:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for (int j = 0; j < str[i].size(); j++) {
| ~~^~~~~~~~~~~~~~~
selling_rna.cpp:27:39: warning: array subscript has type 'char' [-Wchar-subscripts]
27 | if (trie1[u][ctr[str[i][j]]] == 0)
| ^
selling_rna.cpp:28:39: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | trie1[u][ctr[str[i][j]]] = ++ cnt1;
| ^
selling_rna.cpp:29:39: warning: array subscript has type 'char' [-Wchar-subscripts]
29 | u = trie1[u][ctr[str[i][j]]];
| ^
selling_rna.cpp:37:39: warning: array subscript has type 'char' [-Wchar-subscripts]
37 | if (trie2[u][ctr[str[i][j]]] == 0)
| ^
selling_rna.cpp:38:39: warning: array subscript has type 'char' [-Wchar-subscripts]
38 | trie2[u][ctr[str[i][j]]] = ++ cnt2;
| ^
selling_rna.cpp:39:39: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | u = trie2[u][ctr[str[i][j]]];
| ^
selling_rna.cpp:50:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | for (int j = 0; j < P.size(); j++) {
| ~~^~~~~~~~~~
selling_rna.cpp:51:34: warning: array subscript has type 'char' [-Wchar-subscripts]
51 | if (trie1[u][ctr[P[j]]] == 0) {
| ^
selling_rna.cpp:55:34: warning: array subscript has type 'char' [-Wchar-subscripts]
55 | u = trie1[u][ctr[P[j]]];
| ^
selling_rna.cpp:65:34: warning: array subscript has type 'char' [-Wchar-subscripts]
65 | if (trie2[v][ctr[Q[j]]] == 0) {
| ^
selling_rna.cpp:69:34: warning: array subscript has type 'char' [-Wchar-subscripts]
69 | v = trie2[v][ctr[Q[j]]];
| ^