Language: C

int a[1999][9],z,u,n,i,j,k;main(){scanf("%d ",&n);a[0][2]=1;for(i=0;i<n;i++){u=getchar()%4-1;fprintf(stderr,"%d\n",u);for(j=8;j--;){for(k=8;k--;)if(j&k&&j>>u&1)a[i+1][j]+=a[i][k]%10007;z+=a[n][j];}}printf("%d\n",z%10007);}

Compiler output:
main.c:1:28: error: return type defaults to 'int' [-Wimplicit-int]
    1 | int a[1999][9],z,u,n,i,j,k;main(){scanf("%d ",&n);a[0][2]=1;for(i=0;i<n;i++){u=getchar()%4-1;fprintf(stderr,"%d\n",u);for(j=8;j--;){for(k=8;k--;)if(j&k&&j>>u&1)a[i+1][j]+=a[i][k]%10007;z+=a[n][j];}}printf("%d\n",z%10007);}
      |                            ^~~~
main.c: In function 'main':
main.c:1:35: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | int a[1999][9],z,u,n,i,j,k;main(){scanf("%d ",&n);a[0][2]=1;for(i=0;i<n;i++){u=getchar()%4-1;fprintf(stderr,"%d\n",u);for(j=8;j--;){for(k=8;k--;)if(j&k&&j>>u&1)a[i+1][j]+=a[i][k]%10007;z+=a[n][j];}}printf("%d\n",z%10007);}
      |                                   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int a[1999][9],z,u,n,i,j,k;main(){scanf("%d ",&n);a[0][2]=1;for(i=0;i<n;i++){u=getchar()%4-1;fprintf(stderr,"%d\n",u);for(j=8;j--;){for(k=8;k--;)if(j&k&&j>>u&1)a[i+1][j]+=a[i][k]%10007;z+=a[n][j];}}printf("%d\n",z%10007);}
main.c:1:35: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | int a[1999][9],z,u,n,i,j,k;main(){scanf("%d ",&n);a[0][2]=1;for(i=0;i<n;i++){u=getchar()%4-1;fprintf(stderr,"%d\n",u);for(j=8;j--;){for(k=8;k--;)if(j&k&&j>>u&1)a[i+1][j]+=a[i][k]%10007;z+=a[n][j];}}printf("%d\n",z%10007);}
      |                                   ^~~~~
main.c:1:35: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:80: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
    1 | int a[1999][9],z,u,n,i,j,k;main(){scanf("%d ",&n);a[0][2]=1;for(i=0;i<n;i++){u=getchar()%4-1;fprintf(stderr,"%d\n",u);for(j=8;j--;){for(k=8;k--;)if(j&k&&j>>u&1)a[i+1][j]+=a[i][k]%10007;z+=a[n][j];}}printf("%d\n",z%10007);}
      |                                                                                ^~~~~~~
main.c:1:80: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:1:94: error: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
    1 | int a[1999][9],z,u,n,i,j,k;main(){scanf("%d ",&n);a[0][2]=1;for(i=0;i<n;i++){u=getchar()%4-1;fprintf(stderr,"%d\n",u);for(j=8;j--;){for(k=8;k--;)if(j&k&&j>>u&1)a[i+1][j]+=a[i][k]%10007;z+=a[n][j];}}printf("%d\n",z%10007);}
      |                                                                                              ^~~~~~~
main.c:1:94: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:1:94: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
main.c:1:94: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:1:102: error: 'stderr' undeclared (first use in this function)
    1 | int a[1999][9],z,u,n,i,j,k;main(){scanf("%d ",&n);a[0][2]=1;for(i=0;i<n;i++){u=getchar()%4-1;fprintf(stderr,"%d\n",u);for(j=8;j--;){for(k=8;k--;)if(j&k&&j>>u&1)a[i+1][j]+=a[i][k]%10007;z+=a[n][j];}}printf("%d\n",z%10007);}
      |                                                                                                      ^~~~~~
main.c:1:102: note: 'stderr' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:1:102: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:199: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | int a[1999][9],z,u,n,i,j,k;main(){scanf("%d ",&n);a[0][2]=1;for(i=0;i<n;i++){u=getchar()%4-1;fprintf(stderr,"%d\n",u);for(j=8;j--;){for(k=8;k--;)if(j&k&&j>>u&1)a[i+1][j]+=a[i][k]%10007;z+=a[n][j];}}printf("%d\n",z%10007);}
      |                                                                                                                                                                                                       ^~~~~~
main.c:1:199: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:199: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:199: note: include '<stdio.h>' or provide a declaration of 'printf'