Problem | dna_ioi |
---|---|
User | begitable |
Submission Time | 2023-01-04 22:23:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
dna_ioi.cpp:3:1: error: ‘string’ does not name a type; did you mean ‘stdin’?
3 | string a,b;
| ^~~~~~
| stdin
dna_ioi.cpp: In function ‘void init(std::string, std::string)’:
dna_ioi.cpp:7:2: error: ‘cin’ was not declared in this scope
7 | cin >> a >> b;
| ^~~
dna_ioi.cpp:20:16: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
20 | lol[i] = lol[max(i-1,0)]+1;
| ^~~
| std::max
In file included from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/string:40,
from dna_ioi.h:1,
from dna_ioi.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:268:5: note: ‘std::max’ declared here
268 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
dna_ioi.cpp: In function ‘int get_distance(int, int)’:
dna_ioi.cpp:27:6: error: declaration of ‘int x’ shado