Problem | levenshtein |
---|---|
User | personjs |
Submission Time | 2025-03-10 22:26:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
levenshtein.cpp: In function ‘int levenshtein_distance(const string&, const string&)’:
levenshtein.cpp:23:17: error: ‘curr’ was not declared in this scope
23 | curr[j] = min(prev[j] + 1, // Deletion
| ^~~~
levenshtein.cpp:23:37: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
23 | curr[j] = min(prev[j] + 1, // Deletion
| ^
levenshtein.cpp:25:45: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
25 | prev[j - 1] + 1)); // Substitution
| ^