Language: C

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

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a[6]={2,3,5,10,12,15},b[6]={380,550,850,1520,1870,2244},m[51],T;
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:23: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a[6]={2,3,5,10,12,15},b[6]={380,550,850,1520,1870,2244},m[51],T;
      |                       ^
main.c:1:57: error: type defaults to 'int' in declaration of 'm' [-Wimplicit-int]
    1 | a[6]={2,3,5,10,12,15},b[6]={380,550,850,1520,1870,2244},m[51],T;
      |                                                         ^
main.c:1:63: error: type defaults to 'int' in declaration of 'T' [-Wimplicit-int]
    1 | a[6]={2,3,5,10,12,15},b[6]={380,550,850,1520,1870,2244},m[51],T;
      |                                                               ^
main.c: In function 's':
main.c:2:5: error: type of 'n' defaults to 'int' [-Wimplicit-int]
    2 | int s(n){int d=5;if(m[n]>9998)for(;~d;d--)if(a[d]<=n){T=s(p,n-a[d])+b[d];if(m[n]>T)m[n]=T;}return m[n];}
      |     ^
main.c:2:59: error: 'p' undeclared (first use in this function)
    2 | int s(n){int d=5;if(m[n]>9998)for(;~d;d--)if(a[d]<=n){T=s(p,n-a[d])+b[d];if(m[n]>T)m[n]=T;}return m[n];}
      |                                                           ^
main.c:2:59: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(n){for(n=1;n<51;n++)m[n]=9999;for(;scanf("%d",&n),n;)printf("%d\n",s(n/100));exit(0);}
      | ^~~~
main.c: In function 'main':
main.c:3:1: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:3:41: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 | main(n){for(n=1;n<51;n++)m[n]=9999;for(;scanf("%d",&n),n;)printf("%d\n",s(n/100));exit(0);}
      |                                         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a[6]={2,3,5,10,12,15},b[6]={380,550,850,1520,1870,2244},m[51],T;
main.c:3:41: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 | main(n){for(n=1;n<51;n++)m[n]=9999;for(;scanf("%d",&n),n;)printf("%d\n",s(n/100));exit(0);}
      |                                         ^~~~~
main.c:3:41: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:59: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    3 | main(n){for(n=1;n<51;n++)m[n]=9999;for(;scanf("%d",&n),n;)printf("%d\n",s(n/100));exit(0);}
      |                                                           ^~~~~~
main.c:3:59: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:3:59: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:3:59: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:3:83: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
    3 | main(n){for(n=1;n<51;n++)m[n]=9999;for(;scanf("%d",&n),n;)printf("%d\n",s(n/100));exit(0);}
      |                                                                                   ^~~~
main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
  +++ |+#include <stdlib.h>
    1 | a[6]={2,3,5,10,12,15},b[6]={380,550,850,1520,1870,2244},m[51],T;
main.c:3:83: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
    3 | main(n){for(n=1;n<51;n++)m[n]=9999;for(;scanf("%d",&n),n;)printf("%d\n",s(n/100));exit(0);}
      |                                                                                   ^~~~
main.c:3:83: note: include '<stdlib.h>' or provide a declaration of 'exit'