Problem dna_ioi
User maomao
Submission Time 2025-06-28 14:14:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dna_ioi.cpp:6:1: error: ‘vector’ does not name a type
6 | vector<tup> countA, countB; //the number of <a, c, t> so far
| ^~~~~~
dna_ioi.cpp: In function ‘void init(std::string, std::string)’:
dna_ioi.cpp:10:2: error: ‘countA’ was not declared in this scope
10 | countA.resize(a.size());
| ^~~~~~
dna_ioi.cpp:11:2: error: ‘countB’ was not declared in this scope
11 | countB.resize(b.size());
| ^~~~~~
dna_ioi.cpp: In function ‘int get_distance(int, int)’:
dna_ioi.cpp:39:19: error: ‘countA’ was not declared in this scope
39 | tup tA = (x>0) ? countA[x-1] : mt(0,0,0);
| ^~~~~~
dna_ioi.cpp:41:19: error: ‘countB’ was not declared in this scope
41 | tup tB = (x>0) ? countB[x-1] : mt(0,0,0);
| ^~~~~~