Problem | duckwander |
---|---|
User | Josh28 |
Submission Time | 2023-01-11 16:22:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
duckwander.cpp: In function ‘ll memo(ll, ll, ll)’:
duckwander.cpp:66:33: error: invalid types ‘ll {aka long long int}[ll {aka long long int}]’ for array subscript
66 | if (dp[index][consec][whichg] != -1) {return dp[index][consec][whichg];}
| ^
duckwander.cpp:66:74: error: invalid types ‘ll {aka long long int}[ll {aka long long int}]’ for array subscript
66 | if (dp[index][consec][whichg] != -1) {return dp[index][consec][whichg];}
| ^
duckwander.cpp:69:44: error: ‘a’ was not declared in this scope
69 | ans = min(ans, memo(index+1, 1, 1)+a[index]);
| ^
duckwander.cpp:71:44: error: ‘b’ was not declared in this scope
71 | ans = min(ans, memo(index+1, 1, 0)+b[index]);
| ^
duckwander.cpp:75:55: error: ‘a’