Language: C

V[]={1e3,500,100,50,10,5,1};char*R="NEDMYWJ";v,n,s=1e3,r;main(c){for(r=R;c=getchar()+1;s=v)n=c-11?(v=V[strchr(R,c)-r],n+v-s*2*(s<v)):!printf("%d\n",n,v=*V);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | V[]={1e3,500,100,50,10,5,1};char*R="NEDMYWJ";v,n,s=1e3,r;main(c){for(r=R;c=getchar()+1;s=v)n=c-11?(v=V[strchr(R,c)-r],n+v-s*2*(s<v)):!printf("%d\n",n,v=*V);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'V' [-Wimplicit-int]
main.c:1:46: warning: data definition has no type or storage class
    1 | V[]={1e3,500,100,50,10,5,1};char*R="NEDMYWJ";v,n,s=1e3,r;main(c){for(r=R;c=getchar()+1;s=v)n=c-11?(v=V[strchr(R,c)-r],n+v-s*2*(s<v)):!printf("%d\n",n,v=*V);}
      |                                              ^
main.c:1:46: error: type defaults to 'int' in declaration of 'v' [-Wimplicit-int]
main.c:1:48: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
    1 | V[]={1e3,500,100,50,10,5,1};char*R="NEDMYWJ";v,n,s=1e3,r;main(c){for(r=R;c=getchar()+1;s=v)n=c-11?(v=V[strchr(R,c)-r],n+v-s*2*(s<v)):!printf("%d\n",n,v=*V);}
      |                                                ^
main.c:1:50: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
    1 | V[]={1e3,500,100,50,10,5,1};char*R="NEDMYWJ";v,n,s=1e3,r;main(c){for(r=R;c=getchar()+1;s=v)n=c-11?(v=V[strchr(R,c)-r],n+v-s*2*(s<v)):!printf("%d\n",n,v=*V);}
      |                                                  ^
main.c:1:56: error: type defaults to 'int' in declaration of 'r' [-Wimplicit-int]
    1 | V[]={1e3,500,100,50,10,5,1};char*R="NEDMYWJ";v,n,s=1e3,r;main(c){for(r=R;c=getchar()+1;s=v)n=c-11?(v=V[strchr(R,c)-r],n+v-s*2*(s<v)):!printf("%d\n",n,v=*V);}
      |                                                        ^
main.c:1:58: error: return type defaults to 'int' [-Wimplicit-int]
    1 | V[]={1e3,500,100,50,10,5,1};char*R="NEDMYWJ";v,n,s=1e3,r;main(c){for(r=R;c=getchar()+1;s=v)n=c-11?(v=V[strchr(R,c)-r],n+v-s*2*(s<v)):!printf("%d\n",n,v=*V);}
      |                                                          ^~~~
main.c: In function 'main':
main.c:1:58: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:71: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    1 | V[]={1e3,500,100,50,10,5,1};char*R="NEDMYWJ";v,n,s=1e3,r;main(c){for(r=R;c=getchar()+1;s=v)n=c-11?(v=V[strchr(R,c)-r],n+v-s*2*(s<v)):!printf("%d\n",n,v=*V);}
      |                                                                       ^
main.c:1:76: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
    1 | V[]={1e3,500,100,50,10,5,1};char*R="NEDMYWJ";v,n,s=1e3,r;main(c){for(r=R;c=getchar()+1;s=v)n=c-11?(v=V[strchr(R,c)-r],n+v-s*2*(s<v)):!printf("%d\n",n,v=*V);}
      |                                                                            ^~~~~~~
main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
  +++ |+#include <stdio.h>
    1 | V[]={1e3,500,100,50,10,5,1};char*R="NEDMYWJ";v,n,s=1e3,r;main(c){for(r=R;c=getchar()+1;s=v)n=c-11?(v=V[strchr(R,c)-r],n+v-s*2*(s<v)):!printf("%d\n",n,v=*V);}
main.c:1:104: error: implicit declaration of function 'strchr' [-Wimplicit-function-declaration]
    1 | V[]={1e3,500,100,50,10,5,1};char*R="NEDMYWJ";v,n,s=1e3,r;main(c){for(r=R;c=getchar()+1;s=v)n=c-11?(v=V[strchr(R,c)-r],n+v-s*2*(s<v)):!printf("%d\n",n,v=*V);}
      |                                                                                                        ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'strchr'
  +++ |+#include <string.h>
    1 | V[]={1e3,500,100,50,10,5,1};char*R="NEDMYWJ";v,n,s=1e3,r;main(c){for(r=R;c=getchar()+1;s=v)n=c-11?(v=V[strchr(R,c)-r],n+v-s*2*(s<v)):!printf("%d\n",n,v=*V);}
main.c:1:104: warning: incompatible implicit declaration of built-in function 'strchr' [-Wbuiltin-declaration-mismatch]
    1 | V[]={1e3,500,100,50,10,5,1};char*R="NEDMYWJ";v,n,s=1e3,r;main(c){for(r=R;c=getchar()+1;s=v)n=c-11?(v=V[strchr(R,c)-r],n+v-s*2*(s<v)):!printf("%d\n",n,v=*V);}
      |                                                                                                        ^~~~~~
main.c:1:104: note: include '<string.h>' or provide a declaration of 'strchr'
main.c:1:103: error: array subscript is not an integer
    1 | V[]={1e3,500,100,50,10,5,1};char*R="NEDMYWJ";v,n,s=1e3,r;main(c){for(r=R;c=getchar()+1;s=v)n=c-11?(v=V[strchr(R,c)-r],n+v-s*2*(s<v)):!printf("%d\n",n,v=*V);}
      |                                                                                                       ^
main.c:1:135: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | V[]={1e3,500,100,50,10,5,1};char*R="NEDMYWJ";v,n,s=1e3,r;main(c){for(r=R;c=getchar()+1;s=v)n=c-11?(v=V[strchr(R,c)-r],n+v-s*2*(s<v)):!printf("%d\n",n,v=*V);}
      |                                                                                                                                       ^~~~~~
main.c:1:135: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:135: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:135: note: include '<stdio.h>' or provide a declaration of 'printf'