criyle/codenet-compile-errors huggingface dataset:
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
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<cstdio>
      |  ^~~~~~
a.cc:6:26: error: 'main' does not name a type
    6 | 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]);}
      |                          ^~~~
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,
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:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<cstdio>
      |  ^~~~~~
a.cc:6:26: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | 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]);}
      |                          ^~~~
a.cc: In function 'int main()':
a.cc:6:118: error: expected primary-expression before ';' token
    6 | 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]);}
      |                                                                                                                      ^
a.cc:6:118: error: expected ':' before ';' token
a.cc:6:118: error: expected primary-expression before ';' token
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:
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:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<cstdio>
      |  ^~~~~~
a.cc:6:26: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | 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]);}
      |                          ^~~~
a.cc: In function 'int main()':
a.cc:6:118: error: expected primary-expression before ';' token
    6 | 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]);}
      |                                                                                                                      ^
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
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:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<cstdio>
      |  ^~~~~~
a.cc:6:26: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | 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]);}
      |                          ^~~~
a.cc: In function 'int main()':
a.cc:6:118: error: expected ':' before ';' token
    6 | 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]);}
      |                                                                                                                      ^
a.cc:6:118: error: expected primary-expression before ';' token
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) if(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:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<cstdio>
      |  ^~~~~~
a.cc:6:26: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | 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]);}
      |                          ^~~~
a.cc: In function 'int main()':
a.cc:5:16: error: expected primary-expression before 'if'
    5 | #define m(a,b) if(a>b)a=b
      |                ^~
a.cc:6:88: note: in expansion of macro 'm'
    6 | 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]);}
      |                                                                                        ^
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:
a.cc:5:5: error: expected constructor, destructor, or type conversion 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:
a.cc:5:26: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    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]);}
      |                          ^~~~
a.cc: In function 'int main()':
a.cc:3:14: error: 'scanf' was not declared in this scope
    3 | #define s(a) scanf("%d",a);
      |              ^~~~~
a.cc: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]);}
      |                                 ^
a.cc:5:119: error: 'printf' was not declared in this scope
    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]);}
      |                                                                                                                       ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #define k 1024
Language: C++

#define k 1024
#define r(a) for(i=0;i<a;i++)
#define s(a) scanf("%d",a);
#define m(a,b) a=a<b?a:b
main(i,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]),exit(0);}

Compiler output:
a.cc:5:5: error: expected constructor, destructor, or type conversion before '(' token
    5 | main(i,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]),exit(0);}
      |     ^
Language: C++

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

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<cstdio>
      |  ^~~~~~
a.cc:6:21: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | int w,n,m,d[k],p[k];main(){s(&n)s(&m)r(n)s(d+i)r(n)p[i]=1e9;r(m){s(&w)r(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",p[0]),exit(0);}
      |                     ^~~~
a.cc: In function 'int main()':
a.cc:6:122: error: 'exit' was not declared in this scope
    6 | int w,n,m,d[k],p[k];main(){s(&n)s(&m)r(n)s(d+i)r(n)p[i]=1e9;r(m){s(&w)r(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",p[0]),exit(0);}
      |                                                                                                                          ^~~~
a.cc:2:1: note: 'exit' is defined in header '<cstdlib>'; this is probably fixable by adding '#include <cstdlib>'
    1 | #import<cstdio>
  +++ |+#include <cstdlib>
    2 | #define k 1024
Language: C++

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

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<cstdio>
      |  ^~~~~~
a.cc:5:25: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | int w,n,m,d[999],p[999];main(){n=sm=ssr(n)d[i]=sr(n)p[i]=1e9;r(m){sr(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p);}
      |                         ^~~~
a.cc: In function 'int main()':
a.cc:5:34: error: 'sm' was not declared in this scope; did you mean 'm'?
    5 | int w,n,m,d[999],p[999];main(){n=sm=ssr(n)d[i]=sr(n)p[i]=1e9;r(m){sr(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p);}
      |                                  ^~
      |                                  m
a.cc:5:37: error: 'ssr' was not declared in this scope
    5 | int w,n,m,d[999],p[999];main(){n=sm=ssr(n)d[i]=sr(n)p[i]=1e9;r(m){sr(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p);}
      |                                     ^~~
a.cc:5:67: error: 'sr' was not declared in this scope; did you mean 'r'?
    5 | int w,n,m,d[999],p[999];main(){n=sm=ssr(n)d[i]=sr(n)p[i]=1e9;r(m){sr(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p);}
      |                                                                   ^~
      |                                                                   r
Language: C++

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

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<cstdio>
      |  ^~~~~~
a.cc:5:18: error: storage size of 'p' isn't known
    5 | int w,n,m,d[999],p[];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p);}
      |                  ^
a.cc:5:22: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | int w,n,m,d[999],p[];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p);}
      |                      ^~~~
Language: C++

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

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

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

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<cstdio>
      |  ^~~~~~
a.cc:3:16: error: expected ',' or ')', found "("
    3 | #define s(scanf("%d",&w),w)
      |                ^
a.cc:5:25: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p);}
      |                         ^~~~
a.cc: In function 'int main()':
a.cc:5:34: error: 's' was not declared in this scope
    5 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p);}
      |                                  ^
Language: C++

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

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<cstdio>#define r(a)for(int i=0;i<a;i++)#define s (scanf("%d",&w),w)#define c(a,b)a=a<b?a:b
      |  ^~~~~~
a.cc:1:16: warning: extra tokens at end of #import directive
    1 | #import<cstdio>#define r(a)for(int i=0;i<a;i++)#define s (scanf("%d",&w),w)#define c(a,b)a=a<b?a:b
      |                ^
a.cc:2:25: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p);}
      |                         ^~~~
a.cc: In function 'int main()':
a.cc:2:34: error: 's' was not declared in this scope
    2 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p);}
      |                                  ^
a.cc:2:40: error: 'r' was not declared in this scope
    2 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p);}
      |                                        ^
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[99];main(i,j,w,n,m){n=s;m=s;r(n,i)d[i]=s;r(n,i)p[i]=1e9;r(m,j){s;r(n,i)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p),exit(0);}

Compiler output:
a.cc:4:1: error: 'd' does not name a type
    4 | d[999],p[99];main(i,j,w,n,m){n=s;m=s;r(n,i)d[i]=s;r(n,i)p[i]=1e9;r(m,j){s;r(n,i)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p),exit(0);}
      | ^
a.cc:4:18: error: expected constructor, destructor, or type conversion before '(' token
    4 | d[999],p[99];main(i,j,w,n,m){n=s;m=s;r(n,i)d[i]=s;r(n,i)p[i]=1e9;r(m,j){s;r(n,i)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p),exit(0);}
      |                  ^
Language: C++

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

Compiler output:
a.cc:4:1: error: 'd' does not name a type
    4 | d[999],p[999];main(i,j,w,n,m){n=s;m=s;r(n,i)d[i]=s;r(n,i)p[i]=1e9;r(m,j){s;r(n,i)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p),exit(0);}
      | ^
a.cc:4:19: error: expected constructor, destructor, or type conversion before '(' token
    4 | d[999],p[999];main(i,j,w,n,m){n=s;m=s;r(n,i)d[i]=s;r(n,i)p[i]=1e9;r(m,j){s;r(n,i)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p),exit(0);}
      |                   ^
Language: C++

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

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<cstdio>
      |  ^~~~~~
a.cc:2:11: error: stray '#' in program
    2 | #define D #define
      |           ^
a.cc:3:1: note: in expansion of macro 'D'
    3 | D r(a)for(int i=0;i<a;i++)
      | ^
a.cc:2:11: error: stray '#' in program
    2 | #define D #define
      |           ^
a.cc:4:1: note: in expansion of macro 'D'
    4 | D s (scanf("%d",&w),w)
      | ^
a.cc:2:11: error: stray '#' in program
    2 | #define D #define
      |           ^
a.cc:5:1: note: in expansion of macro 'D'
    5 | D c(a,b)a=a<b?a:b
      | ^
a.cc:2:12: error: 'define' does not name a type
    2 | #define D #define
      |            ^~~~~~
a.cc:3:1: note: in expansion of macro 'D'
    3 | D r(a)for(int i=0;i<a;i++)
      | ^
a.cc:3:19: error: 'i' does not name a type
    3 | D r(a)for(int i=0;i<a;i++)
      |                   ^
a.cc:3:23: error: 'i' does not name a type
    3 | D r(a)for(int i=0;i<a;i++)
      |                       ^
a.cc:6:25: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p);}
      |                         ^~~~
a.cc: In function 'int main()':
a.cc:6:32: error: 'n' was not declared in this scope
    6 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p);}
      |                                ^
a.cc:6:34: error: 's' was not declared in this scope
    6 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p);}
      |                                  ^
a.cc:6:36: error: 'm' was not declared in this scope
    6 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p);}
      |                                    ^
a.cc:6:40: error: 'r' was not declared in this scope
    6 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p);}
      |                                        ^
a.cc:6:117: error: 'p' was not declared in this scope
    6 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p);}
      |                                                                                                                     ^
Language: C++

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

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<iostream>
      |  ^~~~~~
a.cc:5:25: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p);}
      |                         ^~~~
a.cc: In function 'int main()':
a.cc:3:19: error: cannot convert 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int' in assignment
    3 | #define s std::cin>>w;
      |           ~~~~~~~~^~~
      |                   |
      |                   std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
a.cc:5:34: note: in expansion of macro 's'
    5 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p);}
      |                                  ^
a.cc:3:19: error: cannot convert 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int' in assignment
    3 | #define s std::cin>>w;
      |           ~~~~~~~~^~~
      |                   |
      |                   std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
a.cc:5:38: note: in expansion of macro 's'
    5 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p);}
      |                                      ^
a.cc:3:19: error: cannot convert 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int' in assignment
    3 | #define s std::cin>>w;
      |           ~~~~~~~~^~~
      |                   |
      |                   std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
a.cc:5:49: note: in expansion of macro 's'
    5 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*p);}
      |                                                 ^
Language: C++

#import<algo.h>
#define r(a)for(int i=0;i<a;i++)
#define s (cin>>w,w)
#define c(a,b)a=a<b?a:b
int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}cout<<*p<<"\n";}

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

#import<ios>
#define r(a)for(int i=0;i<a;i++)
#define s (cin>>w,w)
#define c(a,b)a=a<b?a:b
int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}cout<<*p<<"\n";}

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<ios>
      |  ^~~~~~
a.cc:5:25: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}cout<<*p<<"\n";}
      |                         ^~~~
a.cc: In function 'int main()':
a.cc:3:12: error: 'cin' was not declared in this scope
    3 | #define s (cin>>w,w)
      |            ^~~
a.cc:5:34: note: in expansion of macro 's'
    5 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}cout<<*p<<"\n";}
      |                                  ^
a.cc:5:102: error: 'cout' was not declared in this scope
    5 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}cout<<*p<<"\n";}
      |                                                                                                      ^~~~
Language: C++

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

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<ios>
      |  ^~~~~~
a.cc:5:25: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*w);}
      |                         ^~~~
a.cc: In function 'int main()':
a.cc:5:116: error: invalid type argument of unary '*' (have 'int')
    5 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i],p[i+1]+w*d[n-i-1]);}printf("%d\n",*w);}
      |                                                                                                                    ^~
Language: C++

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

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<cstdio>
      |  ^~~~~~
a.cc:5:25: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i-1],p[i]+w*d[n-i+1]);}printf("%d\n",*w);}
      |                         ^~~~
a.cc: In function 'int main()':
a.cc:5:116: error: invalid type argument of unary '*' (have 'int')
    5 | int w,n,m,d[999],p[999];main(){n=s;m=s;r(n)d[i]=s;r(n)p[i]=1e9;r(m){s;r(n)c(p[i-1],p[i]+w*d[n-i+1]);}printf("%d\n",*w);}
      |                                                                                                                    ^~
Language: C++

#include <iostream>
#include<math.h>
using namespace std;
int kyori[1000];
int tennki[1000];
long long int dp[1000];
int main() {
	int n,m;
	cin>>n>>m;
	for(int i=0;i<n;i++){
		cin>>kyori[i];
	}
	for(int i=0;i<m;i++){
		cin>>tennki[i];
	}
	for(int i=0;i<1000;i++){
		dp[i]=-1;
	}
	for(int day=0;day<m;day++){
		for(int city =n-1;city>=0;city--){
			if(city==0){
				if(dp[city]==-1){dp[city]=kyori[city]*tennki[day];}
				else{dp[city]=min(dp[city],kyori[city]*tennki[day]);}
			}
			else{
				if(dp[city]==-1&&dp[city-1]!=-1){dp[city]=dp[city-1]+(kyori[city]*tennki[day]);}
				else{dp[city]=min(dp[city],dp[city-1]+(kyori[city]*tennki[day]));}
			}
		}
	}
	cout<<dp[n-1]<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:50: error: no matching function for call to 'min(long long int&, int)'
   23 |                                 else{dp[city]=min(dp[city],kyori[city]*tennki[day]);}
      |                                               ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:23:50: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   23 |                                 else{dp[city]=min(dp[city],kyori[city]*tennki[day]);}
      |                                               ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef lli long long int;

int d[1000], c[1000];
int n, m;

lli memo[1000][1000];

lli rec(int i, int j)
{
	if (j == n) return 0;

	if (memo[i][j] >= 0) return memo[i][j];

	lli res;

	if (m - j >= n - i) {
		res = rec(i + 1, j + 1) + d[i] * c[i];
	} else {
		res = min(rec(i + 1, j + 1) + d[i] * c[i], rec(i + 1, j));
	}

	return dp[i][j] = res;
}

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];

	memset(memo, -1, sizeof(memo));

	printf("%lldd\n", rec(0, 0));
}

Compiler output:
a.cc:5:9: error: 'lli' does not name a type
    5 | typedef lli long long int;
      |         ^~~
a.cc:10:1: error: 'lli' does not name a type
   10 | lli memo[1000][1000];
      | ^~~
a.cc:12:1: error: 'lli' does not name a type
   12 | lli rec(int i, int j)
      | ^~~
a.cc: In function 'int main()':
a.cc:37:16: error: 'memo' was not declared in this scope
   37 |         memset(memo, -1, sizeof(memo));
      |                ^~~~
a.cc:39:27: error: 'rec' was not declared in this scope
   39 |         printf("%lldd\n", rec(0, 0));
      |                           ^~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long int lli;

int d[1000], c[1000];
int n, m;

lli memo[1000][1000];

lli rec(int i, int j)
{
	if (j == n) return 0;

	if (memo[i][j] >= 0) return memo[i][j];

	lli res;

	if (m - j >= n - i) {
		res = rec(i + 1, j + 1) + d[i] * c[i];
	} else {
		res = min(rec(i + 1, j + 1) + d[i] * c[i], rec(i + 1, j));
	}

	return dp[i][j] = res;
}

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];

	memset(memo, -1, sizeof(memo));

	printf("%lldd\n", rec(0, 0));
}

Compiler output:
a.cc: In function 'lli rec(int, int)':
a.cc:26:16: error: 'dp' was not declared in this scope; did you mean 'dup'?
   26 |         return dp[i][j] = res;
      |                ^~
      |                dup
Language: C++

#include <bits/stdc++.h>

using namespace std;

int n, m;
int d[1000];
int c[1000];

int memo[1000][1000];

int rec(int day, int now)
{
	if (now == n) return 0;

	if (memo[day][now] >= 0) return memo[day][now];

	lli res;

	if (n - now < m - day) {
		res = min(rec(day + 1, now + 1) + d[now] * c[day], rec(day + 1, now));
	} else {
		res = rec(day + 1, now + 1) + d[now] * c[day];
	}

	return memo[day][now] = res;
}

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];
	}

	memset(memo, -1, sizeof(memo));

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

Compiler output:
a.cc: In function 'int rec(int, int)':
a.cc:17:9: error: 'lli' was not declared in this scope
   17 |         lli res;
      |         ^~~
a.cc:20:17: error: 'res' was not declared in this scope; did you mean 'rec'?
   20 |                 res = min(rec(day + 1, now + 1) + d[now] * c[day], rec(day + 1, now));
      |                 ^~~
      |                 rec
a.cc:22:17: error: 'res' was not declared in this scope; did you mean 'rec'?
   22 |                 res = rec(day + 1, now + 1) + d[now] * c[day];
      |                 ^~~
      |                 rec
a.cc:25:33: error: 'res' was not declared in this scope; did you mean 'rec'?
   25 |         return memo[day][now] = res;
      |                                 ^~~
      |                                 rec
Language: C++

#include <stdio.h>
#include <algorithm>
using namespace std;
const int MAX_N=1000;
const int MAX_M=1000;
const int INF=10000000;
int  dp[MAX_M+1][MAX_N+1];
int dis[MAX_N];
int wea[MAX_M];
int n,m;
int rec(int i,int j){
	if(dp[i][j]>=0){
		return dp[i][j];
	}
   int res;

   if(j==n){
	   return 0;
   }
   if(i==m){
   	   return INF;
      }
   else{
   res=min(rec(i+1,j),rec(i+1,j+1)+wea[i]*dis[j]);
   }
   return dp[i][j]=res;
}
int main(){
	scanf("%d%d",&n,&m);
	for(int i=0;i<n;i++){
		scanf("%d",&dis[i]);
	}
	for(int i=0;i<m;i++){
		scanf("%d",&wea[i]);
	}
	memset(dp,-1,sizeof(dp));

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:9: error: 'memset' was not declared in this scope
   36 |         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 | using namespace std;
Language: C++

#include <iostream>
using namespace std;
#include <cstring>
#include <algorithm>
#define INF 1<<29
int dp[1000][1000];

int main(void){

	int n, m;
	cin >> n >> m;

	int d[1000];
	for (int i = 0; i < n; i++)
		cin >> d[i];

	int c[1000];
	for (int i = 0; i < m; i++)
		cin >> c[i];

	for (int i = 0; i <= m; i++) dp[0][i] = 0;
	for (int i = 0; i <= n; i++) dp[i][0] = INF;
	for (int i = 1; i <= n; i++){
		for (int j = 1; j <= m; j++){
			do[i][j] = INF;
			dp[i][j] = min(dp[i][j - 1], dp[i - 1][j - 1] + d[i - 1] * c[j - 1]);
		}
	}

	cout << dp[n][m] << endl;
}

Compiler output:
a.cc: In lambda function:
a.cc:25:30: error: expected '{' before '[' token
   25 |                         do[i][j] = INF;
      |                              ^
a.cc: In function 'int main()':
a.cc:25:30: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')
a.cc:26:25: error: expected 'while' before 'dp'
   26 |                         dp[i][j] = min(dp[i][j - 1], dp[i - 1][j - 1] + d[i - 1] * c[j - 1]);
      |                         ^~
a.cc:26:25: error: expected '(' before 'dp'
   26 |                         dp[i][j] = min(dp[i][j - 1], dp[i - 1][j - 1] + d[i - 1] * c[j - 1]);
      |                         ^~
      |                         (
a.cc:26:93: error: expected ')' before ';' token
   26 |                         dp[i][j] = min(dp[i][j - 1], dp[i - 1][j - 1] + d[i - 1] * c[j - 1]);
      |                         ~~                                                                  ^
      |                                                                                             )
Language: C++

#include<stdio.h>
long long int as[1001][1001];
int main(void)
{
	long long int a,b,x[1001],s[1001],A=9223372036854775800,min=9223372036854775800,i,j;
	scanf("%lld %lld",&a,&b);
	for(i=1;i<=a;i++){
		scanf("%lld",&x[i]);
	}
	for(i=1;i<=b;i++){
		scanf("%lld",&s[i]);
	}
	for(i=0;i<=b;i++){
		for(j=0;j<=a;j++){
			as[i][j]=A;
		}
	}
	as[0][0]=0;
	for(i=0;i<b;i++){
		for(j=0;j<=a;j++){
			if(as[i][j]!=A){
				if(as[i+1][j]>as[i][j]){
					as[i+1][j]=as[i][j];
				}
                if(as[i+1][j+1]>as[i][j]+x[j+1]*s[i+1]){
					as[i+1][j+1]=as[i][j]+x[j+1]*s[i+1];
				}
			}
		}
	}
/*	for(i=0;i<=b;i++){
		for(j=0;j<=a;j++) printf("%d ",as[i][j]);
		printf("\n");
	}*/
	for(i=0;i<=b;i++){
		if(as[i][a]<min){
			min=as[i][a];
		}
	}
	printf("%lld\n",min);
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:41:18: error: expected '}' at end of input
   41 |         return 0;
      |                  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<iostream>
#include<algorithm>
using namespaces td;
int n,m,a[1000],b[1000],dp[1000][1000];
int main(){
	for(int i=0;i<1000000;i++)dp[i/1000][i%1000]=1000000007;
	cin>>n>>m;for(int i=0;i<n;i++)cin>>a[i];
	for(int i=0;i<m;i++)cin>>b[i];
	dp[0][0]=0;
	for(int i=0;i<m;i++){
		for(int j=0;j<=n;j++){
			dp[i+1][j+1]=min(dp[i+1][j+1],dp[i][j]+a[i]*b[j]);
			dp[i+1][j]=min(dp[i+1][j],dp[i][j]);
		}
	}
	cout<<dp[m][n]<<endl;
	return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namespaces'
    3 | using namespaces td;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin>>n>>m;for(int i=0;i<n;i++)cin>>a[i];
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:38: error: 'min' was not declared in this scope; did you mean 'std::min'?
   12 |                         dp[i+1][j+1]=min(dp[i+1][j+1],dp[i][j]+a[i]*b[j]);
      |                                      ^~~
      |                                      std::min
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:16:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |         cout<<dp[m][n]<<endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |         cout<<dp[m][n]<<endl;
      |                         ^~~~
      |                         std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

lude <bits/stdc++.h>
#define MAX 100000000;
#define r(i,n) for(int i=0;i<n;i++)
using namespace std;
int main(){
	int qa,b;
	cin>>a>>b;
	int dp[a+1][b+1],a1[a+1],b1[b+1];
	r(i,a)cin>>a1[i+1];
	r(i,b)cin>>b1[i+1];
	r(i,a+1)(j,b+1)dp[i][j]=MAX;
	for(int i=1;i<=a;i++)
		for(int j=1;j<=b;j++){
			dp[i][j]=min(dp[i-1][j-1]+a1[i]*b1[j],dp[i][j-1]);
		}
	cout<<dp[a][b]<<endl;
}

Compiler output:
a.cc:1:1: error: 'lude' does not name a type
    1 | lude <bits/stdc++.h>
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin>>a>>b;
      |         ^~~
a.cc:7:14: error: 'a' was not declared in this scope
    7 |         cin>>a>>b;
      |              ^
a.cc:9:20: error: 'a1' was not declared in this scope; did you mean 'b1'?
    9 |         r(i,a)cin>>a1[i+1];
      |                    ^~
      |                    b1
a.cc:11:18: error: 'j' was not declared in this scope
   11 |         r(i,a+1)(j,b+1)dp[i][j]=MAX;
      |                  ^
a.cc:14:25: error: 'dp' was not declared in this scope
   14 |                         dp[i][j]=min(dp[i-1][j-1]+a1[i]*b1[j],dp[i][j-1]);
      |                         ^~
a.cc:14:51: error: 'a1' was not declared in this scope; did you mean 'b1'?
   14 |                         dp[i][j]=min(dp[i-1][j-1]+a1[i]*b1[j],dp[i][j-1]);
      |                                                   ^~
      |                                                   b1
a.cc:14:34: error: 'min' was not declared in this scope; did you mean 'main'?
   14 |                         dp[i][j]=min(dp[i-1][j-1]+a1[i]*b1[j],dp[i][j-1]);
      |                                  ^~~
      |                                  main
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout<<dp[a][b]<<endl;
      |         ^~~~
a.cc:16:15: error: 'dp' was not declared in this scope
   16 |         cout<<dp[a][b]<<endl;
      |               ^~
a.cc:16:25: error: 'endl' was not declared in this scope
   16 |         cout<<dp[a][b]<<endl;
      |                         ^~~~
Language: C++

#include <bits/stdc++.h>
#define MAX 100000000;
#define r(i,n) for(int i=0;i<n;i++)
using namespace std;
int main(){
	int qa,b;
	cin>>a>>b;
	int dp[a+1][b+1],a1[a+1],b1[b+1];
	r(i,a)cin>>a1[i+1];
	r(i,b)cin>>b1[i+1];
	r(i,a+1)(j,b+1)dp[i][j]=MAX;
	for(int i=1;i<=a;i++)
		for(int j=1;j<=b;j++){
			dp[i][j]=min(dp[i-1][j-1]+a1[i]*b1[j],dp[i][j-1]);
		}
	cout<<dp[a][b]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'a' was not declared in this scope
    7 |         cin>>a>>b;
      |              ^
a.cc:9:20: error: 'a1' was not declared in this scope; did you mean 'b1'?
    9 |         r(i,a)cin>>a1[i+1];
      |                    ^~
      |                    b1
a.cc:11:18: error: 'j' was not declared in this scope
   11 |         r(i,a+1)(j,b+1)dp[i][j]=MAX;
      |                  ^
a.cc:14:25: error: 'dp' was not declared in this scope; did you mean 'dup'?
   14 |                         dp[i][j]=min(dp[i-1][j-1]+a1[i]*b1[j],dp[i][j-1]);
      |                         ^~
      |                         dup
a.cc:14:51: error: 'a1' was not declared in this scope; did you mean 'b1'?
   14 |                         dp[i][j]=min(dp[i-1][j-1]+a1[i]*b1[j],dp[i][j-1]);
      |                                                   ^~
      |                                                   b1
a.cc:16:15: error: 'dp' was not declared in this scope; did you mean 'dup'?
   16 |         cout<<dp[a][b]<<endl;
      |               ^~
      |               dup
Language: C++

#include <bits/stdc++.h>
#define MAX 100000000;
#define r(i,n) for(int i=0;i<n;i++)
using namespace std;
int main(){
	int a,b;
	cin>>a>>b;
	int dp[a+1][b+1],a1[a+1],b1[b+1];
	r(i,a)cin>>a1[i+1];
	r(i,b)cin>>b1[i+1];
	r(i,a+1)(j,b+1)dp[i][j]=MAX;
	for(int i=1;i<=a;i++)
		for(int j=1;j<=b;j++){
			dp[i][j]=min(dp[i-1][j-1]+a1[i]*b1[j],dp[i][j-1]);
		}
	cout<<dp[a][b]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: 'j' was not declared in this scope
   11 |         r(i,a+1)(j,b+1)dp[i][j]=MAX;
      |                  ^
Language: C++

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

int dp[1050][1050];
int N,M;
int C[1050],D[1050];
int main()
{
	for(int i=0;i<1050;i++)
	{
		for(int j=0;j<1050;j++)
		{
			dp[i][j]=INF;
		}
	}
	cin >> N >> M;
	for(int i=0;i<N;i++)cin >> D[i];
	for(int i=0;i<M;i++)cin >> C[i];
	dp[0][0]=0;
	for(int i=0;i<M;i++)
	{
		for(int j=0;j<N;j++)
		{
			if(dp[i][j]==INF)continue;
			dp[i+1][j+1]=min(dp[i+1][j+1],dp[i][j]+C[i]*D[j]);
			dp[i+1][j]=min(dp[i+1][j],dp[i][j]);
		}
	}
	int ans = INF;
	for(int i=0;i<=M;i++)ans = min(ans,dp[i][N]);
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:34: error: 'INF' was not declared in this scope
   15 |                         dp[i][j]=INF;
      |                                  ^~~
a.cc:26:38: error: 'INF' was not declared in this scope
   26 |                         if(dp[i][j]==INF)continue;
      |                                      ^~~
a.cc:31:19: error: 'INF' was not declared in this scope
   31 |         int ans = INF;
      |                   ^~~
Language: C++

#include"bits/stdc++.h"
//typedef ll long long
using namespace std;
int d[1001],c[1001];
int n,m;
int minx=9999999;
void sugii(int,long long,int,int);
int main(){
	cin>>n>>m;
	for(int i=1;i<=n;i++){
		cin>>d[i];
	}
	for(int i=1;i<=m;i++){
		cin>>c[i];
	}
	sugii(1,0,1,1);
	cout<<minx<<endl;
	
}
void sugii(int sumnichi,long long hirou ,int n2,int m2){
	if(n2==n+1){
		minx=min(minx,hirou);
		//cout<<hirou<<endl;
	}
	
	if(m2<=m&&n2<=n){
		sugii(sumnichi+1, hirou+(d[n2]*c[m2]),n2+1,m2+1);
		sugii(sumnichi+1,hirou,n2,m2+1);
	}
}

Compiler output:
a.cc: In function 'void sugii(int, long long int, int, int)':
a.cc:22:25: error: no matching function for call to 'min(int&, long long int&)'
   22 |                 minx=min(minx,hirou);
      |                      ~~~^~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:22:25: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   22 |                 minx=min(minx,hirou);
      |                      ~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:22:25: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   22 |                 minx=min(minx,hirou);
      |                      ~~~^~~~~~~~~~~~
Language: C++

#include"bits/stdc++.h"
using namespace std;
int d[1001],c[1001];
int n,m;
int minx=9999999;
void sugii(int,int,int,int);
int main(){
	cin>>n>>m;
	for(int i=1;i<=n;i++){
		cin>>d[i];
	}
	for(int i=1;i<=m;i++){
		cin>>c[i];
	}
	sugii(1,0,1,1);
	cout<<minx<<endl;
	
}
void sugii(int sumnichi,int hirou ,int n2,int m2){
	if(m-m2<n2)continue;
	if(n2==n+1){
		minx=min(minx,hirou);
		//cout<<hirou<<endl;
	}
	
	if(m2<=m&&n2<=n){
		sugii(sumnichi+1, hirou+(d[n2]*c[m2]),n2+1,m2+1);
		sugii(sumnichi+1,hirou,n2,m2+1);
	}
}

Compiler output:
a.cc: In function 'void sugii(int, int, int, int)':
a.cc:20:20: error: continue statement not within a loop
   20 |         if(m-m2<n2)continue;
      |                    ^~~~~~~~
Language: C++

#include"bits/stdc++.h"
using namespace std;
int d[1001],c[1001];
int n,m;
int minx=9999999;
void sugii(int,int,int,int);
int main(){
    cin>>n>>m;
    for(int i=1;i<=n;i++){
        cin>>d[i];
    }
    for(int i=1;i<=m;i++){
        cin>>c[i];
    }
    sugii(1,0,1,1);
    cout<<minx<<endl;
     
}
void sugii(int sumnichi,int hirou ,int n2,int m2){
	if(m-m2<n2)continue;
    if(n2==n+1){
        minx=min(minx,hirou);
        //cout<<hirou<<endl;
    }
     
    if(m2<=m&&n2<=n){
        sugii(sumnichi+1, hirou+(d[n2]*c[m2]),n2+1,m2+1);
        sugii(sumnichi+1,hirou,n2,m2+1);
    }
}
	if(m-m2<n2)continue;

Compiler output:
a.cc: In function 'void sugii(int, int, int, int)':
a.cc:20:20: error: continue statement not within a loop
   20 |         if(m-m2<n2)continue;
      |                    ^~~~~~~~
a.cc: At global scope:
a.cc:31:9: error: expected unqualified-id before 'if'
   31 |         if(m-m2<n2)continue;
      |         ^~
Language: C++

$routes=[]
$distance=[]
$condition=[]
def counter
  count = 0
  ->{
    count += 1
    return count
  }
end

def get_fatigue (now,m,n,now_place)
  inner=[]
  now.upto(m-n+now) do |i|
    inner.push($distance[now_place]*$condition[i-1])#疲労度
  end
  $routes.push(inner)
end

a=gets.split("\s")
n=a[0].to_i
m=a[1].to_i
n.times do $distance.push(gets.chomp.to_i) end
  m.times do $condition.push(gets.chomp.to_i) end

    c=counter
    n.times do |i|
      get_fatigue(c.call,m,n,i)
    end
    0.upto(m-n) do |y|
      0.upto(n-1) do |x|
        if x>0 && y>0  then
          if $routes[x-1][y]+$routes[x][y]>$routes[x][y-1] then
            $routes[x][y]=$routes[x][y-1]
          else
            $routes[x][y]+= $routes[x-1][y]
          end
        elsif x>0
          $routes[x][y]+=$routes[x-1][y]
        else
        end
      end
    end
    p $routes[n-1].min



Compiler output:
a.cc:15:53: error: stray '#' in program
   15 |     inner.push($distance[now_place]*$condition[i-1])#疲労度
      |                                                     ^
a.cc:1:1: error: '$routes' does not name a type
    1 | $routes=[]
      | ^~~~~~~
a.cc:10:1: error: 'end' does not name a type
   10 | end
      | ^~~
Language: Java

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

class Main{

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

class Pair{
int x;
int y;
Pair(int x,int y){
this.x=x; this.y=y;
}
}

public staitc 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 h=Integer.parseInt(st.nextToken());
int w=Integer.parseInt(st.nextToken());
int[][] map=new int[h][w];
for(int i=0;i<h;i++){
line=br.readLine();
for(int j=0;j<w;j++){
map[i][j]=(line.charAt(j)=='.')?INF:(int)(line.charAt(j)-'0');
}
}
int cnt=0;
while(true){
if(bfs(h,w,map)) cnt++;
else break;
}
out.println(cnt);
out.flush();
}
}

private static boolean bfs(int h,int w,int[][] map){
Deque<Pair> que=new ArrayDeque<Pair>();
int[][] hmap=new int[h][];
boolean update=false;
for(int i=0;i<h;i++) hmap[i]=map[i].clone();
for(int i=0;i<h;i++){
for(int j=0;j<w;j++){
if(map[i][j]!=INF){
que.offerLast(new Pair(i,j));
}
}
}
while(!que.isEmpty()){
Pair p=que.pollFirst();
int x=p.x;
int y=p.y;
int nx;
int ny;
int cnt=0;
int[] d={-1,0,1};
for(int i=0;i<3;i++){
for(int j=0;j<3;j++){
nx=x+d[i];
ny=y+d[j];
if(hmap[nx][ny]==INF) cnt++;
}
}
if(cnt>=hmap[x][y]){
map[x][y]=INF;
update=true;
}
}
return update;
}
}

Compiler output:
Main.java:19: error: <identifier> expected
public staitc void main(String[] args) throws IOException{
             ^
1 error