Problem | lis_easy |
---|---|
User | louisleehi |
Submission Time | 2024-02-18 15:30:37 |
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]);
| ~ ^
| )