Problem lcs
User christal
Submission Time 2023-12-23 15:01:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lcs.cpp: In function ‘int main()’:
lcs.cpp:6:14: error: expected initializer before numeric constant
6 | string text 1, text 2;
| ^
lcs.cpp:7:31: error: ‘text1’ was not declared in this scope
7 | int longestCommonSubsequence(text1, text2){
| ^~~~~
lcs.cpp:7:38: error: ‘text2’ was not declared in this scope
7 | int longestCommonSubsequence(text1, text2){
| ^~~~~
lcs.cpp:7:43: error: expression list treated as compound expression in initializer [-fpermissive]
7 | int longestCommonSubsequence(text1, text2){
| ^