Problem dna_ioi
User PlayVoltz
Submission Time 2023-09-23 20:29:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dna_ioi.cpp:3:1: error: ‘string’ does not name a type; did you mean ‘stdin’?
3 | string s1, s2;
| ^~~~~~
| stdin
dna_ioi.cpp: In function ‘void init(std::string, std::string)’:
dna_ioi.cpp:6:2: error: ‘s1’ was not declared in this scope
6 | s1 = a;
| ^~
dna_ioi.cpp:7:2: error: ‘s2’ was not declared in this scope
7 | s2 = b;
| ^~
dna_ioi.cpp: In function ‘int get_distance(int, int)’:
dna_ioi.cpp:15:7: error: ‘s1’ was not declared in this scope
15 | if (s1[i]=='T'){
| ^~
dna_ioi.cpp:24:7: error: ‘s2’ was not declared in this scope
24 | if (s2[i]=='T'){
| ^~
dna_ioi.cpp:39:7: error: ‘s1’ was not declared in this scope
39 | if (s1[i]==s2[i]){
| ^~
dna_ioi.cpp:39:14: error: ‘s2’ was not declared in this scope
39 | if (s1[i]==s2[i]){
| ^~
dna_ioi.cpp:43:7: error: ‘s1’ was not declared in this scope
43