Language: C

#include<stdio.h>

struct Dice
{
	int mae;
	int ue;
	int migi
	int hidari;
	int sita;
	int usiro
}

void ROLL_E(struct Dice dice)
{
	
	int a = dice.ue;
	dice.ue = dice.hidari;
	dice.hidari = dice.sita;
	dice.sita = dice.migi;
	dice.migi = a;
}

void ROLL_N(struct Dice dice)
{
	int a = dice.ue;
	dice.ue = dice.mae;
	dice.mae = dice.sita;
	dice.sita = dice.usiro;
	dice.usiro = a;
}
void ROLL_S(struct Dice dice)
{
	int a = dice.ue;
	dice.ue = dice.usiro;
	dice.usiro = dice.sita;
	dice.sita = dice.mae;
	dice.mae = a;
}
void ROLL_W(struct Dice dice)
{
	int a = dice.ue;
	dice.ue = dice.migi;
	dice.migi = dice.sita;
	dice.sita =dice. hidari;
	dice.hidari = a;		
}

int scan()
{
	struct Dice dice;
	
	scanf("%d"&dice.ue);
	scanf("%d"&dice.mae);
	scanf("%d"&dice.migi);
	scanf("%d"&dice.hidari);
	scanf("%d"&dice.usiro);
	scanf("%d"&dice.sita);
}
int main()
{
	int i,j,a;
	struct Dice dice;
	char move;
	
	scan();
	
	while(1){
		scanf("%c",&move);
		if(move == 'E'){
			ROLL_E(dice);
		}else if(move == 'N'){
			ROLL_N(dice);
		}else if(move == 'S'){
			ROLL_S(dice);
		}else if(move == 'W'){
			ROLL_W(dice);
		}
		
		if(move == '\n'){
			break;
		}
	}
	
	printf("%d\n",ue);
	
	return 0;
}

Compiler output:
main.c:8:9: error: expected ':', ',', ';', '}' or '__attribute__' before 'int'
    8 |         int hidari;
      |         ^~~
main.c:13:1: error: expected ';', identifier or '(' before 'void'
   13 | void ROLL_E(struct Dice dice)
      | ^~~~
main.c: In function 'ROLL_E':
main.c:17:23: error: 'struct Dice' has no member named 'hidari'
   17 |         dice.ue = dice.hidari;
      |                       ^
main.c:18:13: error: 'struct Dice' has no member named 'hidari'
   18 |         dice.hidari = dice.sita;
      |             ^
main.c:18:27: error: 'struct Dice' has no member named 'sita'
   18 |         dice.hidari = dice.sita;
      |                           ^
main.c:19:13: error: 'struct Dice' has no member named 'sita'
   19 |         dice.sita = dice.migi;
      |             ^
main.c:19:25: error: 'struct Dice' has no member named 'migi'
   19 |         dice.sita = dice.migi;
      |                         ^
main.c:20:13: error: 'struct Dice' has no member named 'migi'
   20 |         dice.migi = a;
      |             ^
main.c: In function 'ROLL_N':
main.c:27:24: error: 'struct Dice' has no member named 'sita'
   27 |         dice.mae = dice.sita;
      |                        ^
main.c:28:13: error: 'struct Dice' has no member named 'sita'
   28 |         dice.sita = dice.usiro;
      |             ^
main.c:28:25: error: 'struct Dice' has no member named 'usiro'
   28 |         dice.sita = dice.usiro;
      |                         ^
main.c:29:13: error: 'struct Dice' has no member named 'usiro'
   29 |         dice.usiro = a;
      |             ^
main.c: In function 'ROLL_S':
main.c:34:23: error: 'struct Dice' has no member named 'usiro'
   34 |         dice.ue = dice.usiro;
      |                       ^
main.c:35:13: error: 'struct Dice' has no member named 'usiro'
   35 |         dice.usiro = dice.sita;
      |             ^
main.c:35:26: error: 'struct Dice' has no member named 'sita'
   35 |         dice.usiro = dice.sita;
      |                          ^
main.c:36:13: error: 'struct Dice' has no member named 'sita'
   36 |         dice.sita = dice.mae;
      |             ^
main.c: In function 'ROLL_W':
main.c:42:23: error: 'struct Dice' has no member named 'migi'
   42 |         dice.ue = dice.migi;
      |                       ^
main.c:43:13: error: 'struct Dice' has no member named 'migi'
   43 |         dice.migi = dice.sita;
      |             ^
main.c:43:25: error: 'struct Dice' has no member named 'sita'
   43 |         dice.migi = dice.sita;
      |                         ^
main.c:44:13: error: 'struct Dice' has no member named 'sita'
   44 |         dice.sita =dice. hidari;
      |             ^
main.c:44:24: error: 'struct Dice' has no member named 'hidari'
   44 |         dice.sita =dice. hidari;
      |                        ^
main.c:45:13: error: 'struct Dice' has no member named 'hidari'
   45 |         dice.hidari = a;
      |             ^
main.c: In function 'scan':
main.c:52:19: error: invalid operands to binary & (have 'char *' and 'int')
   52 |         scanf("%d"&dice.ue);
      |               ~~~~^~~~~~~~
      |               |        |
      |               char *   int
main.c:53:19: error: invalid operands to binary & (have 'char *' and 'int')
   53 |         scanf("%d"&dice.mae);
      |               ~~~~^~~~~~~~~
      |               |        |
      |               char *   int
main.c:54:24: error: 'struct Dice' has no member named 'migi'
   54 |         scanf("%d"&dice.migi);
      |                        ^
main.c:55:24: error: 'struct Dice' has no member named 'hidari'
   55 |         scanf("%d"&dice.hidari);
      |                        ^
main.c:56:24: error: 'struct Dice' has no member named 'usiro'
   56 |         scanf("%d"&dice.usiro);
      |                        ^
main.c:57:24: error: 'struct Dice' has no member named 'sita'
   57 |         scanf("%d"&dice.sita);
      |                        ^
main.c: In function 'main':
main.c:84:23: error: 'ue' undeclared (first use in this function)
   84 |         printf("%d\n",ue);
      |                       ^~
main.c:84:23: note: each undeclared identifier is reported only once for each function it appears in