dna.cpp:2:6: error: variable or field 'init' declared void
2 | void init(string a, string b) {
| ^~~~
dna.cpp:2:11: error: 'string' was not declared in this scope
2 | void init(string a, string b) {
| ^~~~~~
dna.cpp:2:21: error: 'string' was not declared in this scope
2 | void init(string a, string b) {
| ^~~~~~
dna.cpp: In function 'int get_distance(int, int)':
dna.cpp:18:9: error: 'string' was not declared in this scope
18 | string sA = stringA;
| ^~~~~~
dna.cpp:19:15: error: expected ';' before 'sB'
19 | string sB = stringB;
| ^~~
| ;
dna.cpp:20:9: error: 'map' was not declared in this scope
20 | map<char, int> countsB;
| ^~~
dna.cpp:20:13: error: expected primary-expression before 'char'
20 | map<char, int> countsB;
| ^~~~
dna.cpp:21:13: error: expected primary-expression before 'char'
21 | map<char, int> countsA;
| ^~~~
dna.cpp:22:14: error: 'sA' was not declared in this scope
22 | int ln = sA.size();
| ^~
dna.cpp:25:20: error: 'countsA' was not declared in this scope; did you mean 'count'?
25 | if(countsA.find(sA[i]) == countsA.end()){
| ^~~~~~~
| count
dna.cpp:30:20: error: 'countsB' was not declared in this scope; did you mean 'count'?
30 | if(countsB.find(sB[i]) == countsB.end()){
| ^~~~~~~
| count
dna.cpp:30:33: error: 'sB' was not declared in this scope
30 | if(countsB.find(sB[i]) == countsB.end()){
| ^~
dna.cpp:36:15: error: 'countsA' was not declared in this scope; did you mean 'count'?
36 | int lnA = countsA.size();
| ^~~~~~~
| count
dna.cpp:37:15: error: 'countsB' was not declared in this scope; did you mean 'count'?
37 | int lnB = countsB.size();
| ^~~~~~~
| count
dna.cpp:46:17: error: 'arrCount' was not declared in this scope
46 | count = arrCount[0];
| ^~~~~~~~
dna.cpp:57:28: error: 'sB' was not declared in this scope
57 | while (i <= y && sA != sB){
| ^~