0_0_36324921_6538.cpp: In function 'int main()': 0_0_36324921_6538.cpp:70:26: error: 'iz' was not declared in this scope dp[i][j][k]=max(dp[iz][j][k],dp[i-1][j-z][k]+f[i][z]); ^