Problem ladybugs
User Tyx2019
Submission Time 2023-03-28 10:34:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ladybugs.cpp: In function ‘int main()’:
ladybugs.cpp:6:10: error: expected ‘;’ before ‘:’ token
6 | cin >> N:
| ^
| ;
ladybugs.cpp:8:30: error: ‘A’ was not declared in this scope
8 | for(int i=0;i<N;i++) cin >> A[i];
| ^
ladybugs.cpp:9:2: error: ‘dp’ was not declared in this scope
9 | dp[0]=1;
| ^~
ladybugs.cpp:14:7: error: ‘A’ was not declared in this scope
14 | if(A[j]&A[i]==0) dp[i]=max(dp[j]+1,dp[i]);
| ^