Problem | guards |
---|---|
User | PlayVoltz |
Submission Time | 2023-10-05 14:34:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
guards.cpp: In function ‘void dnc(int, int, int, int, int)’:
guards.cpp:13:35: error: ‘dp’ was not declared in this scope
13 | int escapingPossibility = dp[i - 1][j] + calculateEscapingPossibility(j + 1, mid);
| ^~
guards.cpp:13:50: error: ‘calculateEscapingPossibility’ was not declared in this scope; did you mean ‘escapingPossibility’?
13 | int escapingPossibility = dp[i - 1][j] + calculateEscapingPossibility(j + 1, mid);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| escapingPossibility
guards.cpp: In function ‘int main()’:
guards.cpp:40:20: error: ‘calculateEscapingPossibility’ was not declared in this scope
40 | dp[1][j] = calculateEscapingPossibility(0, j);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~