Problem | markinghouses |
---|---|
User | shoryu386 |
Submission Time | 2023-02-11 06:58:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
markinghouses.cpp: In function ‘long long int recur(long long int, long long int, bool)’:
markinghouses.cpp:14:30: error: invalid types ‘long long int[bool]’ for array subscript
14 | if (dp[idx][taken][prevTaken] != -1) return dp[idx][taken][prevTaken];
| ^
markinghouses.cpp:14:70: error: invalid types ‘long long int[bool]’ for array subscript
14 | if (dp[idx][taken][prevTaken] != -1) return dp[idx][taken][prevTaken];
| ^
markinghouses.cpp:34:33: error: invalid types ‘long long int[bool]’ for array subscript
34 | return dp[idx][taken][prevTaken] = ans;
| ^