Main.cc: In function ‘int calc(int, int)’: Main.cc:3:13: error: ‘F’ was not declared in this scope int ret=F[i]; ^ Main.cc:4:12: error: ‘d’ was not declared in this scope ret-=k*d[i]; ^ Main.cc: In function ‘void dp()’: Main.cc:10:5: error: ‘f’ was not declared in this scope f[0][1][0]=0; ^ Main.cc:11:20: error: ‘h’ was not declared in this scope for(int i=0;i<=h;i++) ^ Main.cc:12:20: error: ‘n’ was not declared in this scope for(int j=1;j<=n;j++) ^ Main.cc:18:20: error: ‘h’ was not declared in this scope for(int i=0;i<=h;i++) ^ Main.cc:19:20: error: ‘n’ was not declared in this scope for(int j=1;j<=n;j++) ^ Main.cc:25:28: error: ‘max’ was not declared in this scope f[i+1][j][k+1]=max(f[i][j][k]+p,f[i+1][j][k+1]); ^~~ Main.cc:27:14: error: ‘t’ was not declared in this scope if(i+t[j+1]<=h && j+1<=n) ^ Main.cc:29:33: error: ‘max’ was not declared in this scope f[i+t[j+1]][j+1][0]=max(f[i+t[j+1]][j+1][0],f[i][j][k]); ^~~ Main.cc:31:13: error: ‘max’ was not declared in this scope ans=max(ans,f[i][j][k]); ^~~ Main.cc:33:5: error: ‘cout’ was not declared in this scope cout<