Language: C

a[]={2,3,5,10,12,15},b[]={380,550,850,1520,1870,2244},m[51];main(n,d,T){for(n=1;++n<51;)for(m[n]=1e5,d=5;~d;d--)a[d]<=n&&m[n]>(T=m[n-a[d]]+b[d])&&m[n]=T;for(;~scanf("%d",&n);)n&&printf("%d\n",m[n/100]);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a[]={2,3,5,10,12,15},b[]={380,550,850,1520,1870,2244},m[51];main(n,d,T){for(n=1;++n<51;)for(m[n]=1e5,d=5;~d;d--)a[d]<=n&&m[n]>(T=m[n-a[d]]+b[d])&&m[n]=T;for(;~scanf("%d",&n);)n&&printf("%d\n",m[n/100]);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:22: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a[]={2,3,5,10,12,15},b[]={380,550,850,1520,1870,2244},m[51];main(n,d,T){for(n=1;++n<51;)for(m[n]=1e5,d=5;~d;d--)a[d]<=n&&m[n]>(T=m[n-a[d]]+b[d])&&m[n]=T;for(;~scanf("%d",&n);)n&&printf("%d\n",m[n/100]);}
      |                      ^
main.c:1:55: error: type defaults to 'int' in declaration of 'm' [-Wimplicit-int]
    1 | a[]={2,3,5,10,12,15},b[]={380,550,850,1520,1870,2244},m[51];main(n,d,T){for(n=1;++n<51;)for(m[n]=1e5,d=5;~d;d--)a[d]<=n&&m[n]>(T=m[n-a[d]]+b[d])&&m[n]=T;for(;~scanf("%d",&n);)n&&printf("%d\n",m[n/100]);}
      |                                                       ^
main.c:1:61: error: return type defaults to 'int' [-Wimplicit-int]
    1 | a[]={2,3,5,10,12,15},b[]={380,550,850,1520,1870,2244},m[51];main(n,d,T){for(n=1;++n<51;)for(m[n]=1e5,d=5;~d;d--)a[d]<=n&&m[n]>(T=m[n-a[d]]+b[d])&&m[n]=T;for(;~scanf("%d",&n);)n&&printf("%d\n",m[n/100]);}
      |                                                             ^~~~
main.c: In function 'main':
main.c:1:61: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:1:61: error: type of 'd' defaults to 'int' [-Wimplicit-int]
main.c:1:61: error: type of 'T' defaults to 'int' [-Wimplicit-int]
main.c:1:151: error: lvalue required as left operand of assignment
    1 | a[]={2,3,5,10,12,15},b[]={380,550,850,1520,1870,2244},m[51];main(n,d,T){for(n=1;++n<51;)for(m[n]=1e5,d=5;~d;d--)a[d]<=n&&m[n]>(T=m[n-a[d]]+b[d])&&m[n]=T;for(;~scanf("%d",&n);)n&&printf("%d\n",m[n/100]);}
      |                                                                                                                                                       ^
main.c:1:160: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | a[]={2,3,5,10,12,15},b[]={380,550,850,1520,1870,2244},m[51];main(n,d,T){for(n=1;++n<51;)for(m[n]=1e5,d=5;~d;d--)a[d]<=n&&m[n]>(T=m[n-a[d]]+b[d])&&m[n]=T;for(;~scanf("%d",&n);)n&&printf("%d\n",m[n/100]);}
      |                                                                                                                                                                ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a[]={2,3,5,10,12,15},b[]={380,550,850,1520,1870,2244},m[51];main(n,d,T){for(n=1;++n<51;)for(m[n]=1e5,d=5;~d;d--)a[d]<=n&&m[n]>(T=m[n-a[d]]+b[d])&&m[n]=T;for(;~scanf("%d",&n);)n&&printf("%d\n",m[n/100]);}
main.c:1:160: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | a[]={2,3,5,10,12,15},b[]={380,550,850,1520,1870,2244},m[51];main(n,d,T){for(n=1;++n<51;)for(m[n]=1e5,d=5;~d;d--)a[d]<=n&&m[n]>(T=m[n-a[d]]+b[d])&&m[n]=T;for(;~scanf("%d",&n);)n&&printf("%d\n",m[n/100]);}
      |                                                                                                                                                                ^~~~~
main.c:1:160: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:179: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | a[]={2,3,5,10,12,15},b[]={380,550,850,1520,1870,2244},m[51];main(n,d,T){for(n=1;++n<51;)for(m[n]=1e5,d=5;~d;d--)a[d]<=n&&m[n]>(T=m[n-a[d]]+b[d])&&m[n]=T;for(;~scanf("%d",&n);)n&&printf("%d\n",m[n/100]);}
      |                                                                                                                                                                                   ^~~~~~
main.c:1:179: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:179: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:179: note: include '<stdio.h>' or provide a declaration of 'printf'