Problem orchard
User Ush
Submission Time 2023-11-16 13:56:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

orchard.cpp: In function ‘int32_t main()’:
orchard.cpp:11:4: error: ‘SS’ was not declared in this scope
11 | SS[i][j]=SS[i-1][j]+A[i][j];
| ^~
orchard.cpp:11:24: error: ‘A’ was not declared in this scope
11 | SS[i][j]=SS[i-1][j]+A[i][j];
| ^
orchard.cpp:16:42: error: ‘arr’ was not declared in this scope
16 | for (int width =1; width <=m; width++)arr[width]=ss[x2][width]-ss[x1-1][width];
| ^~~
orchard.cpp:16:53: error: ‘ss’ was not declared in this scope
16 | for (int width =1; width <=m; width++)arr[width]=ss[x2][width]-ss[x1-1][width];
| ^~
orchard.cpp:18:5: error: ‘dp’ was not declared in this scope
18 | dp[width]= max(dp[width-1] + arr[width], arr[width]);
| ^~
orchard.cpp:18:34: error: ‘arr’ was not declared in this scope
18 | dp[width]=