selling_rna.cpp: In function 'void add_node(std::string)':
selling_rna.cpp:40:25: warning: array subscript has type 'char' [-Wchar-subscripts]
40 | int u = cid[s[i]];
| ^
selling_rna.cpp:41:33: warning: array subscript has type 'char' [-Wchar-subscripts]
41 | int v = cid[s[n - i - 1]];
| ^
selling_rna.cpp: In function 'int dfs(int, int)':
selling_rna.cpp:52:11: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare]
52 | if (d == max(p.size(), s.size()))
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
selling_rna.cpp:55:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | int x = (d < p.size() ? cid[p[d]] : -1);
| ~~^~~~~~~~~~
selling_rna.cpp:55:37: warning: array subscript has type 'char' [-Wchar-subscripts]
55 | int x = (d < p.size() ? cid[p[d]] : -1);
| ^
selling_rna.cpp:56:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | int y = (d < s.size() ? cid[s[d]] : -1);
| ~~^~~~~~~~~~
selling_rna.cpp:56:37: warning: array subscript has type 'char' [-Wchar-subscripts]
56 | int y = (d < s.size() ? cid[s[d]] : -1);
| ^