0_0_22001593_3265.cpp: In function 'int dp()': 0_0_22001593_3265.cpp:53:32: error: 'lim' was not declared in this scope for(int r = 0;r <= lim;r++) f[i][j][r] = 0; ^