dna.cpp: In function 'void init(std::string, std::string)':
dna.cpp:13:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | for(int i=0;i<a.length();i++)
| ~^~~~~~~~~~~
dna.cpp: In function 'int get_distance(int, int)':
dna.cpp:86:20: warning: array subscript 3 is above array bounds of 'int [3]' [-Warray-bounds]
86 | ans -= (su[y][3][3] - su[x-1][3][3]);
| ~~~~~~~~~~^
dna.cpp:86:36: warning: array subscript 3 is above array bounds of 'int [3]' [-Warray-bounds]
86 | ans -= (su[y][3][3] - su[x-1][3][3]);
| ~~~~~~~~~~~~^
dna.cpp:96:17: warning: array subscript 3 is above array bounds of 'int [3]' [-Warray-bounds]
96 | p1 = su[y][1][3] - su[x-1][1][3];
| ~~~~~~~~~~^
dna.cpp:96:33: warning: array subscript 3 is above array bounds of 'int [3]' [-Warray-bounds]
96 | p1 = su[y][1][3] - su[x-1][1][3];
| ~~~~~~~~~~~~^
dna.cpp:97:14: warning: array subscript 3 is above array bounds of 'int [3][3]' [-Warray-bounds]
97 | p2 = su[y][3][1] - su[x-1][3][1];
| ~~~~~~~^
dna.cpp:97:30: warning: array subscript 3 is above array bounds of 'int [3][3]' [-Warray-bounds]
97 | p2 = su[y][3][1] - su[x-1][3][1];
| ~~~~~~~~~^
dna.cpp:101:17: warning: array subscript 3 is above array bounds of 'int [3]' [-Warray-bounds]
101 | p1 = su[y][2][3] - su[x-1][2][3];
| ~~~~~~~~~~^
dna.cpp:101:33: warning: array subscript 3 is above array bounds of 'int [3]' [-Warray-bounds]
101 | p1 = su[y][2][3] - su[x-1][2][3];
| ~~~~~~~~~~~~^
dna.cpp:102:14: warning: array subscript 3 is above array bounds of 'int [3][3]' [-Warray-bounds]
102 | p2 = su[y][3][2] - su[x-1][3][2];
| ~~~~~~~^
dna.cpp:102:30: warning: array subscript 3 is above array bounds of 'int [3][3]' [-Warray-bounds]
102 | p2 = su[y][3][2] - su[x-1][3][2];
| ~~~~~~~~~^