Language: C

#include <stdio.h>

#define ZERO 0																/*0???????????????*/
#define ONE 1																/*1???????????????*/
#define TWO 2																/*2???????????????*/
#define THREE 3																/*3???????????????*/
#define FOUR 4																/*4???????????????*/
#define FIVE 5																/*5???????????????*/
#define HUNDRED 100															/*100???????????????*/
#define DICE_SURF 6															/*?????????????????¢??°*/

unsigned char ubG_Ddice[ HUNDRED, DICE_SURF ];							/*?????????????????°?????????*/
unsigned char ubG_Fflug = ZERO;											/*??¶????????´????????°*/

void check_dice(
unsigned char ubW_Ddice_crit,											/*???????????????????????????*/
unsigned char ubW_Ddice_comp);											/*???????????????????????????*/

void check_flug();

int main( void )
{

	unsigned char ubW_Dn;													/*????????????????????°*/
	unsigned char ubW_Ci;													/*????????????i*/
	unsigned char ubW_Cj;													/*????????????j*/

	scanf("%d", &ubW_Dn);													/*????????????????????°????????????*/
	/*?????????????????°???????????????*/
	for( ubW_Ci = ZERO; ubW_Ci < ubW_Dn; ubW_Ci++){
		/*??¢?????°???????????????*/
		for( ubW_Cj = ZERO; ubW_Cj < DICE_SURF; ubW_Cj++ ) {
			scanf("%d", &ubG_Ddice[ ubW_Ci, ubW_Cj ] );						/*????????????n?????°???????????????*/
		}
	}

	/*??????????????????????????´?????????*/
	for( ubW_Ci = ZERO; ubW_Ci < ubW_Dn; ubW_Ci++){
		/*??????????????????????????´?????????*/
		for( ubW_Cj = ubW_Ci++; ubW_Cj < ubW_Dn; ubW_Cj++){
			check_dice( ubW_Ci, ubW_Cj );									/*????????????????????¨???????????????????????????*/
		}
	}

	check_flug();															/*????????°?????§???????????????????????????*/
	return ZERO;
}

void check_dice(
unsigned char ubW_Ddice_crit,											/*???????????????????????????*/
unsigned char ubW_Ddice_comp)											/*???????????????????????????*/
{

	unsigned char ubW_Dtrade;												/*??????????\???¨?????°*/
	unsigned char ubW_Dcalc;												/*?¨??????¨?????°*/
	unsigned char ubW_Ck;													/*????????????k*/

	/*??¢??????????????????????????????*/
			for( ubW_Ck = ONE; ubW_Ck <= DICE_SURF; ubW_Ck++ ){
				ubW_Dcalc = ubW_Ck % TWO;											/*i%2??????switch??????????????????*/
				/*????????¢??¨????????¢?????°?????????????????£????????¨????????¢????????????*/
				switch( ubW_Dcalc ){
				case ZERO:															/*??¶??°???????????¢*/
					ubW_Dtrade = ubG_Ddice[ ubW_Ddice_comp, ZERO ];					/*1?????¢???????????¨?????°?????????*/
					ubG_Ddice[ ubW_Dcomp, ZERO ] = ubG_Ddice[ ubW_Dcomp, TWO ];		/*1?????¢???3?????¢????????????*/
					ubG_Ddice[ ubW_Dcomp, TWO ] = ubG_Ddice[ ubW_Dcomp, FIVE ];		/*3?????¢???6?????¢????????????*/
					ubG_Ddice[ ubW_Dcomp, FIVE ] = ubG_Ddice[ ubW_Dcomp, THREE ];	/*6?????¢???4?????¢????????????*/
					ubG_Ddice[ ubW_Dcomp, THREE ] = ubW_Dtrade;						/*4?????¢???1?????¢????????????*/
					break;
				case ONE:															/*?\???°???????????¢*/
					ubW_Dtrade = ubG_Ddice[ ubW_Dcomp, ZERO ];						/*1?????¢???????????¨?????°?????????*/
					ubG_Ddice[ ubW_Dcomp, ZERO ] = ubG_Ddice[ ubW_Dcomp, ONE ];		/*1?????¢???2?????¢????????????*/
					ubG_Ddice[ ubW_Dcomp, ONE ] = ubG_Ddice[ ubW_Dcomp, FIVE ];		/*2?????¢???6?????¢????????????*/
					ubG_Ddice[ ubW_Dcomp, FIVE ] = ubG_Ddice[ ubW_Dcomp, FOUR ];	/*6?????¢???5?????¢????????????*/
					ubG_Ddice[ ubW_Dcomp, FOUR ] = ubW_Dtrade;						/*5?????¢???1?????¢????????????*/
					break;
				default:
					/*default?????????????????????????????\*/
					break;
				}

		/*1?????¢??¨5?????¢????????´??????????????´???*/
		if( ( ubG_Ddice[ ubW_Dcrit, ZERO ] == ubG_Ddice[ ubW_Dcomp,ZERO ] ) && ( ubG_Ddice[ ubW_Dcrit, FIVE ] == ubG_Ddice[ ubW_Dcomp,FIVE ] ) ){
			/*1?????¢??¨2?????¢????????´??????????????´???*/
			if( ( ubG_Ddice[ ubW_Dcrit, ONE ] == ubG_Ddice[ ubW_Dcomp,ONE ] ) && ( ubG_Ddice[ ubW_Dcrit, TWO ] == ubG_Ddice[ ubW_Dcomp,TWO ] ) ){
				/*3?????¢??¨4?????¢????????´??????????????´???*/
				if( ( ubG_Ddice[ ubW_Dcrit, FOUR ] == ubG_Ddice[ ubW_Dcomp,FOUR ] ) && ( ubG_Ddice[ ubW_Dcrit, THREE ] == ubG_Ddice[ ubW_Dcomp,THREE ] ) ){
					ubG_Fflug = ONE;										/*?????´?????????????????§??¶????????´????????°???true*/
				}
				else{
					/*else?????????????????????????????\*/
				}
			}
			/*?????????????????????2?????¢??¨?????????????????????3?????¢????????´???????????????????????????3?????¢??¨?????????????????????5?????¢????????´??????????????´???*/
			else if( ( ubG_Ddice[ ubW_Dcrit, ONE ] == ubG_Ddice[ ubW_Dcomp,TWO ] ) && ( ubG_Ddice[ ubW_Dcrit, TWO ] == ubG_Ddice[ ubW_Dcomp,FOUR ] ) ){
				/*?????????????????????5?????¢??¨?????????????????????4?????¢????????´???????????????????????????4?????¢??¨?????????????????????2?????¢????????´??????????????´???*/
				if( ( ubG_Ddice[ ubW_Dcrit, FOUR ] == ubG_Ddice[ ubW_Dcomp,THREE ] ) && ( ubG_Ddice[ ubW_Dcrit, THREE ] == ubG_Ddice[ ubW_Dcomp,ONE ] ) ){
					ubG_Fflug = ONE;										/*?????´?????????????????§??¶????????´????????°???true*/
				}
				else{
					/*else?????????????????????????????\*/
				}
			}
			/*?????????????????????2?????¢??¨?????????????????????5?????¢????????´???????????????????????????3?????¢??¨?????????????????????4?????¢????????´??????????????´???*/
			else if( ( ubG_Ddice[ ubW_Dcrit, ONE ] == ubG_Ddice[ ubW_Dcomp,FOUR ] ) && ( ubG_Ddice[ ubW_Dcrit, TWO ] == ubG_Ddice[ ubW_Dcomp,THREE ] ) ){
				/*?????????????????????5?????¢??¨?????????????????????2?????¢????????´???????????????????????????4?????¢??¨?????????????????????3?????¢????????´??????????????´???*/
				if( ( ubG_Ddice[ ubW_Dcrit, FOUR ] == ubG_Ddice[ ubW_Dcomp,ONE ] ) && ( ubG_Ddice[ ubW_Dcrit, THREE ] == ubG_Ddice[ ubW_Dcomp,TWO ] ) ){
					ubG_Fflug = ONE;					/*?????´?????????????????§??¶????????´????????°???true*/
				}
				else{
					/*else?????????????????????????????\*/
				}
			}
			/*?????????????????????2?????¢??¨?????????????????????4?????¢????????´???????????????????????????3?????¢??¨?????????????????????2?????¢????????´??????????????´???*/
			else if( ( ubG_Ddice[ ubW_Dcrit, ONE ] == ubG_Ddice[ ubW_Dcomp,THREE ] ) && ( ubG_Ddice[ ubW_Dcrit, TWO ] == ubG_Ddice[ ubW_Dcomp,ONE ] ) ){
				/*?????????????????????5?????¢??¨?????????????????????3?????¢????????´???????????????????????????4?????¢??¨?????????????????????5?????¢????????´??????????????´???*/
				if( ( ubG_Ddice[ ubW_Dcrit, FOUR ] == ubG_Ddice[ ubW_Dcomp,TWO ] ) && ( ubG_Ddice[ ubW_Dcrit, THREE ] == ubG_Ddice[ ubW_Dcomp,FOUR ] ) ){
					ubG_Fflug = ONE;					/*?????´?????????????????§??¶????????´????????°???true*/
				}
				else{
					/*else?????????????????????????????\*/
				}
			}
			else{
			/*else?????????????????????????????\*/
			}
		}
		else{
			/*else?????????????????????????????\*/
		}
	}/*??¢????????????????????????????????????*/
	ubG_Fflug = ZERO;															/*?????´???????????£????????¶????????´????????°???false*/
}

void check_flug()
{
	/*??¶????????´????????°???true?????´???*/
	if( ubG_flug == ONE ){
		printf("Yes\n");													/*?????´?????????????????§Yes??¨??????*/
	}else
	{
		printf("No\n");														/*?????´??????????????§No??¨??????*/
	}
}

Compiler output:
main.c:12:33: error: expected ']' before ',' token
   12 | unsigned char ubG_Ddice[ HUNDRED, DICE_SURF ];                                                  /*?????????????????°?????????*/
      |                                 ^
main.c: In function 'main':
main.c:33:38: error: 'ubG_Ddice' undeclared (first use in this function)
   33 |                         scanf("%d", &ubG_Ddice[ ubW_Ci, ubW_Cj ] );                                             /*????????????n?????°???????????????*/
      |                                      ^~~~~~~~~
main.c:33:38: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'check_dice':
main.c:64:54: error: 'ubG_Ddice' undeclared (first use in this function)
   64 |                                         ubW_Dtrade = ubG_Ddice[ ubW_Ddice_comp, ZERO ];                                 /*1?????¢???????????¨?????°?????????*/
      |                                                      ^~~~~~~~~
main.c:65:52: error: 'ubW_Dcomp' undeclared (first use in this function); did you mean 'ubW_Dcalc'?
   65 |                                         ubG_Ddice[ ubW_Dcomp, ZERO ] = ubG_Ddice[ ubW_Dcomp, TWO ];             /*1?????¢???3?????¢????????????*/
      |                                                    ^~~~~~~~~
      |                                                    ubW_Dcalc
main.c:83:34: error: 'ubW_Dcrit' undeclared (first use in this function); did you mean 'ubW_Dcalc'?
   83 |                 if( ( ubG_Ddice[ ubW_Dcrit, ZERO ] == ubG_Ddice[ ubW_Dcomp,ZERO ] ) && ( ubG_Ddice[ ubW_Dcrit, FIVE ] == ubG_Ddice[ ubW_Dcomp,FIVE ] ) ){
      |                                  ^~~~~~~~~
      |                                  ubW_Dcalc
main.c: In function 'check_flug':
main.c:138:13: error: 'ubG_flug' undeclared (first use in this function); did you mean 'ubG_Fflug'?
  138 |         if( ubG_flug == ONE ){
      |             ^~~~~~~~
      |             ubG_Fflug