Problem | lcs |
---|---|
User | christal |
Submission Time | 2023-12-23 14:53:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lcs.cpp: In function ‘int LongestCommonSubsequence(std::string, std::string)’:
lcs.cpp:5:24: error: ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} has no member named ‘Length’; did you mean ‘length’?
5 | int n1 = text1.Length, n2 = text2.Length;
| ^~~~~~
| length
lcs.cpp:6:13: error: expected identifier before ‘,’ token
6 | int[,] dp = new int[n1+1, n2+1];
| ^
lcs.cpp:6:13: error: expected ‘]’ before ‘,’ token
6 | int[,] dp = new int[n1+1, n2+1];
| ^
| ]
lcs.cpp:6:12: error: structured binding declaration cannot have type ‘int’
6 | int[,] dp = new int[n1+1, n2+1];
| ^
lcs.cpp:6:12: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
lcs.cpp:6:12: error: empty structured binding declaration
lcs.cpp:6:16: error: expected