holding.cpp: In function 'int main()':
holding.cpp:21:22: error: 'dplast' was not declared in this scope
21 | dp[l][j]=dplast[l][j]=dptmp[l][j]=sum;
| ^~~~~~
holding.cpp:21:35: error: 'dptmp' was not declared in this scope
21 | dp[l][j]=dplast[l][j]=dptmp[l][j]=sum;
| ^~~~~
holding.cpp:34:27: error: 'r' was not declared in this scope
34 | if(l<=r){
| ^
holding.cpp:35:50: error: 'dplast' was not declared in this scope
35 | dp[l][j] = min(dp[l][j], dplast[l-1][j-(l-i)]-a[l]+a[i]);
| ^~~~~~
holding.cpp:48:46: error: 'dplast' was not declared in this scope
48 | dp[l][j] = min(dp[l][j], dplast[l-1][j-(l-i)]-a[i]+a[l]);
| ^~~~~~
holding.cpp:54:14: error: 'dplast' was not declared in this scope
54 | swap(dplast, dp);
| ^~~~~~