Problem lboard
User G
Submission Time 2025-02-01 13:41:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lboard.cpp: In function ‘int main()’:
lboard.cpp:18:40: error: ‘pfx’ was not declared in this scope; did you mean ‘pfxY’?
18 | if(j-1>=0)pfxX[i][j]=max(grid[i][j],pfx[i][j-1]+grid[i][j]); //maybe error
| ^~~
| pfxY
lboard.cpp:19:40: error: ‘pfx’ was not declared in this scope; did you mean ‘pfxY’?
19 | if(i-1>=0)pfxY[i][j]=max(grid[i][j],pfx[i-1][j]+grid[i][j]); //maybe different error
| ^~~
| pfxY
lboard.cpp:23:7: error: expected ‘(’ before ‘ll’
23 | for ll j=m-1;j>=0;j--){
| ^~
| (
lboard.cpp:24:39: error: ‘sfx’ was not declared in this scope; did you mean ‘sfxY’?
24 | if(j+1<n)sfxX[i][j]=max(grid[i][j],sfx[i][j+1]+grid[i][j]); //maybe error
| ^~~
|