Problem collectmushrooms6
User benji9736
Submission Time 2025-12-31 17:25:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms6.cpp: In function ‘int main()’:
collectmushrooms6.cpp:16:29: error: ‘R’ was not declared in this scope
16 | int x = min(R - 1, i + d);
| ^
collectmushrooms6.cpp:17:29: error: ‘C’ was not declared in this scope
17 | int y = min(C - 1, j + d);
| ^
collectmushrooms6.cpp:26:24: error: ‘j’ was not declared in this scope
26 | prefsum[i][j] += prefsum[i][j - 1];
| ^
collectmushrooms6.cpp:29:32: error: expected primary-expression before ‘)’ token
29 | for (int i = 0; i < r; i+++){
| ^
collectmushrooms6.cpp:31:21: error: ‘j’ was not declared in this scope
31 | prefsum[j][i] += prefsum[j][i - 1];
| ^
collectmushrooms6.cpp:43:1: error: expected ‘}’ at end of input
43 | }
| ^
collec