Problem beareatrabbit
User YongXin
Submission Time 2023-06-20 18:34:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

beareatrabbit.cpp:3:44: error: declaration of ‘m’ as array of references
3 | long long f(int n,long long a[],long long& m[]) {
| ^
beareatrabbit.cpp: In function ‘long long int f(...)’:
beareatrabbit.cpp:4:6: error: ‘n’ was not declared in this scope
4 | if (n<0) return 0;
| ^
beareatrabbit.cpp:5:9: error: ‘m’ was not declared in this scope
5 | if (m[n] != -1) return m[n];
| ^
beareatrabbit.cpp:5:11: error: ‘n’ was not declared in this scope
5 | if (m[n] != -1) return m[n];
| ^
beareatrabbit.cpp:6:20: error: ‘n’ was not declared in this scope
6 | long long r=max(f(n-1,a),a[n]+f(n-2,a));
| ^
beareatrabbit.cpp:6:24: error: ‘a’ was not declared in this scope
6 | long long r=max(f(n-1,a),a[n]+f(n-2,a));
| ^
beareatrabbit.cpp:8:12: error: ‘m’ was not decla