Problem | lis_easy |
---|---|
User | xragon |
Submission Time | 2024-12-21 16:22:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:10:23: error: ‘n’ was not declared in this scope
10 | for (int i = 1; i <= n; i++) {
| ^
lis_easy.cpp:11:5: error: ‘dp’ was not declared in this scope
11 | dp[i] = 1;
| ^~
lis_easy.cpp:13:13: error: ‘A’ was not declared in this scope
13 | if (A[j] < A[i]) dp[i] = max (dp[i], dp[j] + 1);
| ^
lis_easy.cpp:13:56: error: expected ‘}’ at end of input
13 | if (A[j] < A[i]) dp[i] = max (dp[i], dp[j] + 1);
| ^
lis_easy.cpp:10:31: note: to match this ‘{’
10 | for (int i = 1; i <= n; i++) {
| ^
lis_easy.cpp:13:56: error: expected ‘}’ at end of input
13 | if (A[j] < A[i]) dp[i] = max (dp[i], dp[j] + 1);
| ^
lis_easy.