Language: C

#include<stdio.h>

struct dice{
           int a(6);
       };
dice dice1;
dice dice2;

void tate(){
            int cmp=dice2.a(0);
            dice2.a(0)=dice2.a(4);
            dice2.a(4)=dice2.a(5);
            dice2.a(5)=dice2.a(1);
            dice2.a(1)=cmp;
             }
void yoko(){
            int cmp=dice2.a(0);
            dice2.a(0)=dice2.a(3);
            dice2.a(3)=dice2.a(5);
            dice2.a(5)=dice2.a(2);
            dice2.a(2)=cmp;
             }


int main(){
    int i,j;
    for(i=0;i<6;i++){
           scanf("%d",dice1.a(i));
                     }
for(i=0;i<6;i++){
           scanf("%d",dice2.a(i));
                     }

for(i=0;i<5;i++){

              for(j=0;j<5;j++){
                              if(dice1.a(0)==dice2.a(0))break;
                               tate();
                               }
              for(j=0;j<5;j++){
                                if(dice1.a(1)==dice2.a(1))break;
                                yoko();
                                }
                  }

if(dice1.a(0)==dice2.a(0)&&dice1.a(1)==dice2.a(1)&&dice1.a(2)==dice2.a(2))printf("Yes");
else printf("No");
 
return 0;
}








Compiler output:
main.c:4:18: error: expected declaration specifiers or '...' before numeric constant
    4 |            int a(6);
      |                  ^
main.c:5:8: warning: no semicolon at end of struct or union
    5 |        };
      |        ^
main.c:6:1: error: unknown type name 'dice'; use 'struct' keyword to refer to the type
    6 | dice dice1;
      | ^~~~
      | struct 
main.c:7:1: error: unknown type name 'dice'; use 'struct' keyword to refer to the type
    7 | dice dice2;
      | ^~~~
      | struct 
main.c: In function 'tate':
main.c:10:26: error: request for member 'a' in something not a structure or union
   10 |             int cmp=dice2.a(0);
      |                          ^
main.c:11:18: error: request for member 'a' in something not a structure or union
   11 |             dice2.a(0)=dice2.a(4);
      |                  ^
main.c:11:29: error: request for member 'a' in something not a structure or union
   11 |             dice2.a(0)=dice2.a(4);
      |                             ^
main.c:12:18: error: request for member 'a' in something not a structure or union
   12 |             dice2.a(4)=dice2.a(5);
      |                  ^
main.c:12:29: error: request for member 'a' in something not a structure or union
   12 |             dice2.a(4)=dice2.a(5);
      |                             ^
main.c:13:18: error: request for member 'a' in something not a structure or union
   13 |             dice2.a(5)=dice2.a(1);
      |                  ^
main.c:13:29: error: request for member 'a' in something not a structure or union
   13 |             dice2.a(5)=dice2.a(1);
      |                             ^
main.c:14:18: error: request for member 'a' in something not a structure or union
   14 |             dice2.a(1)=cmp;
      |                  ^
main.c: In function 'yoko':
main.c:17:26: error: request for member 'a' in something not a structure or union
   17 |             int cmp=dice2.a(0);
      |                          ^
main.c:18:18: error: request for member 'a' in something not a structure or union
   18 |             dice2.a(0)=dice2.a(3);
      |                  ^
main.c:18:29: error: request for member 'a' in something not a structure or union
   18 |             dice2.a(0)=dice2.a(3);
      |                             ^
main.c:19:18: error: request for member 'a' in something not a structure or union
   19 |             dice2.a(3)=dice2.a(5);
      |                  ^
main.c:19:29: error: request for member 'a' in something not a structure or union
   19 |             dice2.a(3)=dice2.a(5);
      |                             ^
main.c:20:18: error: request for member 'a' in something not a structure or union
   20 |             dice2.a(5)=dice2.a(2);
      |                  ^
main.c:20:29: error: request for member 'a' in something not a structure or union
   20 |             dice2.a(5)=dice2.a(2);
      |                             ^
main.c:21:18: error: request for member 'a' in something not a structure or union
   21 |             dice2.a(2)=cmp;
      |                  ^
main.c: In function 'main':
main.c:28:28: error: request for member 'a' in something not a structure or union
   28 |            scanf("%d",dice1.a(i));
      |                            ^
main.c:31:28: error: request for member 'a' in something not a structure or union
   31 |            scanf("%d",dice2.a(i));
      |                            ^
main.c:37:39: error: request for member 'a' in something not a structure or union
   37 |                               if(dice1.a(0)==dice2.a(0))break;
      |                                       ^
main.c:37:51: error: request for member 'a' in something not a structure or union
   37 |                               if(dice1.a(0)==dice2.a(0))break;
      |                                                   ^
main.c:41:41: error: request for member 'a' in something not a structure or union
   41 |                                 if(dice1.a(1)==dice2.a(1))break;
      |                                         ^
main.c:41:53: error: request for member 'a' in something not a structure or union
   41 |                                 if(dice1.a(1)==dice2.a(1))break;
      |                                                     ^
main.c:46:9: error: request for member 'a' in something not a structure or union
   46 | if(dice1.a(0)==dice2.a(0)&&dice1.a(1)==dice2.a(1)&&dice1.a(2)==dice2.a(2))printf("Yes");
      |         ^
main.c:46:21: error: request for member 'a' in something not a structure or union
   46 | if(dice1.a(0)==dice2.a(0)&&dice1.a(1)==dice2.a(1)&&dice1.a(2)==dice2.a(2))printf("Yes");
      |                     ^
main.c:46:33: error: request for member 'a' in something not a structure or union
   46 | if(dice1.a(0)==dice2.a(0)&&dice1.a(1)==dice2.a(1)&&dice1.a(2)==dice2.a(2))printf("Yes");
      |                                 ^
main.c:46:45: error: request for member 'a' in something not a structure or union
   46 | if(dice1.a(0)==dice2.a(0)&&dice1.a(1)==dice2.a(1)&&dice1.a(2)==dice2.a(2))printf("Yes");
      |                                             ^
main.c:46:57: error: request for member 'a' in something not a structure or union
   46 | if(dice1.a(0)==dice2.a(0)&&dice1.a(1)==dice2.a(1)&&dice1.a(2)==dice2.a(2))printf("Yes");
      |                                                         ^
main.c:46:69: error: request for member 'a' in something not a structure or union
   46 | if(dice1.a(0)==dice2.a(0)&&dice1.a(1)==dice2.a(1)&&dice1.a(2)==dice2.a(2))printf("Yes");
      |                                                                     ^