0_0_39876244_25223.cpp:3:9: error: 'N' was not declared in this scope
3 | int val[N][N],dp[N][N][9][9];
| ^
0_0_39876244_25223.cpp:3:12: error: 'N' was not declared in this scope
3 | int val[N][N],dp[N][N][9][9];
| ^
0_0_39876244_25223.cpp:3:18: error: 'N' was not declared in this scope
3 | int val[N][N],dp[N][N][9][9];
| ^
0_0_39876244_25223.cpp:3:21: error: 'N' was not declared in this scope
3 | int val[N][N],dp[N][N][9][9];
| ^
0_0_39876244_25223.cpp: In function 'void init()':
0_0_39876244_25223.cpp:9:13: error: 'dp' was not declared in this scope
9 | dp[row][col][0][0] = val[row][col];
| ^~
0_0_39876244_25223.cpp:9:34: error: 'val' was not declared in this scope
9 | dp[row][col][0][0] = val[row][col];
| ^~~
0_0_39876244_25223.cpp:21:32: error: 'dp' was not declared in this scope
21 | if(i == 0) dp[row][col][i][j]=max(dp[row][col][i][j-1],dp[row][col+(1<<(j-1))][i][j-1]);
| ^~
0_0_39876244_25223.cpp:22:26: error: 'dp' was not declared in this scope
22 | else dp[row][col][i][j]=max(dp[row][col][i-1][j],dp[row+(1<<(i-1))][col][i-1][j]);
| ^~
0_0_39876244_25223.cpp: In function 'int RMQ2D(int, int, int, int)':
0_0_39876244_25223.cpp:32:14: error: 'dp' was not declared in this scope
32 | int m1 = dp[x1][y1][kx][ky];
| ^~
0_0_39876244_25223.cpp: In function 'int main()':
0_0_39876244_25223.cpp:47:29: error: 'val' was not declared in this scope
47 | scanf("%d",&val[i][j]);
| ^~~
0_0_39876244_25223.cpp:53:21: error: 'val' was not declared in this scope
53 | if(ans==val[x1][y1] || ans==val[x2][y2]
| ^~~
|