0_0_38257970_20241.cpp: In function 'int dp(int, int)':
0_0_38257970_20241.cpp:6:10: error: 'num' was not declared in this scope
return num[1][1];
^
0_0_38257970_20241.cpp:10:25: error: 'num' was not declared in this scope
return dp(i - 1, j) + num[i][j];
^
0_0_38257970_20241.cpp:14:29: error: 'num' was not declared in this scope
return dp(i - 1, j - 1) + num[i][j];
^
0_0_38257970_20241.cpp:21:26: error: 'max' was not declared in this scope
return max(temp1, temp2) + num[i][j];
^
0_0_38257970_20241.cpp:21:30: error: 'num' was not declared in this scope
return max(temp1, temp2) + num[i][j];
^
|