dna.cpp: In function 'int get_distance(int, int)':
dna.cpp:20:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | for (int i = 0; i < s1.size(); i ++)
| ~~^~~~~~~~~~~
dna.cpp:32:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | for (int i = 0; i < t1.size(); i ++)
| ~~^~~~~~~~~~~
dna.cpp:35:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | while(j < s1.size() && s1[j] != t1[i])
| ~~^~~~~~~~~~~
dna.cpp:37:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | if (j == s1.size())
| ~~^~~~~~~~~~~~
dna.cpp:37:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
37 | if (j == s1.size())
| ^~
dna.cpp:39:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
39 | if (i == j)
| ^~