Problem lis_easy
User mth4z
Submission Time 2023-05-24 17:34:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘long long int lisEndingAtK(long long int)’:
lis_easy.cpp:9:7: error: ‘dp’ was not declared in this scope
9 | if (dp[k] != -1) return dp[k];
| ^~
lis_easy.cpp:9:10: error: ‘k’ was not declared in this scope
9 | if (dp[k] != -1) return dp[k];
| ^
lis_easy.cpp:12:19: error: ‘k’ was not declared in this scope
12 | for (int x=0; x<k; x++){
| ^
lis_easy.cpp:13:9: error: ‘val’ was not declared in this scope
13 | if (val[x]<val[k]){
| ^~~
lis_easy.cpp:19:3: error: ‘dp’ was not declared in this scope
19 | dp[K] = ans;
| ^~
lis_easy.cpp:20:10: error: expected primary-expression before ‘=’ token
20 | return = ans;
| ^
lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:25:44: error: expected ‘;’ before ‘)’ token
25 | int n; cin >> n; for (int x = 0; x < n, x++) cin >