Language: C

#include <stdio.h>

typedef struct dice {
	int num[6] = {};
}dice;

//dice???1?????¢?????????.
void mov(dice *d, char c);

//dice??????????¨??????????1?????¢?????????.
void spin(dice *d);

//dice??????????????????????????§??????.
int check(dice d1, dice d2);

int main(void) {
	int i = 0;
	int j = 0;
	int k = 0;
	int l = 0;

	int judge = 0;

	int n;		//dice?????°.
	scanf("%d", &n);

	//dice?????????.
	dice di[100];

	//??¢???????????????.
	for (i = 0; i < n; i++) {
		for (j = 0; j < 6; j++) {
			scanf("%d", &di[i].num[j]);
		}
	}

	//i????????¨j????????????????????????.
	for (i = 0; i < n-1; i++) {
		for (j = i + 1; j < n; j++) {

			//di[j]????????¢?????????dice[i]??¨??§?????????.
			for (k = 0; k < 4; k++) {
				mov(&di[j], 'E');

				for (l = 0; l < 4; l++) {
					spin(&di[j]);
					judge = check(di[i], di[j]);

					if (judge)break;
				}
				if (judge)break;
			}

			if (!judge) {
				for (k = 0; k < 4; k++) {
					mov(&di[j], 'N');

					for (l = 0; l < 4; l++) {
						spin(&di[j]);
						judge = check(di[i], di[j]);

						if (judge)break;
					}
					if (judge)break;
				}
			}
			if (judge)break;
		}
		if (judge)break;
	}

	//??????.
	if (judge)
		printf("No\n");
	else
		printf("Yes\n");

	return 0;
}

void mov(dice *d, char c) {
	int tmp = 0;

	if ('E' == c) {
		tmp = (*d).num[0];
		(*d).num[0] = (*d).num[3];
		(*d).num[3] = (*d).num[5];
		(*d).num[5] = (*d).num[2];
		(*d).num[2] = tmp;
	}
	else if ('N' == c) {
		tmp = (*d).num[0];
		(*d).num[0] = (*d).num[1];
		(*d).num[1] = (*d).num[5];
		(*d).num[5] = (*d).num[4];
		(*d).num[4] = tmp;
	}
	else if ('S' == c) {
		tmp = (*d).num[0];
		(*d).num[0] = (*d).num[4];
		(*d).num[4] = (*d).num[5];
		(*d).num[5] = (*d).num[1];
		(*d).num[1] = tmp;
	}
	else if ('W' == c) {
		tmp = (*d).num[0];
		(*d).num[0] = (*d).num[2];
		(*d).num[2] = (*d).num[5];
		(*d).num[5] = (*d).num[3];
		(*d).num[3] = tmp;
	}
}

void spin(dice *d) {
	int tmp = 0;

	tmp = (*d).num[1];
	(*d).num[1] = (*d).num[3];
	(*d).num[3] = (*d).num[4];
	(*d).num[4] = (*d).num[2];
	(*d).num[2] = tmp;
}

int check(dice d1, dice d2) {
	int i = 0;
	int judge = 1;

	for (i = 0; i < 6; i++) {
		if (d1.num[i] != d2.num[i])
			judge = 0;
	}

	return judge;
}

Compiler output:
main.c:4:20: error: expected ':', ',', ';', '}' or '__attribute__' before '=' token
    4 |         int num[6] = {};
      |                    ^
main.c: In function 'main':
main.c:33:43: error: 'dice' has no member named 'num'
   33 |                         scanf("%d", &di[i].num[j]);
      |                                           ^
main.c: In function 'mov':
main.c:85:27: error: 'dice' has no member named 'num'
   85 |                 tmp = (*d).num[0];
      |                           ^
main.c:86:21: error: 'dice' has no member named 'num'
   86 |                 (*d).num[0] = (*d).num[3];
      |                     ^
main.c:86:35: error: 'dice' has no member named 'num'
   86 |                 (*d).num[0] = (*d).num[3];
      |                                   ^
main.c:87:21: error: 'dice' has no member named 'num'
   87 |                 (*d).num[3] = (*d).num[5];
      |                     ^
main.c:87:35: error: 'dice' has no member named 'num'
   87 |                 (*d).num[3] = (*d).num[5];
      |                                   ^
main.c:88:21: error: 'dice' has no member named 'num'
   88 |                 (*d).num[5] = (*d).num[2];
      |                     ^
main.c:88:35: error: 'dice' has no member named 'num'
   88 |                 (*d).num[5] = (*d).num[2];
      |                                   ^
main.c:89:21: error: 'dice' has no member named 'num'
   89 |                 (*d).num[2] = tmp;
      |                     ^
main.c:92:27: error: 'dice' has no member named 'num'
   92 |                 tmp = (*d).num[0];
      |                           ^
main.c:93:21: error: 'dice' has no member named 'num'
   93 |                 (*d).num[0] = (*d).num[1];
      |                     ^
main.c:93:35: error: 'dice' has no member named 'num'
   93 |                 (*d).num[0] = (*d).num[1];
      |                                   ^
main.c:94:21: error: 'dice' has no member named 'num'
   94 |                 (*d).num[1] = (*d).num[5];
      |                     ^
main.c:94:35: error: 'dice' has no member named 'num'
   94 |                 (*d).num[1] = (*d).num[5];
      |                                   ^
main.c:95:21: error: 'dice' has no member named 'num'
   95 |                 (*d).num[5] = (*d).num[4];
      |                     ^
main.c:95:35: error: 'dice' has no member named 'num'
   95 |                 (*d).num[5] = (*d).num[4];
      |                                   ^
main.c:96:21: error: 'dice' has no member named 'num'
   96 |                 (*d).num[4] = tmp;
      |                     ^
main.c:99:27: error: 'dice' has no member named 'num'
   99 |                 tmp = (*d).num[0];
      |                           ^
main.c:100:21: error: 'dice' has no member named 'num'
  100 |                 (*d).num[0] = (*d).num[4];
      |                     ^
main.c:100:35: error: 'dice' has no member named 'num'
  100 |                 (*d).num[0] = (*d).num[4];
      |                                   ^
main.c:101:21: error: 'dice' has no member named 'num'
  101 |                 (*d).num[4] = (*d).num[5];
      |                     ^
main.c:101:35: error: 'dice' has no member named 'num'
  101 |                 (*d).num[4] = (*d).num[5];
      |                                   ^
main.c:102:21: error: 'dice' has no member named 'num'
  102 |                 (*d).num[5] = (*d).num[1];
      |                     ^
main.c:102:35: error: 'dice' has no member named 'num'
  102 |                 (*d).num[5] = (*d).num[1];
      |                                   ^
main.c:103:21: error: 'dice' has no member named 'num'
  103 |                 (*d).num[1] = tmp;
      |                     ^
main.c:106:27: error: 'dice' has no member named 'num'
  106 |                 tmp = (*d).num[0];
      |                           ^
main.c:107:21: error: 'dice' has no member named 'num'
  107 |                 (*d).num[0] = (*d).num[2];
      |                     ^
main.c:107:35: error: 'dice' has no member named 'num'
  107 |                 (*d).num[0] = (*d).num[2];
      |                                   ^
main.c:108:21: error: 'dice' has no member named 'num'
  108 |                 (*d).num[2] = (*d).num[5];
      |                     ^
main.c:108:35: error: 'dice' has no member named 'num'
  108 |                 (*d).num[2] = (*d).num[5];
      |                                   ^
main.c:109:21: error: 'dice' has no member named 'num'
  109 |                 (*d).num[5] = (*d).num[3];
      |                     ^
main.c:109:35: error: 'dice' has no member named 'num'
  109 |                 (*d).num[5] = (*d).num[3];
      |                                   ^
main.c:110:21: error: 'dice' has no member named 'num'
  110 |                 (*d).num[3] = tmp;
      |                     ^
main.c: In function 'spin':
main.c:117:19: error: 'dice' has no member named 'num'
  117 |         tmp = (*d).num[1];
      |                   ^
main.c:118:13: error: 'dice' has no member named 'num'
  118 |         (*d).num[1] = (*d).num[3];
      |             ^
main.c:118:27: error: 'dice' has no member named 'num'
  118 |         (*d).num[1] = (*d).num[3];
      |                           ^
main.c:119:13: error: 'dice' has no member named 'num'
  119 |         (*d).num[3] = (*d).num[4];
      |             ^
main.c:119:27: error: 'dice' has no member named 'num'
  119 |         (*d).num[3] = (*d).num[4];
      |                           ^
main.c:120:13: error: 'dice' has no member named 'num'
  120 |         (*d).num[4] = (*d).num[2];
      |             ^
main.c:120:27: error: 'dice' has no member named 'num'
  120 |         (*d).num[4] = (*d).num[2];
      |                           ^
main.c:121:13: error: 'dice' has no member named 'num'
  121 |         (*d).num[2] = tmp;
      |             ^
main.c: In function 'check':
main.c:129:23: error: 'dice' has no member named 'num'
  129 |                 if (d1.num[i] != d2.num[i])
      |                       ^
main.c:129:36: error: 'dice' has no member named 'num'
  129 |                 if (d1.num[i] != d2.num[i])
      |                                    ^