Problem | lis_easy |
---|---|
User | louisleehi |
Submission Time | 2024-02-18 15:28:56 |
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])
| ~ ^
| )
16 |
17 | }
| ~
lis_easy.cpp:15:29: error: expected ‘;’ before ‘}’ token
15 | else(dp[i]=max(dp[i],dp[j])
| ^
| ;
16 |
17 | }
| ~
lis_easy.cpp: At global scope:
lis_easy.cpp:20:3: error: ‘cout’ does not name a type
20 | cout<<dp[n];
| ^~~~
lis_easy.cpp:21:1: error: expected declaration before ‘}’ token
21 | }