Problem beareatrabbit
User Yifei1234
Submission Time 2023-05-18 09:40:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

beareatrabbit.cpp:1:17: error: ‘n’ was not declared in this scope
1 | long long int a[n],dp[n];
| ^
beareatrabbit.cpp:1:23: error: ‘n’ was not declared in this scope
1 | long long int a[n],dp[n];
| ^
beareatrabbit.cpp:2:1: error: expected unqualified-id before ‘for’
2 | for(int i=0;i<n;i++){
| ^~~
beareatrabbit.cpp:2:13: error: ‘i’ does not name a type
2 | for(int i=0;i<n;i++){
| ^
beareatrabbit.cpp:2:17: error: ‘i’ does not name a type
2 | for(int i=0;i<n;i++){
| ^
beareatrabbit.cpp:5:1: error: ‘dp’ does not name a type
5 | dp[0]=a[0];
| ^~
beareatrabbit.cpp:6:1: error: ‘dp’ does not name a type
6 | dp[1]=max(a[0],a[1]);
| ^~
beareatrabbit.cpp:7:1: error: ‘dp’ does not name a type
7 | dp[1]=max(011,dp[1]);
| ^~
beareatrabbit.cpp:8:1: error: ‘dp’ does not name a