selling_rna.cpp: In member function 'void Trie::add(const string&)':
selling_rna.cpp:36:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | for(int i = 0; i < str.size(); i ++) {
| ~~^~~~~~~~~~~~
selling_rna.cpp:37:26: warning: array subscript has type 'char' [-Wchar-subscripts]
37 | if(nds[curr].mp[str[i]] == -1) {
| ^
selling_rna.cpp:38:24: warning: array subscript has type 'char' [-Wchar-subscripts]
38 | nds[curr].mp[str[i]] = nds.size();
| ^
selling_rna.cpp:41:30: warning: array subscript has type 'char' [-Wchar-subscripts]
41 | curr = nds[curr].mp[str[i]];
| ^
selling_rna.cpp: In member function 'int Trie::cnt(const string&)':
selling_rna.cpp:48:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | for(int i = 0; i < str.size(); i ++) {
| ~~^~~~~~~~~~~~
selling_rna.cpp:49:27: warning: array subscript has type 'char' [-Wchar-subscripts]
49 | curr = nds[i].mp[str[i]];
| ^
selling_rna.cpp: In function 'void buildTrie()':
selling_rna.cpp:78:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
78 | for(int j = 0; j < text[i].size(); j ++) {
| ~~^~~~~~~~~~~~~~~~
selling_rna.cpp:79:26: warning: array subscript has type 'char' [-Wchar-subscripts]
79 | if(mp[curr][text[i][j]] == -1) {
| ^
selling_rna.cpp:80:24: warning: array subscript has type 'char' [-Wchar-subscripts]
80 | mp[curr][text[i][j]] = cnt;
| ^
selling_rna.cpp:83:30: warning: array subscript has type 'char' [-Wchar-subscripts]
83 | curr = mp[curr][text[i][j]];
| ^
selling_rna.cpp: In function 'void computeAns()':
selling_rna.cpp:139:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
139 | for(int j = 0; j < in[i][0].size(); j ++) {
| ~~^~~~~~~~~~~~~~~~~
selling_rna.cpp:140:31: warning: array subscript has type 'char' [-Wchar-subscripts]
140 | curr = mp[curr][in[i][0][j]];
| ^