Problem | lcs |
---|---|
User | kahchun |
Submission Time | 2023-11-21 15:26:26 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lcs.cpp: In function ‘long long int lcs(long long int, long long int)’:
lcs.cpp:15:35: error: expected ‘;’ before ‘return’
15 | dp[i][j] = 1 + lcs(i - 1, j - 1)
| ^
| ;
16 | return dp[i][j];
| ~~~~~~
lcs.cpp:18:47: error: expected ‘;’ before ‘return’
18 | dp[i][j] = max(lcs(i - 1, j), lcs(i, j - 1))
| ^
| ;
19 | return dp[i][j];
| ~~~~~~