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

Compile Error

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