2014_ho_t2.cpp: In function 'int main()':
2014_ho_t2.cpp:15:20: error: 'NN' was not declared in this scope; did you mean 'N'?
15 | for(int i=1;i<=NN;i++) dp1[i]=dp1[i-1]+p[i];
| ^~
| N
2014_ho_t2.cpp:16:42: error: 'NN' was not declared in this scope; did you mean 'N'?
16 | for(int i=0;i<=m;i++) for(int j=1;j<=NN;j++) dp2[i][j]=INT_MAX/2;
| ^~
| N
2014_ho_t2.cpp:19:19: error: 'NN' was not declared in this scope; did you mean 'N'?
19 | for(int j=NN;j>=1;j--){
| ^~
| N
2014_ho_t2.cpp:25:20: error: 'NN' was not declared in this scope; did you mean 'N'?
25 | for(int i=1;i<=NN;i++) ans=max(ans,dp1[i]-dp2[m][i]);
| ^~
| N