Problem | lcs |
---|---|
User | christal |
Submission Time | 2023-12-23 14:51:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lcs.cpp: In function ‘int main()’:
lcs.cpp:6:18: error: ‘text1’ was not declared in this scope
6 | int n1 = text1.Length, n2 = text2.Length;
| ^~~~~
lcs.cpp:7:13: error: expected identifier before ‘,’ token
7 | int[,] dp = new int[n1+1, n2+1];
| ^
lcs.cpp:7:13: error: expected ‘]’ before ‘,’ token
7 | int[,] dp = new int[n1+1, n2+1];
| ^
| ]
lcs.cpp:7:12: error: structured binding declaration cannot have type ‘int’
7 | int[,] dp = new int[n1+1, n2+1];
| ^
lcs.cpp:7:12: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
lcs.cpp:7:12: error: empty structured binding declaration
lcs.cpp:7:16: error: expected initializer before ‘dp’
7 | int[,] dp = new int[n1+1, n2+1];
| ^~
lcs.cpp:8:29: error: ‘n2’ was not declared in this scope; did you