Problem lboard
User elainagrey
Submission Time 2023-03-09 21:25:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lboard.cpp: In function ‘int main()’:
lboard.cpp:15:26: error: expected primary-expression before ‘long’
15 | left[i][j]=max(prev,0(long long))+arr[i][j];
| ^~~~
lboard.cpp:15:35: error: expression cannot be used as a function
15 | left[i][j]=max(prev,0(long long))+arr[i][j];
| ^
lboard.cpp:18:24: error: expected primary-expression before ‘long’
18 | up[i][j]=max(prev,0(long long))+arr[i][j];
| ^~~~
lboard.cpp:18:33: error: expression cannot be used as a function
18 | up[i][j]=max(prev,0(long long))+arr[i][j];
| ^
lboard.cpp:25:27: error: expected primary-expression before ‘long’
25 | right[i][j]=max(prev,0(long long))+arr[i][j];
| ^~~~
lboard.cpp:25:36: error: expression cannot be used as a function
25 | right[i][j]=max(prev,0(long