Problem guards
User PlayVoltz
Submission Time 2023-10-05 14:33:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

guards.cpp: In function ‘void dnc(int, int, int, int, int)’:
guards.cpp:9:29: error: ‘min’ was not declared in this scope; did you mean ‘mid’?
9 | for (int j = optl; j <= min(optr, mid - 1); j++) {
| ^~~
| mid
guards.cpp:11:35: error: ‘dp’ was not declared in this scope
11 | int escapingPossibility = dp[i - 1][j] + calculateEscapingPossibility(j + 1, mid);
| ^~
guards.cpp:11:50: error: ‘calculateEscapingPossibility’ was not declared in this scope; did you mean ‘escapingPossibility’?
11 | int escapingPossibility = dp[i - 1][j] + calculateEscapingPossibility(j + 1, mid);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| escapingPossibility
guards.cpp: In function ‘int main()’:
guards.cpp:27:5: error: ‘cin’ was not decla