Problem | lis_easy |
---|---|
User | Yifei1234 |
Submission Time | 2023-05-24 17:05:40 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lis_easy.cpp: In function ‘long long int lisEndingAtK(long long int)’:
lis_easy.cpp:14:18: error: ‘liseasy’ was not declared in this scope
14 | ans=max(ans, liseasy(x)+1);
| ^~~~~~~
lis_easy.cpp:18:12: error: expected ‘;’ before ‘return’
18 | dp[k]=ans
| ^
| ;
19 | return ans;
| ~~~~~~
lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:22:20: error: ‘x’ was not declared in this scope
22 | int n;cin>>n; for (x=0;x<n; x++)cin>>val[x];
| ^
lis_easy.cpp:25:27: error: ‘liseasy’ was not declared in this scope
25 | finalAns=max(finalAns,liseasy(x));
| ^~~~~~~
lis_easy.cpp:27:15: error: expected ‘;’ before ‘}’ token
27 | cout<<finalAns}
| ^
| ;
lis_easy.cpp: At global scope:
lis_easy.cpp:30:1: error: expected declar