Language: C

N[]={ 6, 14, 18, 10,  2,  9, 22, 15,  1, 17, 23,  7,  3,  5, 21, 19,  0, 13, 20, 11,  4,  8, 16, 12};
E[]={13, 17,  9,  5,  8, 21, 14,  1, 16, 22,  6,  0,  4, 20, 18,  2, 12, 23, 10,  3, 11, 19, 15,  7};
R[]={ 3,  0,  1,  2,  7,  4,  5,  6, 11,  8,  9, 10, 15, 12, 13, 14, 19, 16, 17, 18, 23, 20, 21, 22};
a;
d;
T,F,R;
char s[9];
main(c)
{
	for(;c-48&&scanf("%s",s);a+=d/4+1)
	{
		c=*s;
		if(c<60)a&&printf("%d\n",a),a=d=0,T=1,F=2,R=3;
		if(c==78)d=N[d];
		if(c==83)d=N[N[N[d]]];
		if(c==69)d=E[d];
		if(c==87)d=E[E[E[d]]];
		if(c==82)d=R[d];
		if(c==76)d=R[R[R[d]]];
	}
}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | N[]={ 6, 14, 18, 10,  2,  9, 22, 15,  1, 17, 23,  7,  3,  5, 21, 19,  0, 13, 20, 11,  4,  8, 16, 12};
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:2:1: warning: data definition has no type or storage class
    2 | E[]={13, 17,  9,  5,  8, 21, 14,  1, 16, 22,  6,  0,  4, 20, 18,  2, 12, 23, 10,  3, 11, 19, 15,  7};
      | ^
main.c:2:1: error: type defaults to 'int' in declaration of 'E' [-Wimplicit-int]
main.c:3:1: warning: data definition has no type or storage class
    3 | R[]={ 3,  0,  1,  2,  7,  4,  5,  6, 11,  8,  9, 10, 15, 12, 13, 14, 19, 16, 17, 18, 23, 20, 21, 22};
      | ^
main.c:3:1: error: type defaults to 'int' in declaration of 'R' [-Wimplicit-int]
main.c:4:1: warning: data definition has no type or storage class
    4 | a;
      | ^
main.c:4:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:5:1: warning: data definition has no type or storage class
    5 | d;
      | ^
main.c:5:1: error: type defaults to 'int' in declaration of 'd' [-Wimplicit-int]
main.c:6:1: warning: data definition has no type or storage class
    6 | T,F,R;
      | ^
main.c:6:1: error: type defaults to 'int' in declaration of 'T' [-Wimplicit-int]
main.c:6:3: error: type defaults to 'int' in declaration of 'F' [-Wimplicit-int]
    6 | T,F,R;
      |   ^
main.c:6:5: error: type defaults to 'int' in declaration of 'R' [-Wimplicit-int]
    6 | T,F,R;
      |     ^
main.c:6:5: error: conflicting types for 'R'; have 'int'
main.c:3:1: note: previous definition of 'R' with type 'int[24]'
    3 | R[]={ 3,  0,  1,  2,  7,  4,  5,  6, 11,  8,  9, 10, 15, 12, 13, 14, 19, 16, 17, 18, 23, 20, 21, 22};
      | ^
main.c:8:1: error: return type defaults to 'int' [-Wimplicit-int]
    8 | main(c)
      | ^~~~
main.c: In function 'main':
main.c:8:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:10:20: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   10 |         for(;c-48&&scanf("%s",s);a+=d/4+1)
      |                    ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | N[]={ 6, 14, 18, 10,  2,  9, 22, 15,  1, 17, 23,  7,  3,  5, 21, 19,  0, 13, 20, 11,  4,  8, 16, 12};
main.c:10:20: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   10 |         for(;c-48&&scanf("%s",s);a+=d/4+1)
      |                    ^~~~~
main.c:10:20: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:28: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |                 if(c<60)a&&printf("%d\n",a),a=d=0,T=1,F=2,R=3;
      |                            ^~~~~~
main.c:13:28: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:28: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:28: note: include '<stdio.h>' or provide a declaration of 'printf'