Problem | hamster1 |
---|---|
User | justin271828 |
Submission Time | 2024-06-01 16:26:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
hamster1.cpp:7:23: error: array bound is not an integer constant before ‘]’ token
7 | int e(int x, int arr[N]) {
| ^
hamster1.cpp: In function ‘int e(...)’:
hamster1.cpp:8:11: error: ‘x’ was not declared in this scope
8 | if (memo[x] != -1) return 0;
| ^
hamster1.cpp:12:25: error: ‘arr’ was not declared in this scope
12 | temp = max(temp, abs(arr[i] - arr[x]) + e(i, arr));
| ^~~