Language: C

v[]={0,4,2,5,0,5,2,4,0,3,2,1,0,1,2,3,4,3,5,1,1,5,3,4};main(n,c,i,j,s){while(scanf("%d ",&n)&&n){int d[]={1,3,6,4,2,5};for(s=1;n--&&gets(&c);){c&=255;i=c-78?c-83?c-69?c-87?c-76?20:16:12:8:4:0;c=d[v[i]];for(j=0;j<3;++j)d[v[i+j]]=d[v[i+j+1]];d[v[i+3]]=c;s+=*d;}printf("%d\n",s);}}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | v[]={0,4,2,5,0,5,2,4,0,3,2,1,0,1,2,3,4,3,5,1,1,5,3,4};main(n,c,i,j,s){while(scanf("%d ",&n)&&n){int d[]={1,3,6,4,2,5};for(s=1;n--&&gets(&c);){c&=255;i=c-78?c-83?c-69?c-87?c-76?20:16:12:8:4:0;c=d[v[i]];for(j=0;j<3;++j)d[v[i+j]]=d[v[i+j+1]];d[v[i+3]]=c;s+=*d;}printf("%d\n",s);}}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'v' [-Wimplicit-int]
main.c:1:55: error: return type defaults to 'int' [-Wimplicit-int]
    1 | v[]={0,4,2,5,0,5,2,4,0,3,2,1,0,1,2,3,4,3,5,1,1,5,3,4};main(n,c,i,j,s){while(scanf("%d ",&n)&&n){int d[]={1,3,6,4,2,5};for(s=1;n--&&gets(&c);){c&=255;i=c-78?c-83?c-69?c-87?c-76?20:16:12:8:4:0;c=d[v[i]];for(j=0;j<3;++j)d[v[i+j]]=d[v[i+j+1]];d[v[i+3]]=c;s+=*d;}printf("%d\n",s);}}
      |                                                       ^~~~
main.c: In function 'main':
main.c:1:55: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:1:55: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:55: error: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:1:55: error: type of 'j' defaults to 'int' [-Wimplicit-int]
main.c:1:55: error: type of 's' defaults to 'int' [-Wimplicit-int]
main.c:1:77: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | v[]={0,4,2,5,0,5,2,4,0,3,2,1,0,1,2,3,4,3,5,1,1,5,3,4};main(n,c,i,j,s){while(scanf("%d ",&n)&&n){int d[]={1,3,6,4,2,5};for(s=1;n--&&gets(&c);){c&=255;i=c-78?c-83?c-69?c-87?c-76?20:16:12:8:4:0;c=d[v[i]];for(j=0;j<3;++j)d[v[i+j]]=d[v[i+j+1]];d[v[i+3]]=c;s+=*d;}printf("%d\n",s);}}
      |                                                                             ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | v[]={0,4,2,5,0,5,2,4,0,3,2,1,0,1,2,3,4,3,5,1,1,5,3,4};main(n,c,i,j,s){while(scanf("%d ",&n)&&n){int d[]={1,3,6,4,2,5};for(s=1;n--&&gets(&c);){c&=255;i=c-78?c-83?c-69?c-87?c-76?20:16:12:8:4:0;c=d[v[i]];for(j=0;j<3;++j)d[v[i+j]]=d[v[i+j+1]];d[v[i+3]]=c;s+=*d;}printf("%d\n",s);}}
main.c:1:77: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | v[]={0,4,2,5,0,5,2,4,0,3,2,1,0,1,2,3,4,3,5,1,1,5,3,4};main(n,c,i,j,s){while(scanf("%d ",&n)&&n){int d[]={1,3,6,4,2,5};for(s=1;n--&&gets(&c);){c&=255;i=c-78?c-83?c-69?c-87?c-76?20:16:12:8:4:0;c=d[v[i]];for(j=0;j<3;++j)d[v[i+j]]=d[v[i+j+1]];d[v[i+3]]=c;s+=*d;}printf("%d\n",s);}}
      |                                                                             ^~~~~
main.c:1:77: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:132: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
    1 | v[]={0,4,2,5,0,5,2,4,0,3,2,1,0,1,2,3,4,3,5,1,1,5,3,4};main(n,c,i,j,s){while(scanf("%d ",&n)&&n){int d[]={1,3,6,4,2,5};for(s=1;n--&&gets(&c);){c&=255;i=c-78?c-83?c-69?c-87?c-76?20:16:12:8:4:0;c=d[v[i]];for(j=0;j<3;++j)d[v[i+j]]=d[v[i+j+1]];d[v[i+3]]=c;s+=*d;}printf("%d\n",s);}}
      |                                                                                                                                    ^~~~
main.c:1:259: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | v[]={0,4,2,5,0,5,2,4,0,3,2,1,0,1,2,3,4,3,5,1,1,5,3,4};main(n,c,i,j,s){while(scanf("%d ",&n)&&n){int d[]={1,3,6,4,2,5};for(s=1;n--&&gets(&c);){c&=255;i=c-78?c-83?c-69?c-87?c-76?20:16:12:8:4:0;c=d[v[i]];for(j=0;j<3;++j)d[v[i+j]]=d[v[i+j+1]];d[v[i+3]]=c;s+=*d;}printf("%d\n",s);}}
      |                                                                                                                                                                                                                                                                   ^~~~~~
main.c:1:259: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:259: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:259: note: include '<stdio.h>' or provide a declaration of 'printf'