Language: C

#include<stdio.h>
#include<math.h>


struct dice{
            int dice[6];
            }

strucu dice dice1;//初期化

void e(){
         int buff=0;
         buff=dice,dice1[0];
         dice,dice1[0]=dice,dice1[3];
         dice,dice1[3]=dice,dice1[5];
         dice,dice1[5]=dice,dice1[2];
         dice,dice1[2]=buff;
         }

void s(){
         int buff=0;
         buff=dice,dice1[0];
         dice,dice1[0]=dice,dice1[4];
         dice,dice1[4]=dice,dice1[5];
         dice,dice1[5]=dice,dice1[1];
         dice,dice1[1]=buff;
         }

void w(){
         int buff=0;
         buff=dice,dice1[0];
         dice,dice1[0]=dice,dice1[2];
         dice,dice1[2]=dice,dice1[5];
         dice,dice1[5]=dice,dice1[3];
         dice,dice1[3]=buff;
         }

void n(){
         int buff=0;
         buff=dice,dice1[0];
         dice,dice1[0]=dice,dice1[1];
         dice,dice1[1]=dice,dice1[5];
         dice,dice1[5]=dice,dice1[4];
         dice,dice1[4]=buff;
         }

int main(){
           int me[6],i;
           char muki;
           for(;;){
                   for(i=0;i<6;i++){
                           scanf("%d",&me[i]);
                           dice,dice1[i]=me[i];
                                    }
                   for(i=0;i<100;i++){
                                      scanf("%c",&muki);
                                      if(strcmp(muki,"\n")==0)break;
                                      if(strcmp(muki,"E")==0)e();
                                      if(strcmp(muki,"S")==0)s();
                                      if(strcmp(muki,"W")==0)w();
                                      if(strcmp(muki,"N")==0)n();
                                      }
                    printf("%d",dice.dice1[0]);
                    }
               return 0;
              }



Compiler output:
main.c:9:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dice'
    9 | strucu dice dice1;//初期化
      |        ^~~~
main.c:9:8: error: unknown type name 'dice'; use 'struct' keyword to refer to the type
    9 | strucu dice dice1;//初期化
      |        ^~~~
      |        struct 
main.c: In function 'e':
main.c:13:15: error: 'dice' undeclared (first use in this function)
   13 |          buff=dice,dice1[0];
      |               ^~~~
main.c:13:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:20: error: 'dice1' undeclared (first use in this function); did you mean 'dice'?
   13 |          buff=dice,dice1[0];
      |                    ^~~~~
      |                    dice
main.c: In function 's':
main.c:22:15: error: 'dice' undeclared (first use in this function)
   22 |          buff=dice,dice1[0];
      |               ^~~~
main.c:22:20: error: 'dice1' undeclared (first use in this function); did you mean 'dice'?
   22 |          buff=dice,dice1[0];
      |                    ^~~~~
      |                    dice
main.c: In function 'w':
main.c:31:15: error: 'dice' undeclared (first use in this function)
   31 |          buff=dice,dice1[0];
      |               ^~~~
main.c:31:20: error: 'dice1' undeclared (first use in this function); did you mean 'dice'?
   31 |          buff=dice,dice1[0];
      |                    ^~~~~
      |                    dice
main.c: In function 'n':
main.c:40:15: error: 'dice' undeclared (first use in this function)
   40 |          buff=dice,dice1[0];
      |               ^~~~
main.c:40:20: error: 'dice1' undeclared (first use in this function); did you mean 'dice'?
   40 |          buff=dice,dice1[0];
      |                    ^~~~~
      |                    dice
main.c: In function 'main':
main.c:53:28: error: 'dice' undeclared (first use in this function)
   53 |                            dice,dice1[i]=me[i];
      |                            ^~~~
main.c:53:33: error: 'dice1' undeclared (first use in this function); did you mean 'dice'?
   53 |                            dice,dice1[i]=me[i];
      |                                 ^~~~~
      |                                 dice
main.c:57:42: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   57 |                                       if(strcmp(muki,"\n")==0)break;
      |                                          ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    2 | #include<math.h>
  +++ |+#include <string.h>
    3 | 
main.c:57:49: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   57 |                                       if(strcmp(muki,"\n")==0)break;
      |                                                 ^~~~
      |                                                 |
      |                                                 char
main.c:57:49: note: expected 'const char *' but argument is of type 'char'
main.c:58:49: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   58 |                                       if(strcmp(muki,"E")==0)e();
      |                                                 ^~~~
      |                                                 |
      |                                                 char
main.c:58:49: note: expected 'const char *' but argument is of type 'char'
main.c:59:49: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   59 |                                       if(strcmp(muki,"S")==0)s();
      |                                                 ^~~~
      |                                                 |
      |                                                 char
main.c:59:49: note: expected 'const char *' but argument is of type 'char'
main.c:60:49: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   60 |                                       if(strcmp(muki,"W")==0)w();
      |                                                 ^~~~
      |                                                 |
      |                                                 char
main.c:60:49: note: expected 'const char *' but argument is of type 'char'
main.c:61:49: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   61 |                                       if(strcmp(muki,"N")==0)n();
      |                                                 ^~~~
      |                                                 |
      |                                                 char
main.c:61:49: note: expected 'const char *' but argument is of type 'char'