dna.cpp: In function 'void init(std::string, std::string)':
dna.cpp:6:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
6 | for(int i=0;i<a.size();i++){
| ~^~~~~~~~~
dna.cpp: In function 'int get_distance(int, int)':
dna.cpp:24:18: warning: 'a[1]' may be used uninitialized in this function [-Wmaybe-uninitialized]
24 | if(a[0]!=b[0]||a[1]!=b[1]||a[2]!=b[2]){return -1;}
| ~~~~~~~~~~^~~~~~~~~~~~
dna.cpp:24:18: warning: 'b[1]' may be used uninitialized in this function [-Wmaybe-uninitialized]
dna.cpp:24:5: warning: 'a[0]' may be used uninitialized in this function [-Wmaybe-uninitialized]
24 | if(a[0]!=b[0]||a[1]!=b[1]||a[2]!=b[2]){return -1;}
| ^~
dna.cpp:24:5: warning: 'b[0]' may be used uninitialized in this function [-Wmaybe-uninitialized]
dna.cpp:24:30: warning: 'a[2]' may be used uninitialized in this function [-Wmaybe-uninitialized]
24 | if(a[0]!=b[0]||a[1]!=b[1]||a[2]!=b[2]){return -1;}
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
dna.cpp:24:30: warning: 'b[2]' may be used uninitialized in this function [-Wmaybe-uninitialized]