Problem lis_easy
User Yifei1234
Submission Time 2023-07-10 09:54:21
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:7:7: error: ‘dp’ was not declared in this scope
7 | if (dp[k]!=1) return dp[k];
| ^~
lis_easy.cpp:10:7: error: ‘val’ was not declared in this scope
10 | if (val[x]<val[k]){//check that it is valid to extend from index i
| ^~~
lis_easy.cpp:11:17: error: ‘lisEndingAtk’ was not declared in this scope; did you mean ‘lisEndingAtK’?
11 | ans=max(ans,lisEndingAtk(x)+1);
| ^~~~~~~~~~~~
| lisEndingAtK
lis_easy.cpp:15:3: error: ‘dp’ was not declared in this scope
15 | dp[k]=ans
| ^~
lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:19:20: error: ‘x’ was not declared in this scope
19 | int n;cin>>n; for (x=0;x<n; x++)cin>>val[x];
| ^
lis_easy.cpp:19:38: error: ‘val’ was not declared in this scope
19 | int n;ci