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:40:23: warning: right operand of comma operator has no effect [-Wunused-value]
40 | res += temp, t[1][2] - temp, t[2][1] - temp;
| ~~~~~~~~^~~~~~
dna.cpp:40:39: warning: right operand of comma operator has no effect [-Wunused-value]
40 | res += temp, t[1][2] - temp, t[2][1] - temp;
| ~~~~~~~~^~~~~~