Language: C

  #include "stdio.h"                                             
  #include "string.h"
  #define DICE 4
  int zorome[4][4]={{1,2,6,5},{1,4,6,3},{1,5,6,2},{1,3,6,4}};
  int copy[4];
  int sum=0;
  void north(void){
      int tmp[2],i,m;
      tmp[0]=zorome[0][0];
      tmp[1]=zorome[2][3];
      for(i=1;i<DICE;i++){
          zorome[0][i-1]=zorome[0][i];
          zorome[2][DICE-i]=zorome[2][DICE-i-1];
      }
      zorome[0][3]=tmp[0];
      zorome[2][0]= zorome[1][0]=zorome[3][0]=tmp[1];
      zorome[1][2]=zorome[3][2]=zorome[0][2];
      sum+=zorome[0][0];
  }
  void east(void){
       int tmp[2],i,m;
        tmp[0]=zorome[1][0];
        tmp[1]=zorome[3][3];
        for(i=1;i<DICE;i++){
            zorome[1][i-1]=zorome[1][i];
            zorome[3][DICE-i]=zorome[3][DICE-i-1];
        }
       zorome[1][3]=tmp[0];
zorome[0][0]= zorome[2][0]=zorome[3][0]=tmp[1];
        zorome[0][2]=zorome[2][2]=zorome[1][2];
        sum+=zorome[1][0];
  }
  void south(void){
      int tmp[2],i,m;
        tmp[0]=zorome[2][0];
        tmp[1]=zorome[0][3];
        for(i=1;i<DICE;i++){
            zorome[2][i-1]=zorome[2][i];
            zorome[0][DICE-i]=zorome[0][DICE-i-1];
        }   
        zorome[2][3]=tmp[0];
        zorome[0][0]= zorome[1][0]=zorome[3][0]=tmp[1];
        zorome[1][2]=zorome[3][2]=zorome[2][2];
        sum+=zorome[2][0];
  }
  void west(void){
      int tmp[2],i,m;
          tmp[0]=zorome[3][0];
          tmp[1]=zorome[1][3];
          for(i=1;i<DICE;i++){
              zorome[3][i-1]=zorome[3][i];
              zorome[1][DICE-i]=zorome[1][DICE-i-1];
          }
          zorome[3][3]=tmp[0];
          zorome[0][0]= zorome[2][0]=zorome[1][0]=tmp[1];
　zorome[0][2]=zorome[2][2]=zorome[3][2];
          sum+=zorome[3][0];
  }
  void right(void){
       int i,m;
          for(i=0;i<DICE;i++){
              copy[i]=zorome[3][i];
          }
           for(m=0;m<DICE;m++){
              for(i=0;i<DICE;i++){
                   zorome[DICE-m-1][i]=zorome[DICE-m-2][i];
              }
           }
          for(i=0;i<DICE;i++){
              zorome[0][i]= copy[i];
          }
            sum+=zorome[3][0];
  }
  void left(void){
      int i,m;
            for(i=0;i<DICE;i++){
                copy[i]=zorome[0][i];
            }
             for(m=0;m<DICE;m++){
                for(i=0;i<DICE;i++){
                     zorome[m][i]=zorome[m+1][i];
                }
             for(i=0;i<DICE;i++){
                zorome[3][i]= copy[i];
            }
             sum+=zorome[3][0];
  }
  void debugg(void){
  int i,n;
   for(i=0;i<DICE;i++){                                          
            for(n=0;n<DICE;n++){
                printf("zorome[%d][%d] = %d \n",i,n,zorome[i][n])    ;
            }
              puts("");
        }
  }
  int main(void){
      int i,n;
     char ch[100];
 do{
     scanf("%d",&n);
     for(i=0;i<n;i++){
         scanf("%s",ch);
         if(strcmp(ch,"North")==0){
             north();
         }else if(strcmp(ch,"East")==0){
             east();
         }else if(strcmp(ch,"Left")==0){
		 left();
         }else if(strcmp(ch,"South")==0){
             south();    
         }else if(strcmp(ch,"West")==0){
             west();
         }else if(strcmp(ch,"Right")==0){
             right();
         }else{ 
             i--;
         }   
     }
     printf("%d\n",sum+1);
 }while(n);  
     return 0;
 }

                                    

Compiler output:
main.c: In function 'west':
main.c:56:1: error: stray '\343' in program
   56 | <U+3000>zorome[0][2]=zorome[2][2]=zorome[3][2];
      | ^~~~~~~~
main.c: In function 'left':
main.c:123:2: error: expected declaration or statement at end of input
  123 |  }
      |  ^