Problem | lcs |
---|---|
User | wtnetlegend |
Submission Time | 2025-03-13 11:46:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lcs.cpp: In function ‘std::string ans(std::string, std::string)’:
lcs.cpp:6:3: error: ‘dp’ was not declared in this scope
6 | dp[0][0] = 1;
| ^~
lcs.cpp:8:7: error: ‘dp’ was not declared in this scope
8 | else dp[0][0] = 0;
| ^~
lcs.cpp:11:22: error: ‘dp’ was not declared in this scope
11 | if (s[i] == t[j]) dp[i][j] = dp[i-1][j-1] + 1;
| ^~
lcs.cpp:12:9: error: ‘dp’ was not declared in this scope
12 | else dp[i][j] = max(dp[i][j-1], dp[i-1][j]);
| ^~
lcs.cpp:16:36: error: ‘arr’ was not declared in this scope
16 | int rowimax = *max_element(arr[i].begin(), arr[i].end());
| ^~~
lcs.cpp:17:9: error: ‘maxlength’ was not declared in this scope
17 | maxlength = (maxlength, rowimax);
| ^~~~~~~~~
lcs.cpp:19:9: error: ‘maxlength’ was not declared in this scope
19 | return