Problem guards
User Ok
Submission Time 2022-12-28 11:09:35
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:25:23: error: ‘x’ was not declared in this scope
25 | memo[i][m] = memo[x][m - 1] + (pre[i] - pre[opt]) * (i - opt);
| ^