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:85:20: warning: array subscript 3 is above array bounds of 'int [3]' [-Warray-bounds]
85 | ans -= (su[y][3][3] - su[x-1][3][3]);
| ~~~~~~~~~~^
dna.cpp:85:36: warning: array subscript 3 is above array bounds of 'int [3]' [-Warray-bounds]
85 | ans -= (su[y][3][3] - su[x-1][3][3]);
| ~~~~~~~~~~~~^
dna.cpp:91:17: warning: array subscript 3 is above array bounds of 'int [3]' [-Warray-bounds]
91 | p1 = su[y][1][3] - su[x-1][1][3];
| ~~~~~~~~~~^
dna.cpp:91:33: warning: array subscript 3 is above array bounds of 'int [3]' [-Warray-bounds]
91 | p1 = su[y][1][3] - su[x-1][1][3];
| ~~~~~~~~~~~~^
dna.cpp:92:14: warning: array subscript 3 is above array bounds of 'int [3][3]' [-Warray-bounds]
92 | p2 = su[y][3][1] - su[x-1][3][1];
| ~~~~~~~^
dna.cpp:92:30: warning: array subscript 3 is above array bounds of 'int [3][3]' [-Warray-bounds]
92 | p2 = su[y][3][1] - su[x-1][3][1];
| ~~~~~~~~~^
dna.cpp:95:17: warning: array subscript 3 is above array bounds of 'int [3]' [-Warray-bounds]
95 | p1 = su[y][2][3] - su[x-1][2][3];
| ~~~~~~~~~~^
dna.cpp:95:33: warning: array subscript 3 is above array bounds of 'int [3]' [-Warray-bounds]
95 | p1 = su[y][2][3] - su[x-1][2][3];
| ~~~~~~~~~~~~^
dna.cpp:96:14: warning: array subscript 3 is above array bounds of 'int [3][3]' [-Warray-bounds]
96 | p2 = su[y][3][2] - su[x-1][3][2];
| ~~~~~~~^
dna.cpp:96:30: warning: array subscript 3 is above array bounds of 'int [3][3]' [-Warray-bounds]
96 | p2 = su[y][3][2] - su[x-1][3][2];
| ~~~~~~~~~^