criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include <iostream>
#include <vector>
using namespace std;

class Dice{
public:
    long r[6];
    Dice();
    void roll(long a, long b, long c, long d){
        swap(r[a], r[b]);
        swap(r[b], r[c]);
        swap(r[c], r[d]);
    }
    void spinW(){roll(0, 2, 5, 3);}
    void spinN(){roll(0, 1, 5, 4);}
};

int main() {
    int ans = 0;
    int n;
    cin >> n;
    vector<Dice> D(n);
    for (int i = 0; i < n ; i++) {
        for (int j = 0; j < 6; j++) cin >> d[i].r[j];
    }
    for (int i = 0; i < n ; i++) {
        for (int j = i + 1 ; j <= n ; j++) {
            char SWS[8]={"NNNWNNN"};
            for (int k = 0; k < 8; k++){
                if (D[i].r[1] == D[j].r[1]) break;
                if (SWS[k] == 'W') D[j].spinW();
                else D[j].spinN();
            }
            for (int k = 0; k < 4; k++){
                if (D[i].r[0] == D[j].r[0]){
                    if (D[i].r[1] == D[j].r[1] && D[i].r[2] == D[j].r[2] && D[i].r[3]==D[j].r[3] && D[i].r[4] == D[j].r[4] && D[i].r[5] == D[j].r[5])
                        ans++;
                }
                D[j].spinW();
            }
        }
    }

    if (ans == 0) cout << "Yes" << endl;
    else cout << "No" << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:44: error: 'd' was not declared in this scope
   24 |         for (int j = 0; j < 6; j++) cin >> d[i].r[j];
      |                                            ^
Language: C++

#include <iostream>
#include <vector>
using namespace std;

class Dice{
public:
    long r[6];
    Dice();
    void roll(long a, long b, long c, long d){
        swap(r[a], r[b]);
        swap(r[b], r[c]);
        swap(r[c], r[d]);
    }
    void spinW(){roll(0, 2, 5, 3);}
    void spinN(){roll(0, 1, 5, 4);}
};

int main() {
    int ans = 0;
    int n;
    cin >> n;
    vector<Dice> D(n);
    for (int i = 0; i < n ; i++) {
        for (int j = 0; j < 6; j++) cin >> D[i].r[j];
    }
    for (int i = 0; i < n ; i++) {
        for (int j = i + 1 ; j <= n ; j++) {
            char SWS[8]={"NNNWNNN"};
            for (int k = 0; k < 8; k++){
                if (D[i].r[1] == D[j].r[1]) break;
                if (SWS[k] == 'W') D[j].spinW();
                else D[j].spinN();
            }
            for (int k = 0; k < 4; k++){
                if (D[i].r[0] == D[j].r[0]){
                    if (D[i].r[1] == D[j].r[1] && D[i].r[2] == D[j].r[2] && D[i].r[3]==D[j].r[3] && D[i].r[4] == D[j].r[4] && D[i].r[5] == D[j].r[5])
                        ans++;
                }
                D[j].spinW();
            }
        }
    }

    if (ans == 0) cout << "Yes" << endl;
    else cout << "No" << endl;

    return 0;
}

Compiler output:
/usr/bin/ld: /tmp/cclsVrye.o: in function `void std::_Construct<Dice>(Dice*)':
a.cc:(.text._ZSt10_ConstructI4DiceJEEvPT_DpOT0_[_ZSt10_ConstructI4DiceJEEvPT_DpOT0_]+0x31): undefined reference to `Dice::Dice()'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
#include <vector>
using namespace std;

class Dice{
public:
    long r[6];
    Dice(){};
    void roll(long a, long b, long c, long d){
        swap(r[a], r[b]);
        swap(r[b], r[c]);
        swap(r[c], r[d]);
    }
    void spinW(){roll(0, 2, 5, 3);}
    void spinN(){roll(0, 1, 5, 4);}
};

bool check(Dice d1, Dice d2){
    for (long i = 0; i < 6; i++) if (d1.r1[i] != d2.r1[i]) return 0;
    return 1;
}

int main() {
    bool ans = 0;
    int n;
    cin >> n;
    vector<Dice> D(n);
    for (int i = 0; i < n ; i++){
        for (int j = 0; j < 6; j++) cin >> D[i].r[j];
    }
    for (int i = 0; i < n - 1; i++) {
        for (int j = i + 1 ; j < n ; j++) {
            char SWS[8]={"NNNWNNN"};
            for (int k = 0; k < 8; k++){
                if (D[i].r[1] == D[j].r[1]) break;
                if (SWS[k] == 'W') D[j].spinW();
                else D[j].spinN();
            }
            for (int k = 0; k < 4; k++){
                if (D[i].r[0] == D[j].r[0]) check(D[i], D[j]);
                D[j].spinW();
            }
        }
    }
    if (ans == 0) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'bool check(Dice, Dice)':
a.cc:19:41: error: 'class Dice' has no member named 'r1'; did you mean 'r'?
   19 |     for (long i = 0; i < 6; i++) if (d1.r1[i] != d2.r1[i]) return 0;
      |                                         ^~
      |                                         r
a.cc:19:53: error: 'class Dice' has no member named 'r1'; did you mean 'r'?
   19 |     for (long i = 0; i < 6; i++) if (d1.r1[i] != d2.r1[i]) return 0;
      |                                                     ^~
      |                                                     r
Language: C++

#include <iostream>
#include <vector>
using namespace std;

class Dice{
public:
    long r[6];
    Dice(){};
    void roll(long a, long b, long c, long d){
        swap(r[a], r[b]);swap(r[b], r[c]);swap(r[c], r[d]);
    }
    void spinW(){roll(0, 2, 5, 3);}
    void spinN(){roll(0, 1, 5, 4);}
    void spin(char c){
        if (c == 'W') roll(0, 2, 5, 3);
        else roll(0, 1, 5, 4);
    }
};

long check(Dice d1, Dice d2){
    if (D[i].r[1] == D[j].r[1] && D[i].r[2] == D[j].r[2] && D[i].r[3]==D[j].r[3] && D[i].r[4] == D[j].r[4] && D[i].r[5] == D[j].r[5]) return 0;
    return 1;
}

int main() {
    bool ans = 0;
    int n;
    cin >> n;
    vector<Dice> D(n);
    for (int i = 0; i < n ; i++) {
        for (int j = 0; j < 6; j++) cin >> D[i].r[j];
    }
    for (int i = 0; i < n - 1; i++) {
        for (int j = i + 1; j < n; j++) {
            char SWS[8]={"NNNWNNN"};
            for (int k = 0; k < 8; k++){
                if (D[i].r[1] == D[j].r[1]) break;
                D[j].spin(SWS[k]);
            }
            for (int k = 0; k < 4; k++){
                if (D[i].r[0] == D[j].r[0]){
                    //if (D[i].r[1] == D[j].r[1] && D[i].r[2] == D[j].r[2] && D[i].r[3]==D[j].r[3] && D[i].r[4] == D[j].r[4] && D[i].r[5] == D[j].r[5])
                        //ans = 1;
                    ans = check(D[i], D[j]);
                }
                D[j].spinW();
            }
        }
    }
    if (ans == 0) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'long int check(Dice, Dice)':
a.cc:21:9: error: 'D' was not declared in this scope
   21 |     if (D[i].r[1] == D[j].r[1] && D[i].r[2] == D[j].r[2] && D[i].r[3]==D[j].r[3] && D[i].r[4] == D[j].r[4] && D[i].r[5] == D[j].r[5]) return 0;
      |         ^
a.cc:21:11: error: 'i' was not declared in this scope
   21 |     if (D[i].r[1] == D[j].r[1] && D[i].r[2] == D[j].r[2] && D[i].r[3]==D[j].r[3] && D[i].r[4] == D[j].r[4] && D[i].r[5] == D[j].r[5]) return 0;
      |           ^
a.cc:21:24: error: 'j' was not declared in this scope
   21 |     if (D[i].r[1] == D[j].r[1] && D[i].r[2] == D[j].r[2] && D[i].r[3]==D[j].r[3] && D[i].r[4] == D[j].r[4] && D[i].r[5] == D[j].r[5]) return 0;
      |                        ^
Language: C++

#include <iostream>
using namespace std;

class dice{

public:
  int _1,_2,_3,_4,_5,_6,temp;

  void moveN(){
    temp=_1;
    _1=_2;
    _2=_6;
    _6=_5;
    _5=temp;
  }

  void moveE(){
    temp=_1;
    _1=_4;
    _4=_6;
    _6=_3;
    _3=temp;
  }

  void moveW(){
    temp=_1;
    _1=_3;
    _3=_6;
    _6=_4;
    _4=temp;
  }

  void moveS(){
    temp=_1;
    _1=_5;
    _5=_6;
    _6=_2;
    _2=temp;
  }

  void spin(){
    temp=_2;
    _2=_3;
    _3=_5;
    _5=_4;
    _4=temp;
  }

};
int main(){
  dice d[100];
  int i,j,k,l,n;
  cin>>n;
  for(i=0; i<n; i++)cin>>d[i]._1>>d[i]._2>>d[i]._3>>d[i]._4>>d[i]._5>>d[i]._6;
  for(i=0; i<n; i++)for(j=0; j<n; j++){
     if(i==j)continue;
    /*  for(k=0; k<6; k++){
        if(k==4)d[i].moveE();
        if(k==5){
          d[i].moveE();
          d[i].moveE();
        }*/
        for(k=0; k<3; k++)d[i].moveE();
          for(l=0; l<4; l++){
            d[i].spin();
            if(d[i]._1==d[j]._1 &&
               d[i]._2==d[j]._2 &&
               d[i]._3==d[j]._3 &&
               d[i]._4==d[j]._4 &&
               d[i]._5==d[j]._5 &&
               d[i]._6==d[j]._6){
              cout<<"No"<<endl;
              return 0;
              }
        }
      }
    }
  cout<<"Yes"<<endl;
  return 0;
}

Compiler output:
a.cc:78:3: error: 'cout' does not name a type
   78 |   cout<<"Yes"<<endl;
      |   ^~~~
a.cc:79:3: error: expected unqualified-id before 'return'
   79 |   return 0;
      |   ^~~~~~
a.cc:80:1: error: expected declaration before '}' token
   80 | }
      | ^
Language: C++

import Data.List

pattern1 :: [Int] -> [String]
pattern1 [a,b,_,_,e,f] = map show [a,b,f,e,a]

pattern2 :: [Int] -> [String]
pattern2 [a,_,c,d,_,f] = map show [c,a,d,f,c]

pattern3 :: [Int] -> [String]
pattern3 [_,b,c,d,e,_] = map show [b,c,e,d,b]

solve :: [Int] -> String -> Int
solve list x
  | isInfixOf x (unwords $ pattern1 list) = list !! 2
  | isInfixOf x (unwords $ pattern2 list) = list !! 1
  | isInfixOf x (unwords $ pattern3 list) = list !! 0
  | isInfixOf x (unwords $ reverse $ pattern1 list) = list !! 3
  | isInfixOf x (unwords $ reverse $ pattern2 list) = list !! 4
  | isInfixOf x (unwords $ reverse $ pattern3 list) = list !! 5
  | otherwise =	sum list

check :: [[Int]] -> [String] -> [[Int]]
check [] _ = []
check (i : is) all@[s1,s2,s3] = [solve i s1, solve i s2, solve i s3] : check is all

diff :: [[Int]] -> [String] -> Bool
diff is s = (length $ nub $ check is s) == length is

main = getContents >>= putStrLn . (\xs -> if diff xs (mkstr $ head xs) then "Yes" else "No") . map(map read . words) . tail . lines
  where mkstr [a,b,c,d,e,f] = map (unwords . map show) [[a,b],[f,d],[a,d]]

Compiler output:
a.cc:24:19: error: stray '@' in program
   24 | check (i : is) all@[s1,s2,s3] = [solve i s1, solve i s2, solve i s3] : check is all
      |                   ^
a.cc:29:36: error: stray '\' in program
   29 | main = getContents >>= putStrLn . (\xs -> if diff xs (mkstr $ head xs) then "Yes" else "No") . map(map read . words) . tail . lines
      |                                    ^
a.cc:1:1: error: 'import' does not name a type
    1 | import Data.List
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <cstdio>
#include <iostream>

using namespace std;
           
typedef struct dice{
  int up;
  int front;
  int right;
  int left;
  int back;
  int down;
} dice;
        
dice *rotate(dice *d,char c){
  int temp;
       
  if(c=='N'){
    temp=d->front;
    d->front=d->down;
    d->down=d->back;
    d->back=d->up;
    d->up=temp;
  } else if(c=='S') {
    temp=d->back;
    d->back=d->down;
    d->down=d->front;
    d->front=d->up;
    d->up=temp;
  } else if(c=='E') {
    temp=d->left;
    d->left=d->down;
    d->down=d->right;
    d->right=d->up;
    d->up=temp;
  } else if(c=='W') {
    temp=d->right;
    d->right=d->down;
    d->down=d->left;
    d->left=d->up;
    d->up=temp;
  }
        
  return d;
}

int dice_judge2(dice *d1,dice *d2){
  int i,array1[6],array2[6];

  array1[0]=d1->up;  array1[1]=d1->front;  array1[2]=d1->right;
  array1[3]=d1->back;  array1[4]=d1->left;  array1[5]=d1->down;
  array2[0]=d1->up;  array2[1]=d1->front;  array2[2]=d1->right;
  array2[3]=d1->back;  array2[4]=d1->left;  array2[5]=d1->down;

  sort(array1,array1+6);  sort(array2,array2+6);
  for(i=0;i<6;i++){
    if(array1[i]!=array2[i])  return 1;
  }
  return 0;
}

      
int main(void){
  dice array[100];
  dice *root;
  int i,num;
            
  scanf("%d",&num);
  for(i=0;i<num;i++){
    scanf("%d%d%d%d%d%d",&array[i].up,&array[i].front,&array[i].right,&array[i].left,&array[i].back,&array[i].down);
  }
   
  for(i=0;i<num-1;i++){
    if(dice_judge2(&array[i],&array[i+1])==1)  continue;
    root=&array[i+1];
    if(array[i].up==array[i+1].up) ;
    else if(array[i].up==array[i+1].front)  root=rotate(root,'N');
    else if(array[i].up==array[i+1].right)  root=rotate(root,'W');
    else if(array[i].up==array[i+1].left)  root=rotate(root,'E');
    else if(array[i].up==array[i+1].back)  root=rotate(root,'S');
    else if(array[i].up==array[i+1].down){
      root=rotate(root,'N');  root=rotate(root,'N');
    }
        
    if(array[i].front==array[i+1].down)  printf("No\n");
    else if(array[i].front==array[i+1].front){
      if(array[i].right==array[i+1].right && array[i].back==array[i+1].back && array[i].left==array[i+1].left){
        printf("No\n");  return 0;
      }
    } else if (array[i].front==array[i+1].right) {
      if(array[i].right==array[i+1].back && array[i].back==array[i+1].left && array[i].left==array[i+1].front){
        printf("No\n");  return 0;
      }
    } else if(array[i].front==array[i+1].back) {
      if(array[i].right==array[i+1].left && array[i].back==array[i+1].front && array[i].left==array[i+1].right){
        printf("No\n");  return 0;
      }
    } else if(array[i].front==array[i+1].left) {
      if(array[i].right==array[i+1].front && array[i].back==array[i+1].right && array[i].left==array[i+1].back){
        printf("No\n");  return 0;
      }
    }
  }
  printf("Yes\n");
     
  return 0;
}

Compiler output:
a.cc: In function 'int dice_judge2(dice*, dice*)':
a.cc:55:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   55 |   sort(array1,array1+6);  sort(array2,array2+6);
      |   ^~~~
      |   short
Language: C++

#include <iostream>
#include<string>

using namespace std;
class Dice{
public:
	int num[6],t;//t=top
	void North(){
		/*
		dice.num[0] = ???
		dice.num[1] = ???
		dice.num[2] = ???
		dice.num[3] = ???
		dice.num[4] = ???
		dice.num[5] = ???*/
		
		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()
{
	int n;
	int i,j,k,l;
	
	Dice d[100];//2<=n<=100
	
	cin >>n;
	
	if( i=0; i<n; i++){//dice?????°
		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(i=0; i<n; i++){
		for( j=0; j<n; j++){
			if(i == j);continue;
			
			for( k=0; k<6; k++){//dice?????°???
				if (k == 4){
					d[i].East();
				}
				if(k == 5){//dice?????°?????¨????????????
					d[i].East();
					d[i].East();
				}
				
				for( l=0; l<4; l++){//dice?????°??????4???????????????????????????Rotation
					d[i].Roatation;
					//?????????????????????????????´??????No
					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;
					}
				}
			}
		}
	}
	//dice?????????????????????????????´??????Yes
	cout << "Yes" << endl;
	return 0;
}
					
						
	

Compiler output:
a.cc: In function 'int main()':
a.cc:66:21: error: expected ')' before ';' token
   66 |         if( i=0; i<n; i++){//dice?????°
      |           ~         ^
      |                     )
a.cc:66:26: error: expected ';' before ')' token
   66 |         if( i=0; i<n; i++){//dice?????°
      |                          ^
      |                          ;
a.cc:84:46: error: 'class Dice' has no member named 'Roatation'; did you mean 'Rotation'?
   84 |                                         d[i].Roatation;
      |                                              ^~~~~~~~~
      |                                              Rotation
a.cc:91:78: error: expected primary-expression before ')' token
   91 |                                                 d[i].num[5] == d[j].num[5] &&)
      |                                                                              ^
Language: C++

#include <iostream>
#include<string>

using namespace std;
class Dice{
public:
	int num[6],t;//t=top
	void North(){
		/*
		dice.num[0] = ???
		dice.num[1] = ???
		dice.num[2] = ???
		dice.num[3] = ???
		dice.num[4] = ???
		dice.num[5] = ???*/
		
		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()
{
	int n;
	int i,j,k,l;
	
	Dice d[100];//2<=n<=100
	
	cin >>n;
	
	for( i=0; i<n; i++){//dice?????°
		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(i=0; i<n; i++){
		for( j=0; j<n; j++){
			if(i == j);continue;
			
			for( k=0; k<6; k++){//dice?????°???
				if (k == 4){
					d[i].East();
				}
				if(k == 5){//dice?????°?????¨????????????
					d[i].East();
					d[i].East();
				}
				
				for( l=0; l<4; l++){//dice?????°??????4???????????????????????????Rotation
					d[i].Roatation;
					//?????????????????????????????´??????No
					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;
					}
				}
			}
		}
	}
	//dice?????????????????????????????´??????Yes
	cout << "Yes" << endl;
	return 0;
}
					
						
	

Compiler output:
a.cc: In function 'int main()':
a.cc:84:46: error: 'class Dice' has no member named 'Roatation'; did you mean 'Rotation'?
   84 |                                         d[i].Roatation;
      |                                              ^~~~~~~~~
      |                                              Rotation
a.cc:91:78: error: expected primary-expression before ')' token
   91 |                                                 d[i].num[5] == d[j].num[5] &&)
      |                                                                              ^
Language: C++

#include <iostream>
#include<string>

using namespace std;
class Dice{
public:
	int num[6],t;//t=top
	void North(){
		/*
		dice.num[0] = ???
		dice.num[1] = ???
		dice.num[2] = ???
		dice.num[3] = ???
		dice.num[4] = ???
		dice.num[5] = ???*/
		
		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()
{
	int n;
	int i,j,k,l;
	
	Dice d[100];//2<=n<=100
	
	cin >>n;
	
	for( i=0; i<n; i++){//dice?????°
		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(i=0; i<n; i++){
		for( j=0; j<n; j++){
			if(i == j);continue;
			
			for( k=0; k<6; k++){//dice?????°???
				if (k == 4){
					d[i].East();
				}
				if(k == 5){//dice?????°?????¨????????????
					d[i].East();
					d[i].East();
				}
				
				for( l=0; l<4; l++){//dice?????°??????4???????????????????????????Rotation
					d[i].Rotation;
					//?????????????????????????????´??????No
					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;
					}
				}
			}
		}
	}
	//dice?????????????????????????????´??????Yes
	cout << "Yes" << endl;
	return 0;
}
					
						
	

Compiler output:
a.cc: In function 'int main()':
a.cc:84:46: error: invalid use of non-static member function 'void Dice::Rotation()'
   84 |                                         d[i].Rotation;
      |                                         ~~~~~^~~~~~~~
a.cc:48:14: note: declared here
   48 |         void Rotation(){//?????¢??????????????§?????¢???????????¨???
      |              ^~~~~~~~
Language: C++

#include <iostream>
using namespace std;
class Dice{
public:
	int num[6],t;//t=top
	void North(){
		/*
		dice.num[0] = ???
		dice.num[1] = ???
		dice.num[2] = ???
		dice.num[3] = ???
		dice.num[4] = ???
		dice.num[5] = ???*/
		
		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];//2<=n<=100
	int n;
	
	cin >>n;
	
	for(int i=0; i<n; i++){//dice
		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=0; j<n; j++){
			if(i == j);continue;
			
			for(int k=0; k<6; k++){//dice?????°???
				if (k == 4){
					d[i].East();
				}
				if(k == 5){//dice?????°?????¨????????????
					d[i].East();
					d[i].East();
				}
				
				for(int l=0; l<4; l++){//dice?????°??????4???????????????????????????Rotation
					d[i].Rotation();
					//?????????????????????????????´??????No
					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;
					}
					else if{	cout << "Yes" << endl;
						return 0;
					}
				}
			}
		}
	}
	/*dice?????????????????????????????´??????Yes
	cout << "Yes" << endl;
	return 0;*/
}

Compiler output:
a.cc: In function 'int main()':
a.cc:92:48: error: expected '(' before '{' token
   92 |                                         else if{        cout << "Yes" << endl;
      |                                                ^
      |                                                (
Language: C++

#include <iostream>
using namespace std;
class Dice{
public:
	int num[6],t;//t=top
	void North(){
		/*
		dice.num[0] = ???
		dice.num[1] = ???
		dice.num[2] = ???
		dice.num[3] = ???
		dice.num[4] = ???
		dice.num[5] = ???*/
		
		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?????¨???
		}
};





#include <iostream>
using namespace std;
class Dice{
public:
    int n1,n2,n3,n4,n5,n6;
     
    void East(){
        int t = n1;
        n1 = n4;
        n4 = n6;
        n6 = n3;
        n3 = t;
    }
    void West(){
        int t = n1;
        n1 = n3;
        n3 = n6;
        n6 = n4;
        n4 = t;
    }
    void South(){
        int t=n1;
        n1 = n5;
        n5 = n6;
        n6 = n2;
        n2 = t;
    }
    void North(){
        int t=n1;
        n1 = n2;
        n2 = n6;
        n6 = n5;
        n5 = t;
    }
    void Rotation(){
        int t=n2;
        n2 = n3;
        n3 = n5;
        n5 = n4;
        n4 = t;
    }
};

int main()
{
	
	Dice d[100];//2<=n<=100
	int n;
	
	cin >>n;

	for(int i=0; i<n; i++){//dice
		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=0; j<n; j++){
			if(i == j)continue;
			
			for(int k=0; k<6; k++){//dice?????°???
				if (k == 4){
					d[i].East();
				}
				if(k == 5){//dice?????°?????¨????????????
					d[i].East();
					d[i].East();
				}
				
				for(int l=0; l<4; l++){//dice?????°??????4???????????????????????????Rotation
					d[i].Rotation();
					//?????????????????????????????´??????No
					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:61:7: error: redefinition of 'class Dice'
   61 | class Dice{
      |       ^~~~
a.cc:3:7: note: previous definition of 'class Dice'
    3 | class Dice{
      |       ^~~~
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]){
			d[i].East();
		}
		//?????¢??????????¨???????
		for(int k = 0; k<4; k++){
			if(d[i].num[0] == d[j].num[0])break;
			d[i].North();
		}
		////?????¢?????????????????????
		for(int k = 0; k<4; k++){
			for(int l=2; K<5; k++){
				if(d[i].num[1] == d[j].num[1])break;
				d[i].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:76:45: error: 'j' was not declared in this scope
   76 |                         if(d[i].num[0] == d[j].num[0])break;
      |                                             ^
a.cc:81:38: error: 'K' was not declared in this scope
   81 |                         for(int l=2; K<5; k++){
      |                                      ^
a.cc:82:53: error: 'j' was not declared in this scope
   82 |                                 if(d[i].num[1] == d[j].num[1])break;
      |                                                     ^
a.cc:86:38: error: 'j' was not declared in this scope
   86 |                 if( d[i].num[0] == d[j].num[0] &&
      |                                      ^
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[j].num[0]) && d[i].num[0] != d[j].num[5]){
			d[i].East();
		}
		//?????¢??????????¨???????
		for(int k = 0; k<4; k++){
			if(d[i].num[0] == d[j].num[0])break;
			d[i].North();
		}
		////?????¢?????????????????????
		for(int k = 0; k<4; k++){
			for(int l=2; K<5; k++){
				if(d[i].num[1] == d[j].num[1])break;
				d[i].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:81:38: error: 'K' was not declared in this scope
   81 |                         for(int l=2; K<5; k++){
      |                                      ^
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[j].num[0]) && d[i].num[0] != d[j].num[5]){
			d[i].East();
		}
		//?????¢??????????¨???????
		for(int k = 0; k<4; k++){
			if(d[i].num[0] == d[j].num[0])break;
			d[i].North();
		}
		////?????¢?????????????????????
		for(int k = 0; k<4; k++){
			for(int l=2; K<5; k++){
				if(d[i].num[k] == d[j].num[k])break;
				d[i].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:81:38: error: 'K' was not declared in this scope
   81 |                         for(int l=2; K<5; k++){
      |                                      ^
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[j].num[0]) && d[i].num[0] != d[j].num[5]){
			d[i].East();
		}
		//?????¢??????????¨???????
		for(int k = 0; k<4; k++){
			if(d[i].num[0] == d[j].num[0])break;
			d[i].North();
		}
		////?????¢?????????????????????
		for(int k = 0; k<4; k++){
			if(d[i].num[1] == d[j].num[1])break;
			if(d[i].num[2] == d[j].num[2])break;
			if(d[i].num[3] == d[j].num[3])break;
			if(d[i].num[4] == d[j].num[4])break;
			if(d[i].num[5] == d[j].num[5])break;
			
				d[i].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:90:38: error: 'j' was not declared in this scope
   90 |                 if( d[i].num[0] == d[j].num[0] &&
      |                                      ^
a.cc: At global scope:
a.cc:102:9: error: 'cout' does not name a type
  102 |         cout << "Yes" << endl;
      |         ^~~~
a.cc:103:9: error: expected unqualified-id before 'return'
  103 |         return 0;
      |         ^~~~~~
a.cc:104:1: error: expected declaration before '}' token
  104 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
 
class Dice{
		int _num[6];
	public:
        void set(int num[6]){
            for(int i = 0; i < 6; i++) _num[i] = num[i];
        }
        void printTop(){
			cout << _num[0] << endl;
        }
        void printRight(){
			cout << _num[2] << endl;
        }
		void N(){
			swap(_num[0],_num[4]);
			swap(_num[0],_num[5]);
			swap(_num[0],_num[1]);
		}
		void S(){
			swap(_num[0],_num[1]);
			swap(_num[0],_num[5]);
			swap(_num[0],_num[4]);			
		}
		void W(){
			swap(_num[0],_num[3]);
			swap(_num[0],_num[5]);
			swap(_num[0],_num[2]);			
		}
		void E(){
			swap(_num[0],_num[2]);
			swap(_num[0],_num[5]);
			swap(_num[0],_num[3]);			
		}
		void SetTop(int n){
			if(_num[2] == n) W();
			else if(_num[3] == n) E();
			else{
				while(1){
					if(_num[0] == n) break;
				S();
				}
			}
		}
		void SetFront(int n){
			while(1){
				if(_num[1] == n) break;
				S(); W(); N();
			}
		}
		int Get(int n){
			return _num[n];
		}
		bool SameAs(Dice one){
			one.SetTop(this->Get(0));
			one.SetFront(this->Get(1));
			
			bool same = true;
			for(int i = 0; i < 6; i++){
				if(one.Get(i) != this->Get(i)){
					same = false; break;
				}
			}
			return same;
		}
};
 
int main(){
	int n;
	cin >> n;
	
	Dice dice[n];
	for(int i = 0; i < n; i++){
		int num[6];
		for(int j = 0; j < 6; j++){
				cin >> num[j];
		}
		dice[i].set(num);
	}
	
	for(int i = 0; i < n; i++){
		for(int j = i + 1; j < n; j++){
			if(dice[i].SameAs[dice[j]]){
				cout << "No" << endl;
				return 0;
			}
		}
	}

	cout << "Yes" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:84:42: error: invalid use of non-static member function 'bool Dice::SameAs(Dice)'
   84 |                         if(dice[i].SameAs[dice[j]]){
      |                                          ^
a.cc:55:22: note: declared here
   55 |                 bool SameAs(Dice one){
      |                      ^~~~~~
Language: C++

#include<iostream>
using namespace std;
 
class Dice{
		int _num[6];
		
	public:
        void set(int num[6]){
            for(int i = 0; i < 6; i++) _num[i] = num[i];
        }
        void printTop(){
			cout << _num[0] << endl;
        }
        void printRight(){
			cout << _num[2] << endl;
        }
		void N(){
			swap(_num[0],_num[4]);
			swap(_num[0],_num[5]);
			swap(_num[0],_num[1]);
		}
		void S(){
			swap(_num[0],_num[1]);
			swap(_num[0],_num[5]);
			swap(_num[0],_num[4]);			
		}
		void W(){
			swap(_num[0],_num[3]);
			swap(_num[0],_num[5]);
			swap(_num[0],_num[2]);			
		}
		void E(){
			swap(_num[0],_num[2]);
			swap(_num[0],_num[5]);
			swap(_num[0],_num[3]);			
		}
		void SetTop(int n){
			if(_num[2] == n) W();
			else if(_num[3] == n) E();
			else{
				while(1){
					if(_num[0] == n) break;
				S();
				}
			}
		}
		void SetFront(int n){
			while(1){
				if(_num[1] == n) break;
				S(); W(); N();
			}
		}
		int Get(int n){
			return _num[n];
		}
		bool SameAs(Dice other){
			other.SetTop(this->Get(0));
			other.SetFront(this->Get(1));
			
			bool same = true;
			for(int i = 0; i < 6; i++){
				if(other.Get(i) != this->Get(i)){
					same = false;
					break;
				}
			}
			return same;
		}
};
 
int main(){
	int n;
	cin >> n;
	
	Dice dice[n];
	for(int k = 0; k < n; k++){
		int num[6];
		for(int l = 0; l < 6; l++){
				cin >> num[j];
		}
		dice[k].set(num);
	}
	
	for(int p = 0; p < n; p++){
		for(int q = p + 1; q < n; q++){
			if(dice[p].SameAs(dice[q])){
				cout << "No" << endl;
				break;
			}
		}
	}

	cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:79:44: error: 'j' was not declared in this scope
   79 |                                 cin >> num[j];
      |                                            ^
Language: C++

#include<iostream>
using namespace std;

class Cube{
    public:
        int f[6];
        Cube(){}
        void roll_x(){roll(0,1,5,4);}
        void roll_y(){roll(0,2,5,3);}
        void roll_z(){roll(1,2,4,3);}
        void roll(int i,int j,int k,int l){
            int t=f[i];
            f[i]=f[j];
            f[j]=f[k];
            f[k]=f[l];
            f[l]=t;
        }
};

bool eq(Cube c1,Cube c2){
    for(int i=0;i<6;i++){
        if(c1.f[i]!=c2.f[i])return false;
    }
    return true;
}

bool equal(Cube c1,Cube c2){
    for(int i=0;i<6;i++){
        for(int j=0;j<4;j++){
            if(eq(c1,c2)) return true;
            c1.roll_z();
        }
        if(i%2==0)c1.roll_y();
        else c1.roll_x();
    }
    return false;
}

bool check(){
 for(int i=0;i<n-1;i++){
        for(int j=i+1;j<n;j++){
            if(equal(C[i],C[j])){
                    return false;
             }
        }
    }
  return true;
}


int main(){
    int n;
    cin>>n;
    Cube C[n];
    
    for(int i=0;i<n;i++){
        for(int j=0;j<6;j++) cin>>C[i].f[j];
    }

     if(check())cout<<"Yes"<<endl;
     elde cout<<"No"<<endl;
    
    }


    

Compiler output:
a.cc: In function 'bool check()':
a.cc:40:16: error: 'n' was not declared in this scope
   40 |  for(int i=0;i<n-1;i++){
      |                ^
a.cc:42:22: error: 'C' was not declared in this scope
   42 |             if(equal(C[i],C[j])){
      |                      ^
a.cc: In function 'int main()':
a.cc:61:6: error: 'elde' was not declared in this scope
   61 |      elde cout<<"No"<<endl;
      |      ^~~~
Language: C++

#include<iostream>
using namespace std;

class Cube{
    public:
        int f[6];
        Cube(){}
        void roll_x(){roll(0,1,5,4);}
        void roll_y(){roll(0,2,5,3);}
        void roll_z(){roll(1,2,4,3);}
        void roll(int i,int j,int k,int l){
            int t=f[i];
            f[i]=f[j];
            f[j]=f[k];
            f[k]=f[l];
            f[l]=t;
        }
};

bool eq(Cube c1,Cube c2){
    for(int i=0;i<6;i++){
        if(c1.f[i]!=c2.f[i])return false;
    }
    return true;
}

bool equal(Cube c1,Cube c2){
    for(int i=0;i<6;i++){
        for(int j=0;j<4;j++){
            if(eq(c1,c2)) return true;
            c1.roll_z();
        }
        if(i%2==0)c1.roll_y();
        else c1.roll_x();
    }
    return false;
}

bool check(){
 for(int i=0;i<n-1;i++){
        for(int j=i+1;j<n;j++){
            if(equal(C[i],C[j])){
                    return false;
             }
        }
    }
  return true;
}


int main(){
    int n;
    cin>>n;
    Cube C[n];
    
    for(int i=0;i<n;i++){
        for(int j=0;j<6;j++) cin>>C[i].f[j];
    }

     if(check())cout<<"Yes"<<endl;
     else cout<<"No"<<endl;
    
    }


    

Compiler output:
a.cc: In function 'bool check()':
a.cc:40:16: error: 'n' was not declared in this scope
   40 |  for(int i=0;i<n-1;i++){
      |                ^
a.cc:42:22: error: 'C' was not declared in this scope
   42 |             if(equal(C[i],C[j])){
      |                      ^
Language: C++

#include<iostream>
using namespace std;

class Cube{
    public:
        int f[6];
        Cube(){}
        void roll_x(){roll(0,1,5,4);}
        void roll_y(){roll(0,2,5,3);}
        void roll_z(){roll(1,2,4,3);}
        void roll(int i,int j,int k,int l){
            int t=f[i];
            f[i]=f[j];
            f[j]=f[k];
            f[k]=f[l];
            f[l]=t;
        }
};

bool eq(Cube c1,Cube c2){
    for(int i=0;i<6;i++){
        if(c1.f[i]!=c2.f[i])return false;
    }
    return true;
}

bool equal(Cube c1,Cube c2){
    for(int i=0;i<6;i++){
        for(int j=0;j<4;j++){
            if(eq(c1,c2)) return true;
            c1.roll_z();
        }
        if(i%2==0)c1.roll_y();
        else c1.roll_x();
    }
    return false;
}
    int n;
    cin>>n;
    Cube C[n];
bool check(){
 for(int i=0;i<n-1;i++){
        for(int j=i+1;j<n;j++){
            if(equal(C[i],C[j])){
                    return false;
             }
        }
    }
  return true;
}


int main(){
    
    
    for(int i=0;i<n;i++){
        for(int j=0;j<6;j++) cin>>C[i].f[j];
    }

     if(check())cout<<"Yes"<<endl;
     else cout<<"No"<<endl;
    
    }


    

Compiler output:
a.cc:39:5: error: 'cin' does not name a type
   39 |     cin>>n;
      |     ^~~
a.cc:40:12: error: size of array 'C' is not an integral constant-expression
   40 |     Cube C[n];
      |            ^
Language: C++

#include<iostream>
using namespace std;

class Cube{
    public:
        int f[6];
        Cube(){}
        void roll_x(){roll(0,1,5,4);}
        void roll_y(){roll(0,2,5,3);}
        void roll_z(){roll(1,2,4,3);}
        void roll(int i,int j,int k,int l){
            int t=f[i];
            f[i]=f[j];
            f[j]=f[k];
            f[k]=f[l];
            f[l]=t;
        }
};

bool eq(Cube c1,Cube c2){
    for(int i=0;i<6;i++){
        if(c1.f[i]!=c2.f[i])return false;
    }
    return true;
}

bool equal(Cube c1,Cube c2){
    for(int i=0;i<6;i++){
        for(int j=0;j<4;j++){
            if(eq(c1,c2)) return true;
            c1.roll_z();
        }
        if(i%2==0)c1.roll_y();
        else c1.roll_x();
    }
    return false;
}
    int n;
    
    Cube C[n];
bool check(){
 for(int i=0;i<n-1;i++){
        for(int j=i+1;j<n;j++){
            if(equal(C[i],C[j])){
                    return false;
             }
        }
    }
  return true;
}


int main(){
    
    cin>>n;
    for(int i=0;i<n;i++){
        for(int j=0;j<6;j++) cin>>C[i].f[j];
    }

     if(check())cout<<"Yes"<<endl;
     else cout<<"No"<<endl;
    
    }


    

Compiler output:
a.cc:40:12: error: size of array 'C' is not an integral constant-expression
   40 |     Cube C[n];
      |            ^