dna.cpp: In function 'void init(std::string, std::string)':
dna.cpp:17:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for (int i=1; i<=a.size(); i++) A[i][0]=A[i-1][0], A[i][1]=A[i-1][1], A[i][2]=A[i-1][2], A[i][mp[a[i-1]]]++;
| ~^~~~~~~~~~
dna.cpp:17:105: warning: array subscript has type 'char' [-Wchar-subscripts]
17 | for (int i=1; i<=a.size(); i++) A[i][0]=A[i-1][0], A[i][1]=A[i-1][1], A[i][2]=A[i-1][2], A[i][mp[a[i-1]]]++;
| ^
dna.cpp:18:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | for (int i=1; i<=b.size(); i++) B[i][0]=B[i-1][0], B[i][1]=B[i-1][1], B[i][2]=B[i-1][2], B[i][mp[b[i-1]]]++;
| ~^~~~~~~~~~
dna.cpp:18:105: warning: array subscript has type 'char' [-Wchar-subscripts]
18 | for (int i=1; i<=b.size(); i++) B[i][0]=B[i-1][0], B[i][1]=B[i-1][1], B[i][2]=B[i-1][2], B[i][mp[b[i-1]]]++;
| ^
dna.cpp:19:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | for (int i=1; i<=a.size(); i++)
| ~^~~~~~~~~~
dna.cpp:22:44: warning: array subscript has type 'char' [-Wchar-subscripts]
22 | if (a[i-1]!=b[i-1]) ms[i][mp[a[i-1]]][mp[b[i-1]]]++;
| ^
dna.cpp:22:56: warning: array subscript has type 'char' [-Wchar-subscripts]
22 | if (a[i-1]!=b[i-1]) ms[i][mp[a[i-1]]][mp[b[i-1]]]++;
| ^