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