dna.cpp: In function 'void init(std::string, std::string)':
dna.cpp:12:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | for(int i = 1; i < a.size(); i++){
| ~~^~~~~~~~~~
dna.cpp:13:21: warning: array subscript has type 'char' [-Wchar-subscripts]
13 | cnt[hsh[a[i]]][i]++, cnt[hsh[b[i]]][i]--;
| ^
dna.cpp:13:42: warning: array subscript has type 'char' [-Wchar-subscripts]
13 | cnt[hsh[a[i]]][i]++, cnt[hsh[b[i]]][i]--;
| ^
dna.cpp:22:21: warning: array subscript has type 'char' [-Wchar-subscripts]
22 | tbl[hsh[a[i]]][hsh[b[i]]][i]++;
| ^
dna.cpp:22:32: warning: array subscript has type 'char' [-Wchar-subscripts]
22 | tbl[hsh[a[i]]][hsh[b[i]]][i]++;
| ^
dna.cpp: In function 'int get_distance(int, int)':
dna.cpp:39:23: warning: right operand of comma operator has no effect [-Wunused-value]
39 | res += temp, t[1][2] - temp, t[2][1] - temp;
| ~~~~~~~~^~~~~~
dna.cpp:39:39: warning: right operand of comma operator has no effect [-Wunused-value]
39 | res += temp, t[1][2] - temp, t[2][1] - temp;
| ~~~~~~~~^~~~~~
dna.cpp:41:23: warning: right operand of comma operator has no effect [-Wunused-value]
41 | res += temp, t[1][3] - temp, t[3][1] - temp;
| ~~~~~~~~^~~~~~
dna.cpp:41:39: warning: right operand of comma operator has no effect [-Wunused-value]
41 | res += temp, t[1][3] - temp, t[3][1] - temp;
| ~~~~~~~~^~~~~~
dna.cpp:43:23: warning: right operand of comma operator has no effect [-Wunused-value]
43 | res += temp, t[2][3] - temp, t[3][2] - temp;
| ~~~~~~~~^~~~~~
dna.cpp:43:39: warning: right operand of comma operator has no effect [-Wunused-value]
43 | res += temp, t[2][3] - temp, t[3][2] - temp;
| ~~~~~~~~^~~~~~