Language: C++

#include <bits/stdc++.h>
using namespace std;int N,M,i.j;main(){cin>>N>>M;vector<int>D(N);for(i=0;i<N;){cin>>D[i++];}vector<int>C(M);for(i=0;i<N;){cin>>D[i++];}vector<vector<int> >dp(M+1,vector<int>(N+1,1<<30));dp[0][0]=0;for(i=1;i<=M;i++){for(j=0;j<=N;j++){if(j==0){dp[i][j]=dp[i-1][j];}else{dp[i][j]=min(dp[i-1][j],dp[i-1][j-1]+C[i-1]*D[j-1]);}}}printf("%d\n",dp[M][N]);}

Compiler output:
a.cc:2:30: error: expected initializer before '.' token
    2 | using namespace std;int N,M,i.j;main(){cin>>N>>M;vector<int>D(N);for(i=0;i<N;){cin>>D[i++];}vector<int>C(M);for(i=0;i<N;){cin>>D[i++];}vector<vector<int> >dp(M+1,vector<int>(N+1,1<<30));dp[0][0]=0;for(i=1;i<=M;i++){for(j=0;j<=N;j++){if(j==0){dp[i][j]=dp[i-1][j];}else{dp[i][j]=min(dp[i-1][j],dp[i-1][j-1]+C[i-1]*D[j-1]);}}}printf("%d\n",dp[M][N]);}
      |                              ^
a.cc:2:33: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | using namespace std;int N,M,i.j;main(){cin>>N>>M;vector<int>D(N);for(i=0;i<N;){cin>>D[i++];}vector<int>C(M);for(i=0;i<N;){cin>>D[i++];}vector<vector<int> >dp(M+1,vector<int>(N+1,1<<30));dp[0][0]=0;for(i=1;i<=M;i++){for(j=0;j<=N;j++){if(j==0){dp[i][j]=dp[i-1][j];}else{dp[i][j]=min(dp[i-1][j],dp[i-1][j-1]+C[i-1]*D[j-1]);}}}printf("%d\n",dp[M][N]);}
      |                                 ^~~~
a.cc: In function 'int main()':
a.cc:2:70: error: 'i' was not declared in this scope
    2 | using namespace std;int N,M,i.j;main(){cin>>N>>M;vector<int>D(N);for(i=0;i<N;){cin>>D[i++];}vector<int>C(M);for(i=0;i<N;){cin>>D[i++];}vector<vector<int> >dp(M+1,vector<int>(N+1,1<<30));dp[0][0]=0;for(i=1;i<=M;i++){for(j=0;j<=N;j++){if(j==0){dp[i][j]=dp[i-1][j];}else{dp[i][j]=min(dp[i-1][j],dp[i-1][j-1]+C[i-1]*D[j-1]);}}}printf("%d\n",dp[M][N]);}
      |                                                                      ^
a.cc:2:113: error: 'i' was not declared in this scope
    2 | using namespace std;int N,M,i.j;main(){cin>>N>>M;vector<int>D(N);for(i=0;i<N;){cin>>D[i++];}vector<int>C(M);for(i=0;i<N;){cin>>D[i++];}vector<vector<int> >dp(M+1,vector<int>(N+1,1<<30));dp[0][0]=0;for(i=1;i<=M;i++){for(j=0;j<=N;j++){if(j==0){dp[i][j]=dp[i-1][j];}else{dp[i][j]=min(dp[i-1][j],dp[i-1][j-1]+C[i-1]*D[j-1]);}}}printf("%d\n",dp[M][N]);}
      |                                                                                                                 ^
a.cc:2:202: error: 'i' was not declared in this scope
    2 | using namespace std;int N,M,i.j;main(){cin>>N>>M;vector<int>D(N);for(i=0;i<N;){cin>>D[i++];}vector<int>C(M);for(i=0;i<N;){cin>>D[i++];}vector<vector<int> >dp(M+1,vector<int>(N+1,1<<30));dp[0][0]=0;for(i=1;i<=M;i++){for(j=0;j<=N;j++){if(j==0){dp[i][j]=dp[i-1][j];}else{dp[i][j]=min(dp[i-1][j],dp[i-1][j-1]+C[i-1]*D[j-1]);}}}printf("%d\n",dp[M][N]);}
      |                                                                                                                                                                                                          ^
a.cc:2:220: error: 'j' was not declared in this scope
    2 | using namespace std;int N,M,i.j;main(){cin>>N>>M;vector<int>D(N);for(i=0;i<N;){cin>>D[i++];}vector<int>C(M);for(i=0;i<N;){cin>>D[i++];}vector<vector<int> >dp(M+1,vector<int>(N+1,1<<30));dp[0][0]=0;for(i=1;i<=M;i++){for(j=0;j<=N;j++){if(j==0){dp[i][j]=dp[i-1][j];}else{dp[i][j]=min(dp[i-1][j],dp[i-1][j-1]+C[i-1]*D[j-1]);}}}printf("%d\n",dp[M][N]);}
      |                                                                                                                                                                                                                            ^