dna.cpp: In function 'void init(std::string, std::string)':
dna.cpp:9:29: error: 'to_strind' was not declared in this scope
9 | string i = to_string(c)+to_strind(d); acc[i] = {0};
| ^~~~~~~~~
dna.cpp:10:54: error: 'class std::map<std::__cxx11::basic_string<char>, std::vector<int> >' has no member named 'back'
10 | for (int k(0);k < n;++k) acc[i].emplace_back(acc.back()+(x[k]==c&&y[k]==d));
| ^~~~
dna.cpp: In function 'int get_distance(int, int)':
dna.cpp:16:15: warning: capture of variable 'acc' with non-automatic storage duration
16 | auto sb = [&acc,&l,&r](string s,string t){ return (acc[s][r]-acc[s][l])-(acc[t][r]-acc[t][l]); }
| ^~~
dna.cpp:5:52: note: 'std::map<std::__cxx11::basic_string<char>, std::vector<int> > acc' declared here
5 | string x,y,u="ACT"; int n; map<string,vector<int>> acc;
| ^~~
dna.cpp:17:3: error: expected ',' or ';' before 'if'
17 | if (sb("AC","CA")!=sb("CT","TC")||sb("AC","CA")!=sb("TA","AT")) return -1;
| ^~