criyle/codenet-compile-errors huggingface dataset:
Language: C++

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int H=sc.nextInt();
		int W=sc.nextInt();
		boolean conte=true;
		boolean[][] c=new boolean[H][W];
		int[][] field=new int[H][W];
		String[] str=new String[H];
		for(int i=0;i<H;i++){
			str[i]=sc.next();
			for(int k=0;k<W;k++){
				 field[i][k]=-1;
				 c[i][k]=false;
			 }
		}
		sc.close();
		for(int i=0;i<H;i++){
			int j=0;
			conte=true;
			 while(conte && j< str[i].length()){
				 if(str[i].indexOf('c',j) == -1){
					 conte=false; 
				 }else{
					 c[i][str[i].indexOf('c',j)]=true;
					 field[i][str[i].indexOf('c',j)]=0;
					 j=str[i].indexOf('c',j);
				 }
				 j++;
			 }
		}
		for(int i=0;i<H;i++){
			 for(int k=0;k<W-1;k++){
				 if(c[i][k]==true && c[i][k+1]==false){
					 field[i][k+1]=field[i][k]+1;
					 c[i][k+1]=true;
				 }
			 }	 
		}
		for(int i=0;i<H;i++){
			for (int k=0;k<W-1;k++){
				System.out.printf("%d ", field[i][k]);
			}
				System.out.printf("%d\n",field[i][W-1]);
		}
		
		
		
		
		
		
	}

}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int H = sc.nextInt();
		int W = sc.nextInt();
		int cnt=0;
		int ccnt=0;
		int i = 0,k = 0;
		String data[][] = new String[H][W];
		for(i = 0;i < H;i++){
			for(k = 0;k < W;k++){
	    		data[i][k] = sc.next();
			}
		}
		for(i = 0;i < H;i++){
			for(k = 0;k < W;k++){
				if(data[i][k].equals(".")){
					if(ccnt != 1){
						if((k+1)==W){
							System.out.println(-1);
							ccnt = 0;
							cnt = 0;
						}else {
							System.out.print(-1);
							System.out.print(" ");
						}

					}else{
						if((k+1)==W){
							cnt++;
							System.out.println(cnt);
							ccnt = 0;
		    				cnt = 0;
						}else{ 
							cnt++;
							System.out.print(cnt);
							System.out.print(" ");
						}
					}
				}
				else if(data[i][k].equals("c")){
					 cnt = 0;
	    			 ccnt = 1;
	    			 if((k+1)==W){ 
	    				 System.out.println(0);
	    				 ccnt = 0; 
	    			 }else {
	    				 System.out.print(0);
	    				 System.out.print(" ");
	    			 }
				}
			}
		}
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>
#include<vector>
#include<string>
using namespace std;

int main() {
	int a,b;
	cin>>a>>b;
	for(int c=0;c<a;c++){
		string d;
		cin>>d;
		vector<int>s(b);
		for(int e=0;e<b;e++){
			if(d[e]=='c')s[e]++;
		}
		
		for(int f=0;f<a;f++){int q=-1;
			for(int g=f;g!=0;g--){
				if(s[g]){q]=f=g;break;}
			}
			cout<<q;
		}
		cout<<endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:43: error: expected ';' before ']' token
   19 |                                 if(s[g]){q]=f=g;break;}
      |                                           ^
      |                                           ;
Language: C++

#include<iostream>
using namespace std;

int main(){

  int h, w, i, j, ch;
  char cl[100][100];
  int po[100][100];

  cin >> h >> w;

  for (i=0; i<h; i++){
    cin >> cl[i];
  }

  for (i=0; i<h; i++){
    for (j=w; j>0; j--){
      ch = j;po[i][j-1]=0;
      while(ch > 0){
	if (cl[i][ch-1] == 'c'){
	  break;
	}
	ch--;
	if(ch==0){
	  po[i][j-1]=-1;
	  // cout << po[i][j-1];
	  break;
	}
	po[i][j-1]++;
      }
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:32:4: error: expected '}' at end of input
   32 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

include<stdio.h>
int main(){
????char c;
????int w,h,k,i;
????scanf("%d %d",&h,&w);
????while(h--){
????????k=-1;
????????for(i=0;i<w;i++){
????????????scanf(" %c",&c);
????????????if(c=='c')k=0;
????????????else if(k+1)k++;
????????????if(i)printf(" ");
????????????printf("%d",k);
????????}
????????printf("\n");
????}
????return 0;
}
Compile Error Logs:
You are not authorized to see the message. 

???????????????
Judge: 7/7 
C 
CPU: 00.00 sec 
Memory: 600 KB 
Length: 280 B 
2015-07-17 17:14 
2015-07-17 17:14 
???????????±?????????????????????
Case #
Verdict
CPU Time
Memory
In
Out
Case Name
Case #1:
: Accepted 
00.00 sec
600 KB
19 B
30 B
2015-yo-t3-in_s1.txt
Case #2:
: Accepted 
00.00 sec
600 KB
58 B
116 B
2015-yo-t3-in_s2.txt
Case #3:

Compiler output:
a.cc:30:12: error: extended character ± is not valid in an identifier
   30 | ???????????±?????????????????????
      |            ^
a.cc:31:6: error: stray '#' in program
   31 | Case #
      |      ^
a.cc:38:6: error: stray '#' in program
   38 | Case #1:
      |      ^
a.cc:45:6: error: stray '#' in program
   45 | Case #2:
      |      ^
a.cc:52:6: error: stray '#' in program
   52 | Case #3:
      |      ^
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
a.cc:19:1: error: 'Compile' does not name a type
   19 | Compile Error Logs:
      | ^~~~~~~
Language: C++

include<stdio.h>
int main(){
????char c;
????int w,h,k,i;
????scanf("%d %d",&h,&w);
????while(h--){
????????k=-1;
????????for(i=0;i<w;i++){
????????????scanf(" %c",&c);
????????????if(c=='c')k=0;
????????????else if(k+1)k++;
????????????if(i)printf(" ");
????????????printf("%d",k);
????????}
????????printf("\n");
????}
????return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

#include<stdio.h>
int main(void)
{
	int w,h,i[105][105],j,A,last,r,f;
	char f[105][105];
	scanf("%d %d",&w,&h,);
	for(i=0;i<h;i++){
		scanf("%s",&f[i]);
	}
		for(i=0;i<h;i++){
			last=-1;
			for(j=0;j<w;j++){
		}
	}
	for(i=0;i<100;i++){
		for(j=0;j<w;j++){
			if(f[i][j]=='c')
			last=j;
			r=-1;
			if(last!=-1){
				r=j-last;
				printf("%d %c",r,j==w-1?'\n':' ');
			}
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: conflicting declaration 'char f [105][105]'
    5 |         char f[105][105];
      |              ^
a.cc:4:40: note: previous declaration as 'int f'
    4 |         int w,h,i[105][105],j,A,last,r,f;
      |                                        ^
a.cc:6:29: error: expected primary-expression before ')' token
    6 |         scanf("%d %d",&w,&h,);
      |                             ^
a.cc:7:14: error: incompatible types in assignment of 'int' to 'int [105][105]'
    7 |         for(i=0;i<h;i++){
      |             ~^~
a.cc:7:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         for(i=0;i<h;i++){
      |                 ~^~
a.cc:7:21: error: lvalue required as increment operand
    7 |         for(i=0;i<h;i++){
      |                     ^
a.cc:10:22: error: incompatible types in assignment of 'int' to 'int [105][105]'
   10 |                 for(i=0;i<h;i++){
      |                     ~^~
a.cc:10:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |                 for(i=0;i<h;i++){
      |                         ~^~
a.cc:10:29: error: lvalue required as increment operand
   10 |                 for(i=0;i<h;i++){
      |                             ^
a.cc:15:14: error: incompatible types in assignment of 'int' to 'int [105][105]'
   15 |         for(i=0;i<100;i++){
      |             ~^~
a.cc:15:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |         for(i=0;i<100;i++){
      |                 ~^~~~
a.cc:15:23: error: lvalue required as increment operand
   15 |         for(i=0;i<100;i++){
      |                       ^
Language: C++

#include<iostream>
using namespace std;
int main() {
	char sky[100][100] = { -2999 };
	int res[100][100];
	int n, m, i, j, k;
	scanf_s("%d%d", &n,&m);
	for (i = 0; i < n; i++) {
		for (j = 0; j < m; j++) {
			scanf("%s", &sky[i][j]);
		}
	}
	for (i = 0; i < n; i++) {
		for (j = 0; j < m; j++) {
			if (sky[i][j] == 'c') res[i][j] = 0;
			else {
				for (k = j - 1; k < m; k++) {
					if (sky[i][k] == 'c') res[i][j] = i - k;
				}
			}
		}
	}
	for (i = 0; i < n; i++) {
		for (j = 0; j < m; j++) {
			cout << res[i][j] << " ";
		}
		cout << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:32: error: narrowing conversion of '-2999' from 'int' to 'char' [-Wnarrowing]
    4 |         char sky[100][100] = { -2999 };
      |                                ^~~~~
a.cc:7:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |         scanf_s("%d%d", &n,&m);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<iostream>
using namespace std;
int H,W,x[1000][1000],c[1000][1000];
int main(){
	cin>>H>>W;
	for(int i=0;i<H;i++){
		for(int j=0;j<W;j++){
			char f;cin>>f;
			if(f~=='c')x[i][j]=1;
			c[i][j]=-1;
		}
	}
	for(int i=0;i<H;i++){
		for(int j=0;j<W;j++){
			for(int k=j;k>=0;k--){
				if(x[i][k]==1){c[i][j]=j-k;break;}
			}
		}
	}
	for(int i=0;i<H;i++){
		for(int j=0;j<W;j++){
			if(j>0)cout<<' ';
			cout<<c[i][j];
		}
		cout<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: expected ')' before '~' token
    9 |                         if(f~=='c')x[i][j]=1;
      |                           ~ ^
      |                             )
Language: C++

#include<iostream>
#include<cstring>
using namespace std;
int main(void){
	int h,w,con=0;
	char c[100][100],d[1
	string str;
	string::size_type index;
	
	cin>>h>>w;
	
	for(int i=0;i<h;i++){
		for(int j=0;j<w;j++){
			cin>>c[i][j];
		}
	}
	
	for(int i=0;i<h;i++){
		for(int j=0;j<w;j++){
			str=(c[i][j]);
			index=str.find("c");
			
			if(index!=-1){
				cout<<0<<" ";
				con=1;
			}
			
			else if(index==-1&&con==0){
				cout<<-1<<" ";
			}
			
			else{
				cout<<con<<" ";
				con++;
			}
		}
		cout<<endl;
		con=0;
	}
		
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:29: error: expected ']' before 'string'
    6 |         char c[100][100],d[1
      |                             ^
      |                             ]
    7 |         string str;
      |         ~~~~~~               
a.cc:20:25: error: 'str' was not declared in this scope; did you mean 'std'?
   20 |                         str=(c[i][j]);
      |                         ^~~
      |                         std
Language: C++

#include<iostream>
#include<cstring>
using namespace std;
int main(void){
	int h,w,con=0;
	char c[100][100],d[100][100];
	string str;
	
	cin>>h>>w;
	
	for(int i=0;i<h;i++){
		for(int j=0;j<w;j++){
			cin>>c[i][j];
		}
	}
	
	for(int i=0;i<h;i++){
		for(int j=0;j<w;j++){
			str=(c[i][j]);
			index=str.find("c");
			
			if(index!=-1){
				cout<<0<<" ";
				con=1;
			}
			
			else if(index==-1&&con==0){
				cout<<-1<<" ";
			}
			
			else{
				cout<<con<<" ";
				con++;
			}
		}
		cout<<endl;
		con=0;
	}
		
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:43: error: overloaded function with no contextual type information
   20 |                         index=str.find("c");
      |                                           ^
a.cc:22:33: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator!='
   22 |                         if(index!=-1){
      |                            ~~~~~^~~~
a.cc:27:38: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator=='
   27 |                         else if(index==-1&&con==0){
      |                                 ~~~~~^~~~
Language: C++

#include <iosream>
using namespace std;

int main(){
	int h, w, a[100][100];
	char in;
	cin >> h >> w;
	for(int i = 0; i<h;i++){
		for(int j = 0;j<w;j++){
			cin >> in;
			if(in == 'c') a[i][j] == 0;
			else if(j == 0) a[i][0] = -1;
			else if(a[i][j-1] == -1) a[i][j] = -1;
			else a[i][j] = a[i][j-1] + 1;
			cout << a[i][j];
		}
		cout << endl;
	}
	return 0;
}

Compiler output:
a.cc:1:10: fatal error: iosream: No such file or directory
    1 | #include <iosream>
      |          ^~~~~~~~~
compilation terminated.
Language: C++

#include<stdio.h>
#include<iostream>
using namespace std;
int p[100][100];
int main(){
int w,h,i,j;
char c[201];
cin>>h>>w;
for(i=0;i<h;i++){
scanf("%s",c);
for(j=0;j<w;j++){
if(c[j]=='c')p[i][j]=0;
else p[i]j[]=-1;
}
}
for(i=0;i<h;i++){
for(j=1;j<w;j++){
if(p[i][j-1]>=0&&p[i][j]<0)p[i][j]=p[i][j-1]+1;
}
}
for(i=0;i<h;i++){
for(j=0;j<w;j++){
cout<<p[i][j];
if(j!=w-1)cout<<' ';
}
cout<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: expected ';' before 'j'
   13 | else p[i]j[]=-1;
      |          ^
      |          ;
Language: C++

#include <iostream>
using namespace std;
int main (){
/*-------------custom------------------*/
int h,w,ans[101][101]={-2},checker,b=0;
char dr[101][101]={0};
/*-------------------------------------*/
/*-------------imput-------------------*/
cin>>h>>w;
for (int s=0;s<h;s++){
        for (int s_=0;s_<w;s_++){
                cin>>dr[s][s_];
        }
}
/*------------------------------------*/
/*-----------calcutation--------------*/
for (int s=0;s<h;s++){
        for (int s_=0;s_<w;s_++){
                if (dr[s][s_]=='c'){
                ans[s][s_]=0;
                }
                else {
                        for (int s__=s_;s__>=0;s__--){
                                if (dr[s][s__]=='.'&&checker!=-1){
                                        checker=0;
                                }
                                else if (dr[s][s__]=='c'){
                                        ans[s][s_]=b;
                                        checker=-1;
                                }
                                b++;
                        }
                        if (checker==0){ans[s][s_]=-1;}
                                b=0; checker=0;
                }
        }
}
/*-------------------------------------*/
/*---------------output----------------*/
for (int s=0;s<h;s++){
        for (int s_=0;s_<w;s_++){
                if (s_==w-1){
                        cout<<ans[s][s_];
                }
                else {
                        cout<<ans[s][s_]<<" ";
                }
        } cout<<endl;
/*------------------------------------*/
}
return 0;
}

~                                         

Compiler output:
a.cc:54:2: error: expected class-name at end of input
   54 | ~
      |  ^
Language: C++

include <iostream>
using namespace std;
int main (){
char ny;
int dr[101][101],h,w,c=0,i;
cin>>h>>w;
for (int s=0;s<h;s++){
        for (int s_=0;s_<w;s_++){
                cin>>ny;
                dr[s][s_]=-1;
                if (ny=='c')dr[s][s_]=0;
        }
}
for (int s=0;s<h;s++){
        for (int s_=0;s_<w;s_++){
                if (dr[s][s_]==0){
                i=s_;
                        for (int s__=i;s__<w;s__++){
                                if (dr[s][s__]==0)c=0;
                                if (dr[s][s__]==-1){
                                c++;
                                dr[s][s__]=c;
                                }
                        }
                        c=0;
                }
        }
}

for (int s=0;s<h;s++){
        for (int s_=0;s_<w;s_++){
                if (s_==w-1){
                cout<<dr[s][s_];
                }
                else {
                cout<<dr[s][s_]<<" ";
                }
        }
cout<<endl;
}
return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin>>h>>w;
      | ^~~
a.cc:33:17: error: 'cout' was not declared in this scope
   33 |                 cout<<dr[s][s_];
      |                 ^~~~
a.cc:36:17: error: 'cout' was not declared in this scope
   36 |                 cout<<dr[s][s_]<<" ";
      |                 ^~~~
a.cc:39:1: error: 'cout' was not declared in this scope
   39 | cout<<endl;
      | ^~~~
a.cc:39:7: error: 'endl' was not declared in this scope
   39 | cout<<endl;
      |       ^~~~
Language: C++

#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
#include <math.h>
#include <vector>
#include <algorithm>
#include <functional>
#include <numeric>

using namespace std;

#define REP(i,n) for (int i = 0; i < n; i++)

int main() {

	int H, W;
	char w[123][123];

	scanf("%d %d", &H, &W);

	REP(i, H) scanf("%s", w[i]);

	int r[123][123];
	memset(r, 0xFF, sizeof(r));

	REP(i, H) {
		REP(j, W) {
			if (j != 0 && r[i][j - 1] != -1) r[i][j] = r[i][j - 1] + 1;
			if (w[i][j] == 'c') r[i][j] = 0;
		}
	}


	REP(i, H) {
		REP(j, W) {
			printf("%d", r[i][j]);
			if (j != W - 1) printf(" ");
		}
		printf("\n");
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:9: error: 'memset' was not declared in this scope
   24 |         memset(r, 0xFF, sizeof(r));
      |         ^~~~~~
a.cc:9:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    8 | #include <numeric>
  +++ |+#include <cstring>
    9 |
Language: C++

#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
#include <math.h>
#include <vector>
#include <algorithm>
#include <functional>
#include <numeric>
#include <string>

using namespace std;

#define REP(i,n) for (int i = 0; i < n; i++)

int main() {

	int H, W;
	char w[123][123];

	scanf("%d %d", &H, &W);

	REP(i, H) scanf("%s", w[i]);

	int r[123][123];
	memset(r, 0xFF, sizeof(r));

	REP(i, H) {
		REP(j, W) {
			if (j != 0 && r[i][j - 1] != -1) r[i][j] = r[i][j - 1] + 1;
			if (w[i][j] == 'c') r[i][j] = 0;
		}
	}


	REP(i, H) {
		REP(j, W) {
			printf("%d", r[i][j]);
			if (j != W - 1) printf(" ");
		}
		printf("\n");
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:9: error: 'memset' was not declared in this scope
   25 |         memset(r, 0xFF, sizeof(r));
      |         ^~~~~~
a.cc:10:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    9 | #include <string>
  +++ |+#include <cstring>
   10 |
Language: Java

import java.io.*;
import java.util.StringTokenizer;

class Main{

static final PrintWriter out=new PrintWriter(System.out);

public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String line="";
while((line=br.readLine())!=null&&!line.isEmpty()){
StringTokenier st=new StringTokenizer(line);
int n=Integer.parseInt(st.nextToken());
int m=Integer.parseInt(st.nextToken());
int[][] tir=new int[n+1][m];
int[] d=new int[n];
int[] c=new int[m];
for(int i=0;i<n;i++) d[i]=Integer.parseInt(br.readLine());
for(int i=0;i<m;i++) c[i]=Integer.parseInt(br.readLine());
for(int i=n-1;i>=0;i--){
for(int j=m-2;j>=0;j--){
tir[i][j]=Math.min(tir[i][j+1],tir[i+1][j+1]+d[i]*c[j]);
}
}
out.println(tir[0][0]);
out.flush();
}
}
}

Compiler output:
Main.java:12: error: cannot find symbol
StringTokenier st=new StringTokenizer(line);
^
  symbol:   class StringTokenier
  location: class Main
1 error
Language: Java

import java.io.*;
import java.util.StringTokenizer;

class Main{

static final PrintWriter out=new PrintWriter(System.out);
static final int INF=Integer.MAX_VALUE/2;

public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String line="";
while((line=br.readLine())!=null&&!line.isEmpty()){
StringTokenizer st=new StringTokenizer(line);
int n=Integer.parseInt(st.nextToken());
int m=Integer.parseInt(st.nextToken());
int[][] tir=new int[m][n+1];
Arrays.fill(tir[m-1],INF);
tir[m-1][n]=0
int[] d=new int[n];
int[] c=new int[m];
for(int i=0;i<n;i++) d[i]=Integer.parseInt(br.readLine());
for(int i=0;i<m;i++) c[i]=Integer.parseInt(br.readLine());
for(int i=n-1;i>=0;i--){
for(int j=m-2;j>=0;j--){
tir[j][i]=Math.min(tir[j][i+1],tir[j+1][i+1]+d[j]*c[i]);
}
}
out.println(tir[0][0]);
out.flush();
}
}
}

Compiler output:
Main.java:18: error: ';' expected
tir[m-1][n]=0
             ^
1 error
Language: Java

import java.io.*;
import java.util.StringTokenizer;

class Main{

static final PrintWriter out=new PrintWriter(System.out);
static final int INF=Integer.MAX_VALUE/2;

public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String line="";
while((line=br.readLine())!=null&&!line.isEmpty()){
StringTokenizer st=new StringTokenizer(line);
int n=Integer.parseInt(st.nextToken());
int m=Integer.parseInt(st.nextToken());
int[][] tir=new int[m][n+1];
Arrays.fill(tir[m-1],INF);
tir[m-1][n]=0;
int[] d=new int[n];
int[] c=new int[m];
for(int i=0;i<n;i++) d[i]=Integer.parseInt(br.readLine());
for(int i=0;i<m;i++) c[i]=Integer.parseInt(br.readLine());
for(int i=n-1;i>=0;i--){
for(int j=m-2;j>=0;j--){
tir[j][i]=Math.min(tir[j][i+1],tir[j+1][i+1]+d[j]*c[i]);
}
}
out.println(tir[0][0]);
out.flush();
}
}
}

Compiler output:
Main.java:17: error: cannot find symbol
Arrays.fill(tir[m-1],INF);
^
  symbol:   variable Arrays
  location: class Main
1 error
Language: Java

package ex;
import java.util.*;
public class Q2 {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] r = new int[n+3];
		int[] day = new int[m+3];
		int[] day2 = new int[m+3];
		int ans=0;
		int count=0;
		for(int i=0;i<n;i++){
			r[i] = sc.nextInt();
		}
		for(int i=0;i<m;i++) {
			day[i] = sc.nextInt();
		}
		count=0;
		for(int i=0;i<m;i++){
			if(day[i]!=0 ){
				ans=ans+day[i]*r[count];
			}
			if(count==n-1) break;
			count+=1;
		}
		System.out.println(ans);
    }
}

Compiler output:
Main.java:3: error: class Q2 is public, should be declared in a file named Q2.java
public class Q2 {
       ^
1 error
Language: Java

package ex;
import java.util.*;
public class Q2 {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] r = new int[n+3];
		int[] day = new int[m+3];
		int ans=0;
		int count=0;
		for(int i=0;i<n;i++){
			r[i] = sc.nextInt();
		}
		for(int i=0;i<m;i++) {
			day[i] = sc.nextInt();
		}
		count=0;
		for(int i=0;i<m;i++){
			if(day[i]!=0 ){
				ans=ans+day[i]*r[count];
			}
			if(count==n-1) break;
			count+=1;
		}
		System.out.println(ans);
    }
}

Compiler output:
Main.java:3: error: class Q2 is public, should be declared in a file named Q2.java
public class Q2 {
       ^
1 error
Language: Java

import java.util.*;
public class Q2 {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] r = new int[n+3];
		int[] day = new int[m+3];
		int ans=0;
		int count=0;
		for(int i=0;i<n;i++){
			r[i] = sc.nextInt();
		}
		for(int i=0;i<m;i++) {
			day[i] = sc.nextInt();
		}
		count=0;
		for(int i=0;i<m;i++){
			if(day[i]!=0 ){
				ans=ans+day[i]*r[count];
			}
			if(count==n-1) break;
			count+=1;
		}
		System.out.println(ans);
    }
}

Compiler output:
Main.java:2: error: class Q2 is public, should be declared in a file named Q2.java
public class Q2 {
       ^
1 error
Language: C

#include<cstdio>

int N=0,M=0;
int D[1010]={},C[1010]={};

int min(int a,int b){
	if (a<b){
		return a;
	}
	return b;
}

int mena(int i,int j){//???i????¬?????????????????????? j????????\?????? 

	if (M<j){
		//printf("%d??\??\????????????%d??\?????\????????£??????return 1000009",M,j);
		return 1000009;
	}
	if (N<i){
		//printf("%d??????????????????????????°????????????%d?????\???",)
		return 0;
	}

	return min(mena(i,j+1),mena(i+1,j+1)+C[j]*D[i]);

}

int main(){

	scanf("%d %d",&N,&M);
	for(int i=1;i<N+1;i++){
		scanf("%d",&D[i]);
	}
	for(int i=0;i<M;i++){
		scanf("%d",&C[i]);
	}

	printf("%d",mena(1,1));

	return 0;
}

Compiler output:
main.c:1:9: fatal error: cstdio: No such file or directory
    1 | #include<cstdio>
      |         ^~~~~~~~
compilation terminated.
Language: C

#define k 1024
#define r(a) for(int i=0;i<a;i++)
#define s(a) scanf("%d",a);
#define m(a,b) a=a<b?a:b
main(w,n,m,c[k],d[k],p[k]){s(&n)s(&m)r(n)s(d+i)r(m)s(c+i)r(n)p[i]=1e9;r(m*n)w=i%n,m(p[w],p[w+1]+c[i/n]*d[n-w-1]);printf("%d\n",p[0]);}

Compiler output:
main.c:5:13: error: expected ')' before '[' token
    5 | main(w,n,m,c[k],d[k],p[k]){s(&n)s(&m)r(n)s(d+i)r(m)s(c+i)r(n)p[i]=1e9;r(m*n)w=i%n,m(p[w],p[w+1]+c[i/n]*d[n-w-1]);printf("%d\n",p[0]);}
      |             ^
      |             )
Language: C

#define k 1024
#define r(a) for(int i=0;i<a;i++)
#define s(a) scanf("%d",a);
#define m(a,b) a=a<b?a:b
main(w,n,m,c[],d[],p[]){s(&n)s(&m)r(n)s(d+i)r(m)s(c+i)r(n)p[i]=1e9;r(m*n)w=i%n,m(p[w],p[w+1]+c[i/n]*d[n-w-1]);printf("%d\n",p[0]);}

Compiler output:
main.c:5:13: error: expected ')' before '[' token
    5 | main(w,n,m,c[],d[],p[]){s(&n)s(&m)r(n)s(d+i)r(m)s(c+i)r(n)p[i]=1e9;r(m*n)w=i%n,m(p[w],p[w+1]+c[i/n]*d[n-w-1]);printf("%d\n",p[0]);}
      |             ^
      |             )
Language: C

#define k 1024
#define r(a) for(int i=0;i<a;i++)
#define s(a) scanf("%d",a);
#define m(a,b) a=a<b?a:b
int w,n,m,c[k],d[k],p[k];main(){s(&n)s(&m)r(n)s(d+i)r(m)s(c+i)r(n)p[i]=1e9;r(m*n)w=i%n,m(p[w],p[w+1]+c[i/n]*d[n-w-1]);printf("%d\n",p[0]);}

Compiler output:
main.c:5:26: error: return type defaults to 'int' [-Wimplicit-int]
    5 | int w,n,m,c[k],d[k],p[k];main(){s(&n)s(&m)r(n)s(d+i)r(m)s(c+i)r(n)p[i]=1e9;r(m*n)w=i%n,m(p[w],p[w+1]+c[i/n]*d[n-w-1]);printf("%d\n",p[0]);}
      |                          ^~~~
main.c: In function 'main':
main.c:3:14: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 | #define s(a) scanf("%d",a);
      |              ^~~~~
main.c:5:33: note: in expansion of macro 's'
    5 | int w,n,m,c[k],d[k],p[k];main(){s(&n)s(&m)r(n)s(d+i)r(m)s(c+i)r(n)p[i]=1e9;r(m*n)w=i%n,m(p[w],p[w+1]+c[i/n]*d[n-w-1]);printf("%d\n",p[0]);}
      |                                 ^
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #define k 1024
main.c:3:14: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 | #define s(a) scanf("%d",a);
      |              ^~~~~
main.c:5:33: note: in expansion of macro 's'
    5 | int w,n,m,c[k],d[k],p[k];main(){s(&n)s(&m)r(n)s(d+i)r(m)s(c+i)r(n)p[i]=1e9;r(m*n)w=i%n,m(p[w],p[w+1]+c[i/n]*d[n-w-1]);printf("%d\n",p[0]);}
      |                                 ^
main.c:3:14: note: include '<stdio.h>' or provide a declaration of 'scanf'
    3 | #define s(a) scanf("%d",a);
      |              ^~~~~
main.c:5:33: note: in expansion of macro 's'
    5 | int w,n,m,c[k],d[k],p[k];main(){s(&n)s(&m)r(n)s(d+i)r(m)s(c+i)r(n)p[i]=1e9;r(m*n)w=i%n,m(p[w],p[w+1]+c[i/n]*d[n-w-1]);printf("%d\n",p[0]);}
      |                                 ^
main.c:5:119: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 | int w,n,m,c[k],d[k],p[k];main(){s(&n)s(&m)r(n)s(d+i)r(m)s(c+i)r(n)p[i]=1e9;r(m*n)w=i%n,m(p[w],p[w+1]+c[i/n]*d[n-w-1]);printf("%d\n",p[0]);}
      |                                                                                                                       ^~~~~~
main.c:5:119: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:119: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:119: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#define r(a,i)for(i=0;i<a;i++)
#define s (scanf("%d",&w),w)
#define c(a,b)a=a<b?a:b
d[999],p[999];main(i,j,w,n,m,*q){n=s;m=s;r(n,i)d[i]=s;r(n,i)p[i]=1e9;r(m,j){s;r(n,i)q=p+i,c(*q,q[i]+w*d[n-i-1]);}printf("%d\n",*p),exit(0);}

Compiler output:
main.c:4:1: warning: data definition has no type or storage class
    4 | d[999],p[999];main(i,j,w,n,m,*q){n=s;m=s;r(n,i)d[i]=s;r(n,i)p[i]=1e9;r(m,j){s;r(n,i)q=p+i,c(*q,q[i]+w*d[n-i-1]);}printf("%d\n",*p),exit(0);}
      | ^
main.c:4:1: error: type defaults to 'int' in declaration of 'd' [-Wimplicit-int]
main.c:4:8: error: type defaults to 'int' in declaration of 'p' [-Wimplicit-int]
    4 | d[999],p[999];main(i,j,w,n,m,*q){n=s;m=s;r(n,i)d[i]=s;r(n,i)p[i]=1e9;r(m,j){s;r(n,i)q=p+i,c(*q,q[i]+w*d[n-i-1]);}printf("%d\n",*p),exit(0);}
      |        ^
main.c:4:30: error: expected ')' before '*' token
    4 | d[999],p[999];main(i,j,w,n,m,*q){n=s;m=s;r(n,i)d[i]=s;r(n,i)p[i]=1e9;r(m,j){s;r(n,i)q=p+i,c(*q,q[i]+w*d[n-i-1]);}printf("%d\n",*p),exit(0);}
      |                              ^
      |                              )
Language: C


#include <iostream>
#include <vector>
#include <cstdio>
#define MIN(a, b) ((a) < (b) ? (a) : (b))

long int dp [1000] [1000];//??´????????\??????
int n, m;
int d[1000], c[1000];//?????¢?????????
long int func(int place, int date){

	if (place == n){
		return 0;
	}
	else if (!dp[place][date]){
		if ((n - place) > (m - date))
			dp[place][date] = LONG_MAX;
		
		else {
			long int a = func(place + 1, date + 1) + d[place] * c[date], b = func(place, date + 1);
			dp[place][date] = MIN(a,b);
		}
		for (int i = 0; date >= i; i++){
			dp[place][i] = dp[place][date];
		}
	}
	return dp[place][date];
}

int main(){

	scanf("%d %d", &n, &m);
	for (int i = 0; n > i; i++) scanf("%d", &d[i]);
	for (int i = 0; m > i; i++) scanf("%d", &c[i]);

	printf("%d\n", func(0, 0));
	return 0;
}

Compiler output:
main.c:2:10: fatal error: iostream: No such file or directory
    2 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
#include<algorithm>
#include<string.h>
using namespace std;
long long int dp[1001][1001];
int main(void)
{
	int N,M,i,j,D[1001],C[1001];

	scanf("%d %d", &N, &M);
	for (i = 1; i <= N; i++)
	{
		scanf("%d", &D[i]);
	}
	for (j = 1; j <= M; j++)
	{
		scanf("%d", &C[j]);
	}
	memset(dp, 0x7f, sizeof(dp));
	for (i = 0; i <= N; i++)
	{
		for (j = i; j <= M; j++)
		{
			if (i == 0)
			{
				dp[i][j] = 0;
			}
			else
			{
				dp[i][j] = min(dp[i][j - 1], dp[i - 1][j - 1] + D[i] * C[j]);
			}
		}
	}
	printf("%d\n", dp[N][M]);
	return 0;
}

Compiler output:
main.c:2:9: fatal error: algorithm: No such file or directory
    2 | #include<algorithm>
      |         ^~~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
#include <limits.h>

typedef signed long long slolo;
int N, M, D[1001], C[1001];
slolo min, map[1001][1001];

slolo a(int i, int j, slolo tired) {
	if (i == N) {
		if (min > tired) min = tired;
		return tired;
	}
	if ((M-j) < (N-i)) return LONG_MAX;
	if (map[i][j] != -1) {
		return a(N,j,tired+map[i][j]);
	}
	slolo b, c;
	b = a(i+1, j+1, tired+D[i]*C[j]);
	c = a(i, j+1, tired);
	/*
	if (i == 1 && j == 1) printf("%lld\n", b<c?b:c-tired);
	map[i][j] = b<c?b:c - tired;
	*/
	return b<c?b:c;
}

int main() {
	int i, j;
	min = LONG_LONG_MAX;
	scanf("%d%d", &N, &M);
	for (i=0; i < N ;i++) {
		for (j=0; j < M ;j++) map[i][j] = -1;
		scanf("%d", &D[i]);
	}
	for (i=0; i < M ;i++) scanf("%d", &C[i]);
	a(0,0,0);
	printf("%lld\n", min);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:29:15: error: 'LONG_LONG_MAX' undeclared (first use in this function); did you mean 'LLONG_MAX'?
   29 |         min = LONG_LONG_MAX;
      |               ^~~~~~~~~~~~~
      |               LLONG_MAX
main.c:29:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
#include<algorithm>

#define INF 100000

using namespace std;
int main(void){
    
    int N,M; 
    cin >> N >> M;
    
    int *D = new int[N+1]; //距離
    int *C = new int[M+1]; //日にち
    int dp[N+1][M+1];
    
    for(int i=1;i < N+1;i++)cin >> D[i]; 
    for(int i=1;i < M+1;i++)cin >> C[i];　//正しく値は代入されている
    
  
    
    
    for(int i = 0;i < M+1;i++){ dp[0][i] = 0;}
    for(int i = 1;i < N+1;i++){ dp[i][0] = INF;}
    
    
    for(int i = 1;i < N+1;i++){
        for(int j = 1;j < M+1;j++){
            
            dp[i][j] = min((D[i] * C[j] + dp[i-1][j-1]),dp[i][j-1]);
            
            
        }
    }
 
    cout << dp[N][M] << endl;
                
     return 0;
                
}


Compiler output:
a.cc:17:41: error: extended character 　 is not valid in an identifier
   17 |     for(int i=1;i < M+1;i++)cin >> C[i];　//正しく値は代入されている
      |                                         ^
a.cc: In function 'int main()':
a.cc:17:41: error: '\U00003000' was not declared in this scope
   17 |     for(int i=1;i < M+1;i++)cin >> C[i];　//正しく値は代入されている
      |                                         ^~
a.cc:22:19: error: 'i' was not declared in this scope
   22 |     for(int i = 0;i < M+1;i++){ dp[0][i] = 0;}
      |                   ^
Language: C++

#include <iostream>
#include<algorithm>

#define INF 100000

using namespace std;
int main(void){
    
    int N,M; 
    cin >> N >> M;
    
    int *D = new int[N+1]; 
    int *C = new int[M+1]; 
    int dp[N+1][M+1];
    
    for(int i=1;i < N+1;i++)cin >> D[i]; 
    for(int i=1;i < M+1;i++)cin >> C[i];　
    
  
    
    
    for(int i = 0;i < M+1;i++){ dp[0][i] = 0;}
    for(int i = 1;i < N+1;i++){ dp[i][0] = INF;}
    
    
    for(int i = 1;i < N+1;i++){
        for(int j = 1;j < M+1;j++){
            
            dp[i][j] = min((D[i] * C[j] + dp[i-1][j-1]),dp[i][j-1]);
            
            
        }
    }
 
    cout << dp[N][M] << endl;
                
     return 0;
                
}


Compiler output:
a.cc:17:41: error: extended character 　 is not valid in an identifier
   17 |     for(int i=1;i < M+1;i++)cin >> C[i];　
      |                                         ^
a.cc: In function 'int main()':
a.cc:17:41: error: '\U00003000' was not declared in this scope
   17 |     for(int i=1;i < M+1;i++)cin >> C[i];　
      |                                         ^~
a.cc:22:19: error: 'i' was not declared in this scope
   22 |     for(int i = 0;i < M+1;i++){ dp[0][i] = 0;}
      |                   ^
Language: C++

#include <iostream>
#include<algorithm>

#define INF 100000

using namespace std;
int main(void){
    
    int N,M; 
    cin >> N >> M;
    
    int *D = new int[N+1]; 
    int *C = new int[M+1]; 
    int dp[N+1][M+1];
    
    for(int i=1;i < N+1;i++){cin >> D[i];}
    for(int i=1;i < M+1;i++){cin >> C[i];}　
    
  
    
    
    for(int i = 0;i < M+1;i++){ dp[0][i] = 0;}
    for(int i = 1;i < N+1;i++){ dp[i][0] = INF;}
    
    
    for(int i = 1;i < N+1;i++){
        for(int j = 1;j < M+1;j++){
            
            dp[i][j] = min((D[i] * C[j] + dp[i-1][j-1]),dp[i][j-1]);
            
            
        }
    }
 
    cout << dp[N][M] << endl;
                
     return 0;
                
}


Compiler output:
a.cc:17:43: error: extended character 　 is not valid in an identifier
   17 |     for(int i=1;i < M+1;i++){cin >> C[i];}　
      |                                           ^
a.cc: In function 'int main()':
a.cc:17:43: error: '\U00003000' was not declared in this scope
   17 |     for(int i=1;i < M+1;i++){cin >> C[i];}　
      |                                           ^~
a.cc:22:19: error: 'i' was not declared in this scope
   22 |     for(int i = 0;i < M+1;i++){ dp[0][i] = 0;}
      |                   ^
Language: C++

#include <iostream>
#include<algorithm>

#define INF 100000

using namespace std;
int main(void){
    
    int N,M; 
    cin >> N >> M;
    
    int D[N+1]; 
    int C[M+1]; 
    int dp[N+1][M+1];
    
    for(int i=1;i < N+1;i++){cin >> D[i];}
    for(int i=1;i < M+1;i++){cin >> C[i];}　
    
  
    
    
    for(int i = 0;i < M+1;i++){ dp[0][i] = 0;}
    for(int i = 1;i < N+1;i++){ dp[i][0] = INF;}
    
    
    for(int i = 1;i < N+1;i++){
        for(int j = 1;j < M+1;j++){
            
            dp[i][j] = min((D[i] * C[j] + dp[i-1][j-1]),dp[i][j-1]);
            
            
        }
    }
 
    cout << dp[N][M] << endl;
                
     return 0;
                
}


Compiler output:
a.cc:17:43: error: extended character 　 is not valid in an identifier
   17 |     for(int i=1;i < M+1;i++){cin >> C[i];}　
      |                                           ^
a.cc: In function 'int main()':
a.cc:17:43: error: '\U00003000' was not declared in this scope
   17 |     for(int i=1;i < M+1;i++){cin >> C[i];}　
      |                                           ^~
a.cc:22:19: error: 'i' was not declared in this scope
   22 |     for(int i = 0;i < M+1;i++){ dp[0][i] = 0;}
      |                   ^
Language: C++

#include <iostream>
#include<algorithm>

#define INF 100000

using namespace std;
int main(void){
    
    int N,M; 
    cin >> N >> M;
    
    int D[N+1]; 
    int C[M+1];
    int dp[N+1][M+1];
    
    for(int i=1;i < N+1;i++){cin >> D[i];}
    for(int i=1;i < M+1;i++){cin >> C[i];}　
    
  
    
    
    for(int i = 0;i < M+1;i++){ dp[0][i] = 0;}
    for(int i = 1;i < N+1;i++){ dp[i][0] = INF;}
    
    
    for(int i = 1;i < N+1;i++){
        for(int j = 1;j < M+1;j++){
            
            dp[i][j] = min((D[i] * C[j] + dp[i-1][j-1]),dp[i][j-1]);
            
            
        }
    }
 
    cout << dp[N][M] << endl;
                
     return 0;
                
}


Compiler output:
a.cc:17:43: error: extended character 　 is not valid in an identifier
   17 |     for(int i=1;i < M+1;i++){cin >> C[i];}　
      |                                           ^
a.cc: In function 'int main()':
a.cc:17:43: error: '\U00003000' was not declared in this scope
   17 |     for(int i=1;i < M+1;i++){cin >> C[i];}　
      |                                           ^~
a.cc:22:19: error: 'i' was not declared in this scope
   22 |     for(int i = 0;i < M+1;i++){ dp[0][i] = 0;}
      |                   ^
Language: C++

#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <vector>
#include <string>
#include <queue>
#include <algorithm>
#include <math.h>
#include <utility>
#include <set>
#include <map>
#define INF INT_MAX
#define rep(i,n) for(int i =0;i<n;i++)
using namespace std;
typedef long long int ll;


int main(){
    int n,m;
    cin >> n>> m;
    vector<int> c(m), d(n);
    rep(i, n) cin >> d[i];
    rep(i, m) cin >> c[i];
    int dp[m-n+1][n+1];//???????????°?????\??????????????´????°?
    rep(i, m-n+1) dp[i][0] = 0;
    for(int i =1 ; i <= n ; i++) dp[0][i] = dp[0][i-1]+d[i-1]*c[i-1];
    for(int i=1;i<m-n+1;i++){
        for (int j=1 ; j<=n; j++) {
            dp[i][j] = min(dp[i-1][j],dp[i][j-1]+c[i+j-1]*d[j-1]);
        }
    }
    rep(i, m-n+1){
        rep(j, n+1){
            cout << dp[i][j]<<"|";
        }
        cout << endl;
    }
    rep(i, n) cout << d[i]<<" ";
    cout << endl;
    rep(i, m) cout << c[i]<<" ";
    cout << endl;
    int ans = INF;
    rep(i, m-n+1) ans = min(ans,dp[i][n]);
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: 'INT_MAX' was not declared in this scope
   12 | #define INF INT_MAX
      |             ^~~~~~~
a.cc:42:15: note: in expansion of macro 'INF'
   42 |     int ans = INF;
      |               ^~~
a.cc:12:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
   11 | #include <map>
  +++ |+#include <climits>
   12 | #define INF INT_MAX
Language: C++

#include<bits/stdc++.h>

#define REP(i,s,n) for(int i=s;i<n;i++)
#define rep(i,n) REP(i,0,n)

using namespace std;

const int IINF = INT_MAX;
int N,M,D[1002],C[1002],dp[1002][1002];

int main(){
  cin >> N >> M;
  rep(i,N) cin >> D[i];
  rep(i,M) cin >> C[i];
  rep(i,M+1) rep(j,N+1) dp[i][j] = IINF;
  dp[0][0] = 0;
  rep(day,M){
    rep(city,N){
      if( dp[day][city] == IINF ) continue;
      dp[day+1][city] = min(dp[day+1][city],dp[day][city]);
      dp[day1+1][city+1] = min(dp[day+1][city+1],dp[day][city]+D[city]*C[day]);
    }
  }
  int mini = IINF;
  rep(i,M+1) mini = min(mini,dp[i][N]);
  cout << mini << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:10: error: 'day1' was not declared in this scope; did you mean 'day'?
   21 |       dp[day1+1][city+1] = min(dp[day+1][city+1],dp[day][city]+D[city]*C[day]);
      |          ^~~~
      |          day
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <climits>
using namespace std;
#define INF INT_MAX;
int n,m;
vector<int> d;
vector<int> c;
vector< vector<int> > dp;

void dfs(int nisu,int shi,int hiro){
  if( dp[shi][nisu] == INF ){
    dp[shi][nisu] = min(dp[shi][nisu-1],hiro);
    if(m-nisu>n-shi) dfs(nisu+1,shi,hiro);
    dfs(nisu+1,shi+1,hiro+c[nisu]*d[shi]);
  }
}



int main (){
  cin >>n>>m;
  d.resize(n);
  c.resize(m);
  dp.resize(n+1);
  for(int i=0;i<=n;i++){
    dp[i].resize(m+1);
    for(int j=0;j<m;j++) dp[i][j] = INF;
  }
  for(int i=0;i<n;i++) cin >> d[i];
  for(int i=0;i<m;i++) cin >> c[i];
  dfs(0,0,0);
  cout << dp[n][m]<<endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'void dfs(int, int, int)':
a.cc:13:28: error: expected primary-expression before ')' token
   13 |   if( dp[shi][nisu] == INF ){
      |                            ^
Language: C++

#include <iostream>
#include <algorithm>
#define INF (2 << 28)
using namespace std;

int N, M, d[1000], c[1001], dp[1001][1001];

int rec(int now, int day) {
    
    if(now == N) return 0;
    if(day > M) return INF;
    if(~dp[now][day]) return dp[now][day];
     
    return dp[now][day] = min(rec(now, day + 1), rec(now + 1, day + 1) + d[now] * c[day]);
 }

int main() {
    
    cin >> N >> M;
    for(int i = 0; i < N; i++) cin >> d[i];
    for(int i = 0; i < M; i++) cin >> c[i + 1];
    
    memset(dp, -1, sizeof(dp));
    cout << rec(0, 1) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:5: error: 'memset' was not declared in this scope
   23 |     memset(dp, -1, sizeof(dp));
      |     ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <algorithm>
  +++ |+#include <cstring>
    3 | #define INF (2 << 28)
Language: C++

11 21
28
558
915
253
963
539
686
300
665
653
661
637
92
985
880
338
83
846
227
42
598
575
560
184
307
670
909
682
465
73
200
712

Compiler output:
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 11 21
      | ^~
Language: C++

// JOI14-quest4.cpp : Defines the entry point for the console application.
//

#include <stdio.h>


int dp[1001][1001] = { 0 };

int main(void)
{
	int city_number, day, distance[1001], weather[1001];

	scanf_s("%d %d", &city_number, &day);

	for (int i = 0; i < city_number; i++) {
		scanf_s("%d", &distance[i]);
	}
	for (int i = 0; i < day; i++) {
		scanf_s("%d", &weather[i]);
	}

	dp[0][0] = 1;

	for (int i = 0; i <= day; i++) {
		for (int j = 0; j <= city_number; j++) {
			if (dp[i][j] != 0) {
				if (dp[i + 1][j] == 0) {
					dp[i + 1][j] = dp[i][j];
				}
				else {
					if (dp[i + 1][j] > dp[i][j]) {
						dp[i + 1][j] = dp[i][j];
					}
				}

				if (j < city_number) {
					if (dp[i + 1][j + 1] == 0) {
						dp[i + 1][j + 1] = dp[i][j] + (weather[i] * distance[j]);
					}
					else {
						if (dp[i + 1][j + 1] > dp[i][j] + (weather[i] * distance[j])) {
							dp[i + 1][j + 1] = dp[i][j] + (weather[i] * distance[j]);
						}
					}
				}
			}
		}
	}

	printf("%d\n", dp[day][city_number] - 1);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   13 |         scanf_s("%d %d", &city_number, &day);
      |         ^~~~~~~
      |         scanf
Language: C++

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

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:12:10: error: expected unqualified-id before numeric constant
   12 | R(i,M){R(0,N+1){
      |          ^
a.cc:2:24: note: in definition of macro 'R'
    2 | #define R(i,n) for(int i=0;i<n;i++)
      |                        ^
a.cc:12:10: error: expected ';' before numeric constant
   12 | R(i,M){R(0,N+1){
      |          ^
a.cc:2:24: note: in definition of macro 'R'
    2 | #define R(i,n) for(int i=0;i<n;i++)
      |                        ^
a.cc:12:10: error: lvalue required as left operand of assignment
   12 | R(i,M){R(0,N+1){
      |          ^
a.cc:2:24: note: in definition of macro 'R'
    2 | #define R(i,n) for(int i=0;i<n;i++)
      |                        ^
a.cc:2:31: error: expected ')' before ';' token
    2 | #define R(i,n) for(int i=0;i<n;i++)
      |                   ~           ^
a.cc:12:8: note: in expansion of macro 'R'
   12 | R(i,M){R(0,N+1){
      |        ^
a.cc:12:10: error: lvalue required as increment operand
   12 | R(i,M){R(0,N+1){
      |          ^
a.cc:2:32: note: in definition of macro 'R'
    2 | #define R(i,n) for(int i=0;i<n;i++)
      |                                ^
Language: C++

#include <cstdio>
#define k 1024
#define r(i,a) for(int i=1;i<=a;i++)
#define s(a) scanf("%d",&a);
#define m(a,b) a<b?a:b
int n,m,c[k],d[k],p[k];
int main(){
	s(n),s(m);
	r(i,n)s(c[i])
	r(i,m)s(d[i])
	r(i,n)p[i]=1<<30;
	p[1]=0;
	r(i,m)r(j,n)p[n-j]=m(p[n-j],p[n-j-1]+c[i]*d[j]);
	printf("%d\n",p[n]);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected primary-expression before ',' token
    8 |         s(n),s(m);
      |             ^
Language: C++

#include <cstdio>
#define k 1024
#define r(a) for(int i=0;i<a;i++)
#define s(a) scanf("%d",&a);
#define m(a,b) a<b?a:b
int w,n,m,c[k],d[k],p[k];
int main(){
	s(n)s(m)
	r(n)s(d[i])
	r(m)s(c[i])
	r(n+1)p[i]=1<<29;
	p[0]=0;
	r(m*n)w=n-i%n,p[n-j]=m(p[w],p[w-1]+c[i/n]*d[w-1]);
	printf("%d\n",p[n]);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:27: error: 'j' was not declared in this scope
   13 |         r(m*n)w=n-i%n,p[n-j]=m(p[w],p[w-1]+c[i/n]*d[w-1]);
      |                           ^
Language: C++

#include <cstdio>
#define k 1024
#define r(a) for(int i=0;i<a;i++)
#define s(a) scanf("%d",&a);
#define m(a,b) a<b?a:b
int n,m,c[k],d[k],p[k];main(w){s(n)s(m)r(n)s(d[i])r(m)s(c[i])r(n+1)p[i]=1e9;p[0]=0;r(m*n)w=n-i%n,p[w]=m(p[w],p[w-1]+c[i/n]*d[w-1]);printf("%d\n",p[n]);}

Compiler output:
a.cc:6:28: error: expected constructor, destructor, or type conversion before '(' token
    6 | int n,m,c[k],d[k],p[k];main(w){s(n)s(m)r(n)s(d[i])r(m)s(c[i])r(n+1)p[i]=1e9;p[0]=0;r(m*n)w=n-i%n,p[w]=m(p[w],p[w-1]+c[i/n]*d[w-1]);printf("%d\n",p[n]);}
      |                            ^
Language: C++

#include <iostream.h>
#define k 1024
#define r(a) for(int i=0;i<a;i++)
#define s(a) cin>>*a;
#define m(a,b) a<b?a:b
int w,n,m,c[k],d[k],p[k];main(){s(&n)s(&m)r(n)s(d+i)r(m)s(c+i)r(n)p[i+1]=1e9;r(m*n)w=n-i%n,p[w]=m(p[w],p[w-1]+c[i/n]*d[w-1]);cout<<p[n]<<endl;}

Compiler output:
a.cc:1:10: fatal error: iostream.h: No such file or directory
    1 | #include <iostream.h>
      |          ^~~~~~~~~~~~
compilation terminated.
Language: C++

#import<stdio>
#define k 1024
#define r(a) for(int i=0;i<a;i++)
#define s(a) scanf("%d",a);
#define m(a,b) a<b?a:b
int w,n,m,c[k],d[k],p[k];main(){s(&n)s(&m)r(n)s(d+i)r(m)s(c+i)r(n)p[i]=1e9;r(m*n)w=i%n,p[w]=m(p[w],p[w+1]+c[i/n]*d[n-w-1]);printf("%d\n",p[0]);}

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<stdio>
      |  ^~~~~~
a.cc:1:8: fatal error: stdio: No such file or directory
    1 | #import<stdio>
      |        ^~~~~~~
compilation terminated.
Language: C++

#import<cstdio>
#define k 1024
#define r(a) for(int i=0;i<a;i++)
#define s(a) scanf("%d",a);
#define m(a,b) a<b?a:b
main(w,n,m,c[k],d[k],p[k]){s(&n)s(&m)r(n)s(d+i)r(m)s(c+i)r(n)p[i]=1e9;r(m*n)w=i%n,p[w]=m(p[w],p[w+1]+c[i/n]*d[n-w-1]);printf("%d\n",p[0]);}

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<cstdio>
      |  ^~~~~~
a.cc:6:5: error: expected constructor, destructor, or type conversion before '(' token
    6 | main(w,n,m,c[k],d[k],p[k]){s(&n)s(&m)r(n)s(d+i)r(m)s(c+i)r(n)p[i]=1e9;r(m*n)w=i%n,p[w]=m(p[w],p[w+1]+c[i/n]*d[n-w-1]);printf("%d\n",p[0]);}
      |     ^