Problem beareatrabbit
User SuspiciousAmogus
Submission Time 2024-06-15 21:43:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

beareatrabbit.cpp: In function ‘int main()’:
beareatrabbit.cpp:14:10: error: incompatible types in assignment of ‘int’ to ‘ll [2]’ {aka ‘long long int [2]’}
14 | dp[0] = 0; dp[1] = a[1]; dp[2] = max(a[1], a[2]);
| ^
beareatrabbit.cpp:14:24: error: incompatible types in assignment of ‘ll’ {aka ‘long long int’} to ‘ll [2]’ {aka ‘long long int [2]’}
14 | dp[0] = 0; dp[1] = a[1]; dp[2] = max(a[1], a[2]);
| ^
beareatrabbit.cpp:14:49: error: incompatible types in assignment of ‘const long long int’ to ‘ll [2]’ {aka ‘long long int [2]’}
14 | dp[0] = 0; dp[1] = a[1]; dp[2] = max(a[1], a[2]);
| ^
beareatrabbit.cpp:20:50: error: incompatible types in assignment of ‘long long int* const’ to ‘ll [2]’ {aka ‘long long int [2]’}
20 | dp[i] = max(dp[i - 2] + a[i], dp[i - 3] + a[i]);
| ^
beareatr