Problem hole
User TheRaptor
Submission Time 2023-01-01 10:04:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hole.cpp: In function ‘int main()’:
hole.cpp:8:5: error: expected initializer before ‘cin’
8 | cin >> n >> m;
| ^~~
hole.cpp:9:14: error: ‘n’ was not declared in this scope
9 | bool arr[n][n];
| ^
hole.cpp:10:12: error: ‘arr’ was not declared in this scope
10 | memset(arr,0,sizeof(arr));
| ^~~
hole.cpp:21:22: error: ‘pre’ was not declared in this scope
21 | if(i==0) pre[i][j]=r;
| ^~~
hole.cpp:22:18: error: ‘pre’ was not declared in this scope
22 | else pre[i][j]=pre[i-1][j]+r;
| ^~~
hole.cpp:29:36: error: ‘pre’ was not declared in this scope
29 | if(i==0 && j==0 && pre[i+k][j+k]>0) break;
| ^~~
hole.cpp:33:34: error: no matching function for call to ‘max(short int&, int)’
33 | best=max(b