Language: C++

#include <iostream>
#include<string>

using namespace std;
class Dice{
public:
	int num[6],t;//t=top
		/*
		dice.num[0] = ???
		dice.num[1] = ???
		dice.num[2] = ???
		dice.num[3] = ???
		dice.num[4] = ???
		dice.num[5] = ???*/

	void North(){
		t = num[0];
		num[0] = num[1];//??????1?????¨???
		num[1] = num[5];//??????2?????¨???
		num[5] = num[4];//??????6?????¨???
		num[4] = t;//??????5?????¨???
		}

	void East(){
		t = num[0];
		num[0] = num[3];//??????1?????¨???
		num[3] = num[5];//??????4?????¨???
		num[5] = num[2];//??????6?????¨???
		num[2] = t;//??????3?????¨???
		}

	void West(){
		t = num[0];
		num[0] = num[2];//??????1?????¨???
		num[2] = num[5];//??????5?????¨???
		num[5] = num[3];//??????6?????¨???
		num[3] = t;//??????2?????¨???
		}
		
	void South(){
		t = num[0];
		num[0] = num[4];//??????1?????¨???
		num[4] = num[5];//??????3?????¨???
		num[5] = num[1];//??????6?????¨???
		num[1] = t;//??????3?????¨???
		}
	
	void Rotation(){//?????¢??????????????§?????¢???????????¨???
		t = num[1];
		num[1] = num[2];//?????¢???2?????¨???
		num[2] = num[4];//?????¢???3?????¨???
		num[4] = num[3];//?????¢???5?????¨???
		num[3] = t;//?????¢???4?????¨???
		}
};

int main()
{
	Dice d[100];
	
	int n;
	cin >> n;
	
	for(int i=0; i<n; i++){
		cin >> d[i].num[0] >> d[i].num[1] >> d[i].num[2] >> d[i].num[3] >> d[i].num[4] >> d[i].num[5];
	}
	
	for(int i=0; i<n; i++){
		for(int j=i+1; j<n; j++)
		//?????¢??????????????????
		if(( d[i].num[2] == d[j].num[0] || d[i].num[3] == d[].num[0]) && d[i].num[0] != d[j].num[5]){
			d1.East();
		}
		//?????¢??????????¨???????
		for(int k = 0; k<4; k++){
			if(d1.num[0] == d2.num[0])break;
			d1.North();
		}
		////?????¢?????????????????????
		for(int k = 0; k<4; k++){
			for(int l=2; K<5; k++){
				if(d1.num[1] == d2.num[1])break;
				d1.Rotation();
			}
		}
		if( d[i].num[0] == d[j].num[0] &&
			d[i].num[1] == d[j].num[1] &&
			d[i].num[2] == d[j].num[2] &&
			d[i].num[3] == d[j].num[3] &&
			d[i].num[4] == d[j].num[4] &&
			d[i].num[5] == d[j].num[5] )
		{cout << "No" << endl;
			return 0;
		}
		
	}
	cout << "Yes" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:71:69: error: expected primary-expression before ']' token
   71 |                 if(( d[i].num[2] == d[j].num[0] || d[i].num[3] == d[].num[0]) && d[i].num[0] != d[j].num[5]){
      |                                                                     ^
a.cc:72:25: error: 'd1' was not declared in this scope; did you mean 'd'?
   72 |                         d1.East();
      |                         ^~
      |                         d
a.cc:76:28: error: 'd1' was not declared in this scope; did you mean 'd'?
   76 |                         if(d1.num[0] == d2.num[0])break;
      |                            ^~
      |                            d
a.cc:76:41: error: 'd2' was not declared in this scope; did you mean 'd'?
   76 |                         if(d1.num[0] == d2.num[0])break;
      |                                         ^~
      |                                         d
a.cc:77:25: error: 'd1' was not declared in this scope; did you mean 'd'?
   77 |                         d1.North();
      |                         ^~
      |                         d
a.cc:81:38: error: 'K' was not declared in this scope
   81 |                         for(int l=2; K<5; k++){
      |                                      ^
a.cc:82:36: error: 'd1' was not declared in this scope; did you mean 'd'?
   82 |                                 if(d1.num[1] == d2.num[1])break;
      |                                    ^~
      |                                    d
a.cc:82:49: error: 'd2' was not declared in this scope; did you mean 'd'?
   82 |                                 if(d1.num[1] == d2.num[1])break;
      |                                                 ^~
      |                                                 d
a.cc:83:33: error: 'd1' was not declared in this scope; did you mean 'd'?
   83 |                                 d1.Rotation();
      |                                 ^~
      |                                 d
a.cc:86:38: error: 'j' was not declared in this scope
   86 |                 if( d[i].num[0] == d[j].num[0] &&
      |                                      ^