Language: C

#include <stdio.h>

struct dice{
    int surf[6] = {0};
    short top = 0;
}dice1;

int main(void){

    char command;
    short trade = 0;
    register short i;

    for(i = 0;i < 6;i++){
        scanf("%d",dice1.surf[i]);
    }

    dice1.top = dice1.surf[0];
    while(1){
        scanf("%c",command);
        if(command == '\0'){
            break;
        }
        switch (command){
            case 'E':
                trade = dice1.surf[0];
                dice1.surf[0] = dice1.surf[3];
                dice1.surf[3] = dice1.surf[5];
                dice1.surf[5] = dice1.surf[2];
                dice1.surf[2] = trade;
                break;
            case 'N':
                trade = dice1.surf[0];
                dice1.surf[0] = dice1.surf[1];
                dice1.surf[1] = dice1.surf[5];
                dice1.surf[5] = dice1.surf[4];
                dice1.surf[4] = trade;
                break;
            case 'S':
                trade = dice1.surf[0];
                dice1.surf[0] = dice1.surf[4];
                dice1.surf[4] = dice1.surf[5];
                dice1.surf[5] = dice1.surf[1];
                dice1.surf[1] = trade;
                break;
            case 'W':
                trade = dice1.surf[0];
                dice1.surf[0] = dice1.surf[2];
                dice1.surf[2] = dice1.surf[5];
                dice1.surf[5] = dice1.surf[4];
                dice1.surf[4] = trade;
                break;
            default:
        }
    }
    return 0;
}

Compiler output:
main.c:4:17: error: expected ':', ',', ';', '}' or '__attribute__' before '=' token
    4 |     int surf[6] = {0};
      |                 ^
main.c: In function 'main':
main.c:15:25: error: 'struct dice' has no member named 'surf'
   15 |         scanf("%d",dice1.surf[i]);
      |                         ^
main.c:18:10: error: 'struct dice' has no member named 'top'
   18 |     dice1.top = dice1.surf[0];
      |          ^
main.c:18:22: error: 'struct dice' has no member named 'surf'
   18 |     dice1.top = dice1.surf[0];
      |                      ^
main.c:26:30: error: 'struct dice' has no member named 'surf'
   26 |                 trade = dice1.surf[0];
      |                              ^
main.c:27:22: error: 'struct dice' has no member named 'surf'
   27 |                 dice1.surf[0] = dice1.surf[3];
      |                      ^
main.c:27:38: error: 'struct dice' has no member named 'surf'
   27 |                 dice1.surf[0] = dice1.surf[3];
      |                                      ^
main.c:28:22: error: 'struct dice' has no member named 'surf'
   28 |                 dice1.surf[3] = dice1.surf[5];
      |                      ^
main.c:28:38: error: 'struct dice' has no member named 'surf'
   28 |                 dice1.surf[3] = dice1.surf[5];
      |                                      ^
main.c:29:22: error: 'struct dice' has no member named 'surf'
   29 |                 dice1.surf[5] = dice1.surf[2];
      |                      ^
main.c:29:38: error: 'struct dice' has no member named 'surf'
   29 |                 dice1.surf[5] = dice1.surf[2];
      |                                      ^
main.c:30:22: error: 'struct dice' has no member named 'surf'
   30 |                 dice1.surf[2] = trade;
      |                      ^
main.c:33:30: error: 'struct dice' has no member named 'surf'
   33 |                 trade = dice1.surf[0];
      |                              ^
main.c:34:22: error: 'struct dice' has no member named 'surf'
   34 |                 dice1.surf[0] = dice1.surf[1];
      |                      ^
main.c:34:38: error: 'struct dice' has no member named 'surf'
   34 |                 dice1.surf[0] = dice1.surf[1];
      |                                      ^
main.c:35:22: error: 'struct dice' has no member named 'surf'
   35 |                 dice1.surf[1] = dice1.surf[5];
      |                      ^
main.c:35:38: error: 'struct dice' has no member named 'surf'
   35 |                 dice1.surf[1] = dice1.surf[5];
      |                                      ^
main.c:36:22: error: 'struct dice' has no member named 'surf'
   36 |                 dice1.surf[5] = dice1.surf[4];
      |                      ^
main.c:36:38: error: 'struct dice' has no member named 'surf'
   36 |                 dice1.surf[5] = dice1.surf[4];
      |                                      ^
main.c:37:22: error: 'struct dice' has no member named 'surf'
   37 |                 dice1.surf[4] = trade;
      |                      ^
main.c:40:30: error: 'struct dice' has no member named 'surf'
   40 |                 trade = dice1.surf[0];
      |                              ^
main.c:41:22: error: 'struct dice' has no member named 'surf'
   41 |                 dice1.surf[0] = dice1.surf[4];
      |                      ^
main.c:41:38: error: 'struct dice' has no member named 'surf'
   41 |                 dice1.surf[0] = dice1.surf[4];
      |                                      ^
main.c:42:22: error: 'struct dice' has no member named 'surf'
   42 |                 dice1.surf[4] = dice1.surf[5];
      |                      ^
main.c:42:38: error: 'struct dice' has no member named 'surf'
   42 |                 dice1.surf[4] = dice1.surf[5];
      |                                      ^
main.c:43:22: error: 'struct dice' has no member named 'surf'
   43 |                 dice1.surf[5] = dice1.surf[1];
      |                      ^
main.c:43:38: error: 'struct dice' has no member named 'surf'
   43 |                 dice1.surf[5] = dice1.surf[1];
      |                                      ^
main.c:44:22: error: 'struct dice' has no member named 'surf'
   44 |                 dice1.surf[1] = trade;
      |                      ^
main.c:47:30: error: 'struct dice' has no member named 'surf'
   47 |                 trade = dice1.surf[0];
      |                              ^
main.c:48:22: error: 'struct dice' has no member named 'surf'
   48 |                 dice1.surf[0] = dice1.surf[2];
      |                      ^
main.c:48:38: error: 'struct dice' has no member named 'surf'
   48 |                 dice1.surf[0] = dice1.surf[2];
      |                                      ^
main.c:49:22: error: 'struct dice' has no member named 'surf'
   49 |                 dice1.surf[2] = dice1.surf[5];
      |                      ^
main.c:49:38: error: 'struct dice' has no member named 'surf'
   49 |                 dice1.surf[2] = dice1.surf[5];
      |                                      ^
main.c:50:22: error: 'struct dice' has no member named 'surf'
   50 |                 dice1.surf[5] = dice1.surf[4];
      |                      ^
main.c:50:38: error: 'struct dice' has no member named 'surf'
   50 |                 dice1.surf[5] = dice1.surf[4];
      |                                      ^
main.c:51:22: error: 'struct dice' has no member named 'surf'
   51 |                 dice1.surf[4] = trade;
      |                      ^