Problem guards
User Ok
Submission Time 2022-12-28 10:41:18
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:16:43: error: ‘sum’ was not declared in this scope
16 | long long int temp = memo[x][m] + sum[x + 1][i];
| ^~~
guards.cpp: In function ‘int main()’:
guards.cpp:54:13: error: ‘sum’ was not declared in this scope
54 | sum[i][j] = (pre[j] - pre[i - 1]) * (j - i + 1);
| ^~~