Problem | lis_easy |
---|---|
User | louisleehi |
Submission Time | 2024-02-18 15:30:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:15:2: error: expected ‘}’ before ‘else’
15 | else(dp[i]=max(dp[i],dp[j]);
| ^~~~
lis_easy.cpp:13:20: note: to match this ‘{’
13 | if(a[j]<a[i]){
| ^
lis_easy.cpp:15:29: error: expected ‘)’ before ‘;’ token
15 | else(dp[i]=max(dp[i],dp[j]);
| ~ ^
| )
lis_easy.cpp: At global scope:
lis_easy.cpp:20:3: error: expected unqualified-id before ‘for’
20 | for(int i=0;i<n;i++){
| ^~~
lis_easy.cpp:20:15: error: ‘i’ does not name a type
20 | for(int i=0;i<n;i++){
| ^
lis_easy.cpp:20:19: error: ‘i’ does not name a type
20 | for(int i=0;i<n;i++){
| ^
lis_easy.cpp:23:3: error: ‘cout’ does not name a type
23 | cout<<dp[n];
| ^~~~
lis_easy.cpp:24:1: error: expected decla