Problem beareatrabbit
User Sandman
Submission Time 2023-08-23 17:38:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

beareatrabbit.cpp: In function ‘int main()’:
beareatrabbit.cpp:14:25: error: ‘max’ cannot be used as a function
14 | dp[0]=max(0ll,arr[0]);
| ^
beareatrabbit.cpp:15:36: error: ‘max’ cannot be used as a function
15 | dp[1]=max(0ll,max(arr[0],arr[1]));
| ^
beareatrabbit.cpp:15:37: error: ‘max’ cannot be used as a function
15 | dp[1]=max(0ll,max(arr[0],arr[1]));
| ^
beareatrabbit.cpp:17:33: error: ‘max’ cannot be used as a function
17 | dp[i]=max(max(arr[i],0ll)+dp[i-2],dp[i-1]);
| ^
beareatrabbit.cpp:17:50: error: ‘max’ cannot be used as a function
17 | dp[i]=max(max(arr[i],0ll)+dp[i-2],dp[i-1]);
| ^
beareatrabbit.cpp:19:9: error: redeclaration of ‘long long int max’
19 | int max=INT_MI