criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.*;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int[] num = new int[6];
		String[] line = sc.nextLine().solit(" ");
		for(int i=0;i<6;i++){
			num[i]=Integr.parseInt(line[i]);
		}
		Dice dice=new Dice(num);
		line=sc.nextLine()split(" ");
		for(int i=0;i<6;i++){
			num[i]=Integer.parseInt(line[i]);
		}
		Dice dice2 = new Dice(num);

		int upper = dice2.getUpper();
		int s = dice2.getS();
             
		if(dice.getLower()==s){
			dice.moveN();
		}else if(dice.getN()==s){
			dice.moveN();
			dice.moveN();
		}else if(dice.getE()==s){
			dice.moveE();
			dice.moveN();
		}else if(dice.getW()==s){
			dice.moveW();
			dice.moveN();
		}else if(dice.getUpper()==s){
			dice.moveS();
		}
             
		if(dice.getLower()==upper){
			dice.moveW();
			dice.moveW();
		}else if(dice.getW()==upper){
			dice.moveE();
		}else if(dice.getE()==upper){
			dice.moveW();
		}
		
		if(dice.getLower()==dice2.getLower() && dice.getUpper()==dice2.getUpper()&&
			dice.getN()==dice2.getN() && dice.getE()==dice2.getE()&&
			dice.getS()==dice2.getS() && dice.getW()==dice2.getW()){
				System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
}
class Dice{
//
	private final int lavel1,lavel2,lavel3,lavel4,lavel5,lavel6;
	private int w,s,e,n;
	private int upper,lower;
//	
	Dice(int[] i){
		lavel1=i[0];
		lavel2=i[1];
		lavel3=i[2];
		lavel4=i[3];
		lavel5=i[4];
		lavel6=i[5];
		
		w=lavel4;
		s=lavel2;
		e=lavel3;
		n=lavel5;
		
		upper=lavel1;
		lower=lavel6;
	}
	
	public int getUpper(){
		return upper;
	}
	public int getW(){
		return w;
	}
	public int getS(){
		return s;
	}
	public int getE(){
		return e;
	}
	public int getN(){
		return n;
	}
	public int getLower(){
		return lower;
	}
	
	public void moveW(){
		int i=lower;
		lower=w;
		w=upper;
		upper=e;
		e=i;
	}
	public void moveS(){
		int i=lower;
		lower=s;
		s=upper;
		upper=n;
		n=i;
	}
	public void moveE(){
		int i=lower;
		lower=e;
		e=upper;
		upper=w;
		w=i;
	}
	public void moveN(){
		int i=lower;
		lower=n;
		n=upper;
		upper=s;
		s=i;
	}
}

Compiler output:
Main.java:12: error: ';' expected
		line=sc.nextLine()split(" ");
		                  ^
1 error
Language: Java

import java.util.*;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int[] num = new int[6];
		String[] line = sc.nextLine().solit(" ");
		for(int i=0;i<6;i++){
			num[i]=Integr.parseInt(line[i]);
		}
		Dice dice=new Dice(num);
		line=sc.nextLine().split(" ");
		for(int i=0;i<6;i++){
			num[i]=Integer.parseInt(line[i]);
		}
		Dice dice2 = new Dice(num);

		int upper = dice2.getUpper();
		int s = dice2.getS();
             
		if(dice.getLower()==s){
			dice.moveN();
		}else if(dice.getN()==s){
			dice.moveN();
			dice.moveN();
		}else if(dice.getE()==s){
			dice.moveE();
			dice.moveN();
		}else if(dice.getW()==s){
			dice.moveW();
			dice.moveN();
		}else if(dice.getUpper()==s){
			dice.moveS();
		}
             
		if(dice.getLower()==upper){
			dice.moveW();
			dice.moveW();
		}else if(dice.getW()==upper){
			dice.moveE();
		}else if(dice.getE()==upper){
			dice.moveW();
		}
		
		if(dice.getLower()==dice2.getLower() && dice.getUpper()==dice2.getUpper()&&
			dice.getN()==dice2.getN() && dice.getE()==dice2.getE()&&
			dice.getS()==dice2.getS() && dice.getW()==dice2.getW()){
				System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
}
class Dice{
//
	private final int lavel1,lavel2,lavel3,lavel4,lavel5,lavel6;
	private int w,s,e,n;
	private int upper,lower;
//	
	Dice(int[] i){
		lavel1=i[0];
		lavel2=i[1];
		lavel3=i[2];
		lavel4=i[3];
		lavel5=i[4];
		lavel6=i[5];
		
		w=lavel4;
		s=lavel2;
		e=lavel3;
		n=lavel5;
		
		upper=lavel1;
		lower=lavel6;
	}
	
	public int getUpper(){
		return upper;
	}
	public int getW(){
		return w;
	}
	public int getS(){
		return s;
	}
	public int getE(){
		return e;
	}
	public int getN(){
		return n;
	}
	public int getLower(){
		return lower;
	}
	
	public void moveW(){
		int i=lower;
		lower=w;
		w=upper;
		upper=e;
		e=i;
	}
	public void moveS(){
		int i=lower;
		lower=s;
		s=upper;
		upper=n;
		n=i;
	}
	public void moveE(){
		int i=lower;
		lower=e;
		e=upper;
		upper=w;
		w=i;
	}
	public void moveN(){
		int i=lower;
		lower=n;
		n=upper;
		upper=s;
		s=i;
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
		String[] line = sc.nextLine().solit(" ");
		                             ^
  symbol:   method solit(String)
  location: class String
Main.java:9: error: cannot find symbol
			num[i]=Integr.parseInt(line[i]);
			       ^
  symbol:   variable Integr
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class Dice1 {
	public static void main (String [] args) {
		Scanner scan = new Scanner (System.in);
		final int DICE = 6;
		int dice[] = new int[DICE];
		int dice2[] = new int[DICE];
		String direction;
		
		for (int i = 0; i < DICE; i++) {
			dice[i] = scan.nextInt();
		}
		
		dice2 = dice;
		direction = scan.next();
		
		for (int i = 0; i < direction.length(); i++) {
			switch(direction.charAt(i)) {
			case 'N':
				dice2[0] = dice[1];
				dice2[1] = dice[5];
				dice2[4] = dice[0];
				dice2[5] = dice[4];
				break;
			case 'E':
				dice2[0] = dice[3];
				dice2[2] = dice[0];
				dice2[3] = dice[5];
				dice2[5] = dice[2];
				break;
			case 'S':
				dice2[0] = dice[4];
				dice2[1] = dice[0];
				dice2[4] = dice[5];
				dice2[5] = dice[1];
				break;
			case 'W':
				dice2[0] = dice[2];
				dice2[2] = dice[5];
				dice2[3] = dice[0];
				dice2[5] = dice[3];
				break;
			default:
				break;
			}
			
			dice2 = dice;
		
		}
		
		scan.close();
		System.out.println(dice[0]);
	}
}



Compiler output:
Main.java:3: error: class Dice1 is public, should be declared in a file named Dice1.java
public class Dice1 {
       ^
1 error
Language: Java

import java.util.Scanner;

class Main {
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int dice_1[] = new int[6];
		int dice_2[] = new int[6];
		int pip[] = new int[6];
		int count = 0;
		int order = 0;
		boolean bdice_front = false;
		int dice_front = 0;
		boolean bdice_up = false;
		int dice_up = 0;
		boolean judge;
		
		//サイコロの目の入力
		dice_1 =  make_dice(scanner);
		dice_2 =  make_dice(scanner);
		
		pip = dice_1;
		
		//命令数実行
		do {
			dice_up = dice_2[0];
			dice_front = dice_2[1];
			bdice_front = false;
			bdice_up = false;
			
			for( int i = 0; i < 4; i ++ ){
				for( int j = 0; j < 2; j ++ ){
					if(!bdice_front) {
						for( int k = 0; k < 4; k ++ ){
							if( !bdice_front ) {
								pip = diceroll_s(pip);
								if( pip[1] == dice_front ){
									bdice_front = true;
								}
							}
						}
						pip = diceroll_e(pip);
					}
				}
				if( pip[0] == dice_up ){
					bdice_up = true;
					break;
				}
				pip = diceroll_e(pip);
				
			}
			
			if( dice_2[2] == pip[2] ){
				if( dice_2[3] == pip[3] ){
					if( dice_2[4] == pip[4] ){
						if( dice_2[5] == pip[5] ){
							judge = true;
						}
					}
				}
			}else{
				judge = false;
			}
			//右面出力
			if( judge ){
				System.out.println("Yes");
			}else{
				System.out.println("No");
			}
			
			count ++;
			if( count >= order){
				break;
			}
		}while(true );
		
		scanner.close();
	}
	
	public static int[] make_dice ( Scanner scanner){
		int dice[] = new int[6];
		
		for(int i = 0; i < 6; i ++){
			dice[i] = scanner.nextInt();
		}
		
		return dice;
	}

	public static int[] diceroll_n(int[] pip){
		int dice[] = new int[6];
		for(int i = 0; i < 6; i ++){
			dice[i] = pip[i];
		}
		pip[0] = dice[1];
		pip[1] = dice[5];
		pip[2] = dice[2];
		pip[3] = dice[3];
		pip[4] = dice[0];
		pip[5] = dice[4];
		
		return pip;
	}

	public static int[] diceroll_e (int[] pip){
		int dice[] = new int[6];
		for(int i = 0; i < 6; i ++){
			dice[i] = pip[i];
		}
		pip[0] = dice[3];
		pip[1] = dice[1];
		pip[2] = dice[0];
		pip[3] = dice[5];
		pip[4] = dice[4];
		pip[5] = dice[2];
		
		return pip;
	}

	public static int[] diceroll_w (int[] pip){
		int dice[] = new int[6];
		for(int i = 0; i < 6; i ++){
			dice[i] = pip[i];
		}
		pip[0] = dice[2];
		pip[1] = dice[1];
		pip[2] = dice[5];
		pip[3] = dice[0];
		pip[4] = dice[4];
		pip[5] = dice[3];
		
		return pip;
	}

	public static int[] diceroll_s (int[] pip){
		int dice[] = new int[6];
		for(int i = 0; i < 6; i ++){
			dice[i] = pip[i];
		}
		pip[0] = dice[4];
		pip[1] = dice[0];
		pip[2] = dice[2];
		pip[3] = dice[3];
		pip[4] = dice[5];
		pip[5] = dice[1];
		
		return pip;
	}
	
}



Compiler output:
Main.java:64: error: variable judge might not have been initialized
			if( judge ){
			    ^
1 error
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		class qube{
			int [] face = new int[6], faces = new int[6];
			Integer i,j,dump=0,check = 0;


			qube(){
				for(i=0;i<6;i++){
					face[i]=sc.nextInt();
				}
				for(i=0;i<6;i++){
					faces[i]=sc.nextInt();
				}

			}
			void swap(int a,int b){
				dump = this.face[a];
				this.face[a] = this.face[b];
				this.face[b] = dump;

			}
			void move(String es){
				if(es.equals("E")){
					swap(0,2);
					swap(0,5);
					swap(0,3);
				}
				else if(es.equals("N")){
					if(nc == 4){
						this.move("E");
						ec = 0;
						
					}
					swap(4,5);
					swap(4,1);
					swap(4,0);
					nc++;
				}

}
			
			boolean comp(){
				check = 0;
				for(i=0;i<3;i++){
					for(j=0;j<3;j++){
						if(face[i]==faces[j] && face[5-i]==faces[5-j]){
							check++;
							break;
						}
						else if(face[i]==faces[5-j] && face[5-i]==faces[j]){
							check++;
							break;
						}
					}
				}
				if(check == 3){
					return true;
				}
				else{
					return false;
				}
			}

		}

		qube q = new qube();
		Integer j,k;
		
		for(j=0;j<q.n;j++){
			q.scn();

			for(k=0;;k++){
				if(q.b.equals(q.face[1])){
					break;
				}
				
				q.move("N");
				if(k.equals(3)){
					q.move("E");
				}
			}
			while(true){
				if(q.a.equals(q.face[0])){
					break;
				}
				q.move("E");
			}


			q.pt();
			q.face = q.faces.clone();
		}
		
		if(q.comp() == true){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}

	}

}



Compiler output:
Main.java:35: error: cannot find symbol
					if(nc == 4){
					   ^
  symbol:   variable nc
  location: class qube
Main.java:37: error: cannot find symbol
						ec = 0;
						^
  symbol:   variable ec
  location: class qube
Main.java:43: error: cannot find symbol
					nc++;
					^
  symbol:   variable nc
  location: class qube
Main.java:75: error: cannot find symbol
		for(j=0;j<q.n;j++){
		           ^
  symbol:   variable n
  location: variable q of type qube
Main.java:76: error: cannot find symbol
			q.scn();
			 ^
  symbol:   method scn()
  location: variable q of type qube
Main.java:79: error: cannot find symbol
				if(q.b.equals(q.face[1])){
				    ^
  symbol:   variable b
  location: variable q of type qube
Main.java:89: error: cannot find symbol
				if(q.a.equals(q.face[0])){
				    ^
  symbol:   variable a
  location: variable q of type qube
Main.java:96: error: cannot find symbol
			q.pt();
			 ^
  symbol:   method pt()
  location: variable q of type qube
8 errors
Language: C

#include<stdio.h>
 
int main(void){
    int i,n[6],s[6];
     
    for(i=0;i<6;i++){
        scanf("%d", &n[i]);
    }
    for(i=0;i<6;i++){
       scanf("%d",&s[i]);
    }
     
    if(n[0]==s[5]&&n[1]==s[1]&&n[2]==s[3]&&n[3]==s[2]&&n[4]==s[4]&&n[5]==s[0]){
    printf("Yes\n");
    }
    else if(n[0]==s[0]&&n[1]==s[1]&&n[2]==s[2]&&n[3]==s[3]&&n[4]==s[4]&&n[5]==s[5]){
    printf("Yes\n");
    }
    else if(n[0]==s[4]&&n[1]==s[0]&&n[2]==s[2]&&n[3]==s[3]&&n[4]==s[5]&&n[5]==s[1]){
    printf("Yes\n");
    }
    #include<stdio.h>
 
int main(void){
    int i,n[6],s[6];
     
    for(i=0;i<6;i++){
        scanf("%d", &n[i]);
    }
    for(i=0;i<6;i++){
       scanf("%d",&s[i]);
    }
     
    if(n[0]==s[5]&&n[1]==s[1]&&n[2]==s[3]&&n[3]==s[2]&&n[4]==s[4]&&n[5]==s[0]){
    printf("Yes\n");
    }
    else if(n[0]==s[0]&&n[1]==s[1]&&n[2]==s[2]&&n[3]==s[3]&&n[4]==s[4]&&n[5]==s[5]){
    printf("Yes\n");
    }
    else if(n[0]==s[3]&&n[1]==s[4]&&n[2]==s[5]&&n[3]==s[0]&&n[4]==s[1]&&n[5]==s[2]){
    printf("Yes\n");
    }
    else{
    printf("No\n");
    }
    return 0;
}

    else{
    printf("No\n");
    }
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:49:5: error: 'else' without a previous 'if'
   49 |     else{
      |     ^~~~
Language: C

#include<iostream>
#include<string>
#include<algorithm>
#include<map>
#include<set>
#include<utility>
#include<vector>
#include<cmath>
#include<cstdio>
#define loop(i,a,b) for(int i=a;i<b;i++) 
#define rep(i,a) loop(i,0,a)
#define pb push_back
#define mp make_pair
#define it ::iterator
#define all(in) in.begin(),in.end()
const double PI=acos(-1);
const double ESP=1e-10;
using namespace std;
void S(vector<int>&in){
  int tmp=in[1];
  in[1]=in[0];
  in[0]=in[4];
  in[4]=in[5];
  in[5]=tmp;
}
void E(vector<int>&in){
  int tmp=in[2];
  in[2]=in[0];
  in[0]=in[3];
  in[3]=in[5];
  in[5]=tmp;
}
void T(vector<int>&in){
  int tmp=in[1];
  in[1]=in[2];
  in[2]=in[4];
  in[4]=in[3];
  in[3]=tmp;
}
int main(){
  vector<int>in(6);
  rep(i,6)cin>>in[i];
  vector<int>out(6);
  rep(i,6)cin>>out[i];
  bool h=false;
  rep(i,5){
    S(in);
    if(in[0]==out[0]){h=true;break;}
  }
  if(!h){
    rep(i,5){
      E(in);
      if(in[0]==out[0])break;
    }
  }
  rep(i,5){
    T(in);
    if(in[1]==out[1])break;
  }
  h=true;
  rep(i,6)if(in[i]!=out[i])h=false;
  if(h)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}



Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>

int main(void)
{
    int i,j,top,a,b,c,d,dice[10],dice2[10];
    
    for(i=0;i<12;i++){
        scanf("%d",&dice[i]);
        if(i>=6) scanf("%d",&dice2[i-6]);
    }
    
    for(i=0;i<5;i++){
        if(dice==dice2)break;
        if(dice[0]==dice2[0]){
            for(j=0;j<4;j++){
                dicex(1,2,4,3);
                if(dice==dice2)break;
            }
        }else if(i>3){
            dicex(0,1,5,4);
        }else{
            dicex(0,2,5,3);
        }
    }
    
    if(dice==dice2){
        printf("Yes\n");
    }else{
        printf("No\n");
    }
    return 0;
}

void dicex(a,b,c,d)
{
    top=dice2[a];
    dice2[a]=dice2[b];
    dice2[b]=dice2[c];
    dice2[c]=dice2[d];
    dice2[d]=top;
}



Compiler output:
main.c: In function 'main':
main.c:16:17: error: implicit declaration of function 'dicex' [-Wimplicit-function-declaration]
   16 |                 dicex(1,2,4,3);
      |                 ^~~~~
main.c: At top level:
main.c:34:6: warning: conflicting types for 'dicex'; have 'void()'
   34 | void dicex(a,b,c,d)
      |      ^~~~~
main.c:16:17: note: previous implicit declaration of 'dicex' with type 'void()'
   16 |                 dicex(1,2,4,3);
      |                 ^~~~~
main.c: In function 'dicex':
main.c:34:6: error: type of 'a' defaults to 'int' [-Wimplicit-int]
   34 | void dicex(a,b,c,d)
      |      ^~~~~
main.c:34:6: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:34:6: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:34:6: error: type of 'd' defaults to 'int' [-Wimplicit-int]
main.c:36:5: error: 'top' undeclared (first use in this function)
   36 |     top=dice2[a];
      |     ^~~
main.c:36:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:36:9: error: 'dice2' undeclared (first use in this function); did you mean 'dicex'?
   36 |     top=dice2[a];
      |         ^~~~~
      |         dicex
Language: C

#include <stdio.h>

int main(void)
{
    int i,j,top,a,b,c,d,dice[10],dice2[10];
    
    for(i=0;i<12;i++){
        scanf("%d",&dice[i]);
        if(i>=6) scanf("%d",&dice2[i-6]);
    }
    
    for(i=0;i<5;i++){
        if(dice==dice2)break;
        if(dice[0]==dice2[0]){
            for(j=0;j<4;j++){
                dicex(1,2,4,3);
                if(dice==dice2)break;
            }
        }else if(i>3){
            dicex(0,1,5,4);
        }else{
            dicex(0,2,5,3);
        }
    }
    
    if(dice==dice2){
        printf("Yes\n");
    }else{
        printf("No\n");
    }
    return 0;
}

int dicex(a,b,c,d)
{
    top=dice2[a];
    dice2[a]=dice2[b];
    dice2[b]=dice2[c];
    dice2[c]=dice2[d];
    dice2[d]=top;
}



Compiler output:
main.c: In function 'main':
main.c:16:17: error: implicit declaration of function 'dicex' [-Wimplicit-function-declaration]
   16 |                 dicex(1,2,4,3);
      |                 ^~~~~
main.c: In function 'dicex':
main.c:34:5: error: type of 'a' defaults to 'int' [-Wimplicit-int]
   34 | int dicex(a,b,c,d)
      |     ^~~~~
main.c:34:5: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:34:5: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:34:5: error: type of 'd' defaults to 'int' [-Wimplicit-int]
main.c:36:5: error: 'top' undeclared (first use in this function)
   36 |     top=dice2[a];
      |     ^~~
main.c:36:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:36:9: error: 'dice2' undeclared (first use in this function); did you mean 'dicex'?
   36 |     top=dice2[a];
      |         ^~~~~
      |         dicex
Language: C

#include <stdio.h>

int main(void)
{
    int i,j,a,b,c,d,dice[10],dice2[10];
    
    for(i=0;i<12;i++){
        scanf("%d",&dice[i]);
        if(i>=6) scanf("%d",&dice2[i-6]);
    }
    
    for(i=0;i<5;i++){
        if(dice==dice2)break;
        if(dice[0]==dice2[0]){
            for(j=0;j<4;j++){
                dicex(1,2,4,3);
                if(dice==dice2)break;
            }
        }else if(i>3){
            dicex(0,1,5,4);
        }else{
            dicex(0,2,5,3);
        }
    }
    
    if(dice==dice2){
        printf("Yes\n");
    }else{
        printf("No\n");
    }
    return 0;
}

int dicex(a,b,c,d)
{
    int top;
    
    top=dice2[a];
    dice2[a]=dice2[b];
    dice2[b]=dice2[c];
    dice2[c]=dice2[d];
    dice2[d]=top;
}



Compiler output:
main.c: In function 'main':
main.c:16:17: error: implicit declaration of function 'dicex' [-Wimplicit-function-declaration]
   16 |                 dicex(1,2,4,3);
      |                 ^~~~~
main.c: In function 'dicex':
main.c:34:5: error: type of 'a' defaults to 'int' [-Wimplicit-int]
   34 | int dicex(a,b,c,d)
      |     ^~~~~
main.c:34:5: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:34:5: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:34:5: error: type of 'd' defaults to 'int' [-Wimplicit-int]
main.c:38:9: error: 'dice2' undeclared (first use in this function); did you mean 'dicex'?
   38 |     top=dice2[a];
      |         ^~~~~
      |         dicex
main.c:38:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int dice2[10];

int main(void)
{
    int i,j,a,b,c,d,dicex,dice[10];
    
    for(i=0;i<12;i++){
        scanf("%d",&dice[i]);
        if(i>=6) scanf("%d",&dice2[i-6]);
    }
    
    for(i=0;i<5;i++){
        if(dice==dice2)break;
        if(dice[0]==dice2[0]){
            for(j=0;j<4;j++){
                dicex(1,2,4,3);
                if(dice==dice2)break;
            }
        }else if(i>3){
            dicex(0,1,5,4);
        }else{
            dicex(0,2,5,3);
        }
    }
    
    if(dice==dice2){
        printf("Yes\n");
    }else{
        printf("No\n");
    }
    return 0;
}

int dicex(a,b,c,d)
{
    int top;
    
    top=dice2[a];
    dice2[a]=dice2[b];
    dice2[b]=dice2[c];
    dice2[c]=dice2[d];
    dice2[d]=top;
}



Compiler output:
main.c: In function 'main':
main.c:18:17: error: called object 'dicex' is not a function or function pointer
   18 |                 dicex(1,2,4,3);
      |                 ^~~~~
main.c:7:21: note: declared here
    7 |     int i,j,a,b,c,d,dicex,dice[10];
      |                     ^~~~~
main.c:22:13: error: called object 'dicex' is not a function or function pointer
   22 |             dicex(0,1,5,4);
      |             ^~~~~
main.c:7:21: note: declared here
    7 |     int i,j,a,b,c,d,dicex,dice[10];
      |                     ^~~~~
main.c:24:13: error: called object 'dicex' is not a function or function pointer
   24 |             dicex(0,2,5,3);
      |             ^~~~~
main.c:7:21: note: declared here
    7 |     int i,j,a,b,c,d,dicex,dice[10];
      |                     ^~~~~
main.c: In function 'dicex':
main.c:36:5: error: type of 'a' defaults to 'int' [-Wimplicit-int]
   36 | int dicex(a,b,c,d)
      |     ^~~~~
main.c:36:5: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:36:5: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:36:5: error: type of 'd' defaults to 'int' [-Wimplicit-int]
Language: C

#include <stdio.h>

int dice2[10];
int dicex(a,b,c,d);

int main(void)
{
    int i,j,dice[10];
    
    for(i=0;i<12;i++){
        scanf("%d",&dice[i]);
        if(i>=6) scanf("%d",&dice2[i-6]);
    }
    
    for(i=0;i<5;i++){
        if(dice==dice2)break;
        if(dice[0]==dice2[0]){
            for(j=0;j<4;j++){
                dice2=dicex(1,2,4,3);
                if(dice==dice2)break;
            }
        }else if(i>3){
            dice2=dicex(0,1,5,4);
        }else{
            dice2=dicex(0,2,5,3);
        }
    }
    
    if(dice==dice2){
        printf("Yes\n");
    }else{
        printf("No\n");
    }
    return 0;
}

int dicex(a,b,c,d)
{
    int top;
    
    top=dice2[a];
    dice2[a]=dice2[b];
    dice2[b]=dice2[c];
    dice2[c]=dice2[d];
    dice2[d]=top;
    
    return dice2;
}



Compiler output:
main.c:4:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
    4 | int dicex(a,b,c,d);
      | ^~~
main.c: In function 'main':
main.c:19:22: error: assignment to expression with array type
   19 |                 dice2=dicex(1,2,4,3);
      |                      ^
main.c:23:18: error: assignment to expression with array type
   23 |             dice2=dicex(0,1,5,4);
      |                  ^
main.c:25:18: error: assignment to expression with array type
   25 |             dice2=dicex(0,2,5,3);
      |                  ^
main.c: In function 'dicex':
main.c:37:5: error: type of 'a' defaults to 'int' [-Wimplicit-int]
   37 | int dicex(a,b,c,d)
      |     ^~~~~
main.c:37:5: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:37:5: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:37:5: error: type of 'd' defaults to 'int' [-Wimplicit-int]
main.c:47:12: error: returning 'int *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
   47 |     return dice2;
      |            ^~~~~
Language: C

#include <stdio.h>

int dice2[10];
int dicex(int,int,int,int);

int main(void)
{
    int i,j,dice[10];
    
    for(i=0;i<12;i++){
        scanf("%d",&dice[i]);
        if(i>=6) scanf("%d",&dice2[i-6]);
    }
    
    for(i=0;i<5;i++){
        if(dice==dice2)break;
        if(dice[0]==dice2[0]){
            for(j=0;j<4;j++){
                dice2=dicex(1,2,4,3);
                if(dice==dice2)break;
            }
        }else if(i>3){
            dice2=dicex(0,1,5,4);
        }else{
            dice2=dicex(0,2,5,3);
        }
    }
    
    if(dice==dice2){
        printf("Yes\n");
    }else{
        printf("No\n");
    }
    return 0;
}

int dicex(a,b,c,d)
{
    int top;
    
    top=dice2[a];
    dice2[a]=dice2[b];
    dice2[b]=dice2[c];
    dice2[c]=dice2[d];
    dice2[d]=top;
    
    return dice2;
}



Compiler output:
main.c: In function 'main':
main.c:19:22: error: assignment to expression with array type
   19 |                 dice2=dicex(1,2,4,3);
      |                      ^
main.c:23:18: error: assignment to expression with array type
   23 |             dice2=dicex(0,1,5,4);
      |                  ^
main.c:25:18: error: assignment to expression with array type
   25 |             dice2=dicex(0,2,5,3);
      |                  ^
main.c: In function 'dicex':
main.c:37:5: error: type of 'a' defaults to 'int' [-Wimplicit-int]
   37 | int dicex(a,b,c,d)
      |     ^~~~~
main.c:37:5: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:37:5: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:37:5: error: type of 'd' defaults to 'int' [-Wimplicit-int]
main.c:47:12: error: returning 'int *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
   47 |     return dice2;
      |            ^~~~~
Language: C

#include <stdio.h>

int dice2[10];
int dicex(int,int,int,itn)


int main(void)
{
    int i,j,a,b,c,d,dice[10];
    
    for(i=0;i<12;i++){
        scanf("%d",&dice[i]);
        if(i>=6) scanf("%d",&dice2[i-6]);
    }
    
    for(i=0;i<5;i++){
        if(dice==dice2)break;
        if(dice[0]==dice2[0]){
            for(j=0;j<4;j++){
                *dice2=dicex(1,2,4,3);
                if(dice==dice2)break;
            }
        }else if(i>3){
            *dice2=dicex(0,1,5,4);
        }else{
            *dice2=dicex(0,2,5,3);
        }
    }
    
    if(dice==dice2){
        printf("Yes\n");
    }else{
        printf("No\n");
    }
    return 0;
}

int dicex(int a,int b,int c,int d)
{
    int top;
    
    top=dice2[a];
    dice2[a]=dice2[b];
    dice2[b]=dice2[c];
    dice2[c]=dice2[d];
    dice2[d]=top;
}


Compiler output:
main.c:4:23: error: unknown type name 'itn'; did you mean 'int'?
    4 | int dicex(int,int,int,itn)
      |                       ^~~
      |                       int
Language: C

#include <stdio.h>

int dice2[10];
int dicex(int,int,int,int)


int main(void)
{
    int i,j,a,b,c,d,dice[10];
    
    for(i=0;i<12;i++){
        scanf("%d",&dice[i]);
        if(i>=6) scanf("%d",&dice2[i-6]);
    }
    
    for(i=0;i<5;i++){
        if(dice==dice2)break;
        if(dice[0]==dice2[0]){
            for(j=0;j<4;j++){
                *dice2=dicex(1,2,4,3);
                if(dice==dice2)break;
            }
        }else if(i>3){
            *dice2=dicex(0,1,5,4);
        }else{
            *dice2=dicex(0,2,5,3);
        }
    }
    
    if(dice==dice2){
        printf("Yes\n");
    }else{
        printf("No\n");
    }
    return 0;
}

int dicex(int a,int b,int c,int d)
{
    int top;
    
    top=dice2[a];
    dice2[a]=dice2[b];
    dice2[b]=dice2[c];
    dice2[c]=dice2[d];
    dice2[d]=top;
}


Compiler output:
main.c: In function 'dicex':
main.c:8:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    8 | {
      | ^
main.c:39:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   39 | {
      | ^
main.c:48: error: expected '{' at end of input
Language: C

#include <stdio.h>

int dice2[10];
int dicex(int,int,int,int)


int main(void)
{
    int i,j,dice[10];
    
    for(i=0;i<12;i++){
        scanf("%d",&dice[i]);
        if(i>=6) scanf("%d",&dice2[i-6]);
    }
    
    for(i=0;i<5;i++){
        if(dice==dice2)break;
        if(dice[0]==dice2[0]){
            for(j=0;j<4;j++){
                *dice2=dicex(1,2,4,3);
                if(dice==dice2)break;
            }
        }else if(i>3){
            *dice2=dicex(0,1,5,4);
        }else{
            *dice2=dicex(0,2,5,3);
        }
    }
    
    if(dice==dice2){
        printf("Yes\n");
    }else{
        printf("No\n");
    }
    return 0;
}

int dicex(int a,int b,int c,int d)
{
    int top;
    
    top=dice2[a];
    dice2[a]=dice2[b];
    dice2[b]=dice2[c];
    dice2[c]=dice2[d];
    dice2[d]=top;
}


Compiler output:
main.c: In function 'dicex':
main.c:8:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    8 | {
      | ^
main.c:39:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   39 | {
      | ^
main.c:48: error: expected '{' at end of input
Language: C

#include <stdio.h>

int dice2[10];
int dicex(int a,int b,int c,int d)


int main(void)
{
    int i,j,dice[10];
    
    for(i=0;i<12;i++){
        scanf("%d",&dice[i]);
        if(i>=6) scanf("%d",&dice2[i-6]);
    }
    
    for(i=0;i<5;i++){
        if(dice==dice2)break;
        if(dice[0]==dice2[0]){
            for(j=0;j<4;j++){
                *dice2=dicex(1,2,4,3);
                if(dice==dice2)break;
            }
        }else if(i>3){
            *dice2=dicex(0,1,5,4);
        }else{
            *dice2=dicex(0,2,5,3);
        }
    }
    
    if(dice==dice2){
        printf("Yes\n");
    }else{
        printf("No\n");
    }
    return 0;
}

int dicex(int a,int b,int c,int d)
{
    int top;
    
    top=dice2[a];
    dice2[a]=dice2[b];
    dice2[b]=dice2[c];
    dice2[c]=dice2[d];
    dice2[d]=top;
}


Compiler output:
main.c: In function 'dicex':
main.c:8:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    8 | {
      | ^
main.c:39:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   39 | {
      | ^
main.c:48: error: expected '{' at end of input
Language: C

#include <stdio.h>

int dice2[10];
int dicex(int a,int b,int c,int d);

int main(void)
{
    int i,j,dice[10];
    
    for(i=0;i<12;i++){
        scanf("%d",&dice[i]);
        if(i>=6) scanf("%d",&dice2[i-6]);
    }
    
    for(i=0;i<5;i++){
        if(dice==dice2)break;
        if(dice[0]==dice2[0]){
            for(j=0;j<4;j++){
                *dice2=dicex(1,2,4,3);
                if(dice==dice2)break;
            }
        }else if(i>3){
            *dice2=dicex(0,1,5,4);
        }else{
            *dice2=dicex(0,2,5,3);
        }
    }
    
    if(dice==dice2){
        printf("Yes\n");
    }else{
        printf("No\n");
    }
    return 0;
}

int dicex(int a,int b,int c,int d)
{
    int top;
    
    top=dice2[a];
    dice2[a]=dice2[b];
    dice2[b]=dice2[c];
    dice2[c]=dice2[d];
    dice2[d]=top;
    
    return dince2
}


Compiler output:
main.c: In function 'dicex':
main.c:47:12: error: 'dince2' undeclared (first use in this function); did you mean 'dice2'?
   47 |     return dince2
      |            ^~~~~~
      |            dice2
main.c:47:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:47:18: error: expected ';' before '}' token
   47 |     return dince2
      |                  ^
      |                  ;
   48 | }
      | ~
Language: C

#include <stdio.h>

int dice2[10];
int dicex(int a,int b,int c,int d);

int main(void)
{
    int i,j,dice[10];
    
    for(i=0;i<12;i++){
        scanf("%d",&dice[i]);
        if(i>=6) scanf("%d",&dice2[i-6]);
    }
    
    for(i=0;i<5;i++){
        if(dice==dice2)break;
        if(dice[0]==dice2[0]){
            for(j=0;j<4;j++){
                *dice2=dicex(1,2,4,3);
                if(dice==dice2)break;
            }
        }else if(i>3){
            *dice2=dicex(0,1,5,4);
        }else{
            *dice2=dicex(0,2,5,3);
        }
    }
    
    if(dice==dice2){
        printf("Yes\n");
    }else{
        printf("No\n");
    }
    return 0;
}

int dicex(int a,int b,int c,int d)
{
    int top;
    
    top=dice2[a];
    dice2[a]=dice2[b];
    dice2[b]=dice2[c];
    dice2[c]=dice2[d];
    dice2[d]=top;
    
    return dince2;
}


Compiler output:
main.c: In function 'dicex':
main.c:47:12: error: 'dince2' undeclared (first use in this function); did you mean 'dice2'?
   47 |     return dince2;
      |            ^~~~~~
      |            dice2
main.c:47:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <string.h>

int dice2[10];


int main(void)
{
    int i,j,x,top,dice[10];

    for(i=0;i<6;i++){
        scanf("%d",&dice[i]);
    }
    for(i=0;i<6;i++){
        scanf("%d",&dice2[i]);
    }
    x=dice[0];
    
    for(i=0;i<6;i++){
        if(memcmp((void*)dice,(void*)dice2,6)==0)break;

        }else if(i<4){
                top=dice2[0];
                dice2[0]=dice2[1];
                dice2[1]=dice2[5];
                dice2[5]=dice2[4];
                dice2[4]=top;
        }else{
                top=dice2[0];
                dice2[0]=dice2[2];
                dice2[2]=dice2[5];
                dice2[5]=dice2[3];
                dice2[3]=top;
        }
    }

    if(memcmp((void*)dice,(void*)dice2,6)==0){
        printf("Yes\n");
    }else{
        printf("No\n");
    }
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:22:10: error: 'else' without a previous 'if'
   22 |         }else if(i<4){
      |          ^~~~
main.c: At top level:
main.c:37:5: error: expected identifier or '(' before 'if'
   37 |     if(memcmp((void*)dice,(void*)dice2,6)==0){
      |     ^~
main.c:39:6: error: expected identifier or '(' before 'else'
   39 |     }else{
      |      ^~~~
main.c:42:5: error: expected identifier or '(' before 'return'
   42 |     return 0;
      |     ^~~~~~
main.c:43:1: error: expected identifier or '(' before '}' token
   43 | }
      | ^
Language: C

#include <stdio.h>
#include <string.h>

int dice2[10];


int main(void)
{
    int i,j,x,top,dice[10];

    for(i=0;i<6;i++){
        scanf("%d",&dice[i]);
    }
    for(i=0;i<6;i++){
        scanf("%d",&dice2[i]);
    }
    
    for(i=0;i<6;i++){
        if(memcmp((void*)dice,(void*)dice2,6)==0)break;
        if(dice[0]==dice2[0]){
            for(j=0;j<4;j++){
                top=dice2[1];
                dice2[1]=dice2[2];
                dice2[2]=dice2[4];
                dice2[4]=dice2[3];
                dice2[3]=top;
                if(memcmp((void*)dice,(void*)dice2,6)==0) gotu OUT;
            }
        }else if(i<4){
                top=dice2[0];
                dice2[0]=dice2[1];
                dice2[1]=dice2[5];
                dice2[5]=dice2[4];
                dice2[4]=top;
        }else{
                top=dice2[0];
                dice2[0]=dice2[2];
                dice2[2]=dice2[5];
                dice2[5]=dice2[3];
                dice2[3]=top;
        }
    }
    OUT:

    if(memcmp((void*)dice,(void*)dice2,6)==0){
        printf("Yes\n");
    }else{
        printf("No\n");
    }
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:27:59: error: 'gotu' undeclared (first use in this function)
   27 |                 if(memcmp((void*)dice,(void*)dice2,6)==0) gotu OUT;
      |                                                           ^~~~
main.c:27:59: note: each undeclared identifier is reported only once for each function it appears in
main.c:27:63: error: expected ';' before 'OUT'
   27 |                 if(memcmp((void*)dice,(void*)dice2,6)==0) gotu OUT;
      |                                                               ^~~~
      |                                                               ;
Language: C

#include <stdio.h>
#include <string.h>

int dice2[10];


int main(void)
{
    int i,j,x,top,dice[10];

    for(i=0;i<6;i++){
        scanf("%d",&dice[i]);
    }
    for(i=0;i<6;i++){
        scanf("%d",&dice2[i]);
    }
    
    for(i=0;i<8;i++){
        if(memcmp(dice,dice2,sizeof(int))==0)break;

        }else if(i<4){
                top=dice2[0];
                dice2[0]=dice2[1];
                dice2[1]=dice2[5];
                dice2[5]=dice2[4];
                dice2[4]=top;
        }else{
                top=dice2[0];
                dice2[0]=dice2[2];
                dice2[2]=dice2[5];
                dice2[5]=dice2[3];
                dice2[3]=top;
        }
    }
    OUT:

    if(memcmp(dice,dice2,sizeof(int))==0){
        printf("Yes\n");
    }else{
        printf("No\n");
    }
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:21:10: error: 'else' without a previous 'if'
   21 |         }else if(i<4){
      |          ^~~~
main.c: At top level:
main.c:35:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
   35 |     OUT:
      |        ^
main.c:39:6: error: expected identifier or '(' before 'else'
   39 |     }else{
      |      ^~~~
main.c:42:5: error: expected identifier or '(' before 'return'
   42 |     return 0;
      |     ^~~~~~
main.c:43:1: error: expected identifier or '(' before '}' token
   43 | }
      | ^
Language: C

#include <stdio.h>
#include <string.h>

int E[6] = {3,0,-2,2,0,-3};
int N[6] = {1,4,0,0,-4,-1};
int lsp[6] = {0,1,2,-2,-1,0};


void DICE(int a,int d[]){
	
int d2[6];
int i;

	if(a == 0){
	for(i = 0;i < 6; i++){
		d2[i] = d[i + E[i]];
		}
		}	
	if(a == 1){
	for(i = 0;i < 6; i++){
		d2[i] = d[i + N[i]];
		}
		}	
	memcpy(d,d2,6 * sizeof(int));
}


void l_spin(int d[]){
	int d2[6];
	int i;
	
	for(i = 0; i < 6; i++){
		d2[i] = d[i + lsp[i]];
	}
	
	memcpy(d,d2,6 * sizeof(int));
}


int main(voide)
{
int d[6], d2[6],d3[6];
int i, j, count, count1,count2, mark = 0;


//????????£???
for(i = 0; i < 6 ; i++)
scanf("%d",&d[i]);
for(i = 0; i < 6 ; i++)
scanf("%d",&d2[i]);

memcpy(d3,d2,6 * sizeof(int));

//?????¢?????????????????????
for(i = 0,count = 0; i < 3; i++){
	for(j = 0,count1 = 0; j < 6; j++){
		if(d[i] == d2[j] && d[5 - i] == d2[5 - j]){
			count1 = 10; break;
		}
	}
	if(count1 == 10)
		count++;
}


if(count = 3){
	for(i = 0,count1 = 0;i < 6; i++){
		if(d[0] == d2[i]){
			count1++;
		}
	}

	for(i = 0,count2 = 0;i < 6; i++){
		if(d[1] == d2[i]){
			count2++;
		}
	}
	
	
	for(i = 0; i < count1; i++){
	
	memcpy(d2,d3,6 * sizeof(int));
	
	while(1){
	DICE(0,d2);
	if(d[0] == d2[0]) break;
	DICE(1,d2);
	if(d[0] == d2[0]) break;
}
memcpy(d3,d2,6 * sizeof(int));


for(j = 0; j < count2; j++){
while(1){
	l_spin(d);
	if(d[1] == b) break;
}
	if(d[0] == d2[0] && d[1] == d2[1] && d[2] == d2[2] && d1[3] == d2[3] && d1[4] == d2[4] && d1[5] == d2[5]){
			mark = 10; break;
		}
		
	}

if(mark == 10)
	break;
}
}


if(mark == 10)
	printf("Yes\n");
else
	printf("No\n");

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:40:5: error: type of 'voide' defaults to 'int' [-Wimplicit-int]
   40 | int main(voide)
      |     ^~~~
main.c:96:20: error: 'b' undeclared (first use in this function)
   96 |         if(d[1] == b) break;
      |                    ^
main.c:96:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:98:63: error: 'd1' undeclared (first use in this function); did you mean 'd3'?
   98 |         if(d[0] == d2[0] && d[1] == d2[1] && d[2] == d2[2] && d1[3] == d2[3] && d1[4] == d2[4] && d1[5] == d2[5]){
      |                                                               ^~
      |                                                               d3
Language: C

#include "sub.h"

#include<stdio.h>

struct dice{
    int d[6],tmp[6];
};
struct dice dice1;
struct dice dice2;

void init1(int n[6]){
    int i;
    for(i=0;i<6;i++){
        dice1.d[i]=n[i];
    }
}
void init2(int n[6]){
    int i;
    for(i=0;i<6;i++){
        dice2.d[i]=n[i];
    }
}
void rooldice(char c){
    int i;
    for(i=0;i<6;i++){
        dice1.tmp[i]=dice1.d[i];
    }
    if(c=='N'){
        dice1.d[0]=dice1.tmp[1];
        dice1.d[1]=dice1.tmp[5];
        dice1.d[2]=dice1.tmp[2];
        dice1.d[3]=dice1.tmp[3];
        dice1.d[4]=dice1.tmp[0];
        dice1.d[5]=dice1.tmp[4];
    }
    else if(c=='E'){
        dice1.d[0]=dice1.tmp[3];
        dice1.d[1]=dice1.tmp[1];
        dice1.d[2]=dice1.tmp[0];
        dice1.d[3]=dice1.tmp[5];
        dice1.d[4]=dice1.tmp[4];
        dice1.d[5]=dice1.tmp[2];
    }
    else if(c=='W'){
        dice1.d[0]=dice1.tmp[2];
        dice1.d[1]=dice1.tmp[1];
        dice1.d[2]=dice1.tmp[5];
        dice1.d[3]=dice1.tmp[0];
        dice1.d[4]=dice1.tmp[4];
        dice1.d[5]=dice1.tmp[3];
    }
    else if(c=='S'){
        dice1.d[0]=dice1.tmp[4];
        dice1.d[1]=dice1.tmp[0];
        dice1.d[2]=dice1.tmp[2];
        dice1.d[3]=dice1.tmp[3];
        dice1.d[4]=dice1.tmp[5];
        dice1.d[5]=dice1.tmp[1];
    }
    else if(c=='R'){
        dice1.d[0]=dice1.tmp[0];
        dice1.d[1]=dice1.tmp[3];
        dice1.d[2]=dice1.tmp[1];
        dice1.d[3]=dice1.tmp[4];
        dice1.d[4]=dice1.tmp[2];
        dice1.d[5]=dice1.tmp[5];
    }
}

int compare(){
    int i;
    for (i=0; i<6; i++) {
        if(dice1.d[i]!=dice2.d[i]){
            
            return 0;
        }
    }
    return 1;
}
int main()
{
    int n[6];
    int i,j;
    int ok=0;
    for(i=0;i<6;i++){
        scanf("%d",&n[i]);
    }
    init1(n);
    for(i=0;i<6;i++){
        scanf("%d",&n[i]);
    }
    init2(n);
    for(i=0;i<4;i++){
        for(j=0;j<4;j++){
            rooldice('N');
            rooldice('E');
            rooldice('S');
            if(compare()) ok=1;
        }
        rooldice('N');
    }
    rooldice('E');
    for(i=0;i<2;i++){
        for(j=0;j<4;j++){
            rooldice('N');
            rooldice('E');
            rooldice('S');
            if(compare()) ok=1;
        }
        rooldice('W');
        rooldice('W');
    }
    if(ok) printf("Yes");
    else puts("No");
    return 0;
}

Compiler output:
main.c:1:10: fatal error: sub.h: No such file or directory
    1 | #include "sub.h"
      |          ^~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
      
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 main(void){
  dice d1,d2;
  dice *root;
       
  root=&d2;
  scanf("%d%d%d%d%d%d",&d1.up,&d1.front,&d1.right,&d1.left,&d1.back,&d1.down);
  scanf("%d%d%d%d%d%d",&d2.up,&d2.front,&d2.right,&d2.left,&d2.back,&d2.down);

  if(d1.up==d2.up) ;
  else if(d1.up==d2.front)  rotate=(root,'N');
  else if(d1.up==d2.right)  rotate=(root,'W');
  else if(d1.up==d2.left)  rotate=(root,'E');
  else if(d1.up==d2.back)  rotate=(root,'S');
  else if(d1.up==d2.down){
    rotate=(root,'N');  rotate=(root,'N');
  }
   
  if(d1.front==d2.down)  printf("No\n");
  else if(d1.front==d2.front){
    if(d1.right==d2.right && d1.back==d2.back && d1.left==d2.left)  printf("Yes\n");
    else printf("No\n");
  } else if (d1.front==d2.right) {
    if(d1.right==d2.back && d1.back==d2.left && d1.left==d2.front)  printf("Yes\n");
    else printf("No\n");
  } else if(d1.front==d2.back) {
    if(d1.right==d2.left && d1.back==d2.front && d1.left==d2.right)  printf("Yes\n");
    else printf("No\n");
  } else if(d1.front==d2.left) {
    if(d1.right==d2.front && d1.back==d2.right && d1.left==d2.back)  printf("Yes\n");
    else printf("No\n");
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:53:35: error: lvalue required as left operand of assignment
   53 |   else if(d1.up==d2.front)  rotate=(root,'N');
      |                                   ^
main.c:54:35: error: lvalue required as left operand of assignment
   54 |   else if(d1.up==d2.right)  rotate=(root,'W');
      |                                   ^
main.c:55:34: error: lvalue required as left operand of assignment
   55 |   else if(d1.up==d2.left)  rotate=(root,'E');
      |                                  ^
main.c:56:34: error: lvalue required as left operand of assignment
   56 |   else if(d1.up==d2.back)  rotate=(root,'S');
      |                                  ^
main.c:58:11: error: lvalue required as left operand of assignment
   58 |     rotate=(root,'N');  rotate=(root,'N');
      |           ^
main.c:58:31: error: lvalue required as left operand of assignment
   58 |     rotate=(root,'N');  rotate=(root,'N');
      |                               ^
Language: C



#include <stdio.h>
        
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_judge(dice *d){
  int num=0;

  if(d->up==d->front)  num++;
  if(d->up==d->right)  num++;
  if(d->up==d->back)  num++;
  if(d->up==d->left)  num++;
  if(d->up==d->down)  num++;
  if(d->front==d->right)  num++;
  if(d->front==d->back)  num++;
  if(d->front==d->left)  num++;
  if(d->front==d->down)  num++;
  if(d->right==d->back)  num++;
  if(d->right==d->left)  num++;
  if(d->right==d->down)  num++;
  if(d->back==d->left)  num++;
  if(d->back==d->down)  num++;
  if(d->left==d->down)  num++;

  return num;
}
   
int main(void){
  dice d1,d2;
  dice *root;
  int judge;
         
  root=&d1;
  scanf("%d%d%d%d%d%d",&d1.up,&d1.front,&d1.right,&d1.left,&d1.back,&d1.down);
  scanf("%d%d%d%d%d%d",&d2.up,&d2.front,&d2.right,&d2.left,&d2.back,&d2.down);

  judge=dice_judge(root);
  if(judge>=10){
    printf("Yes\n");  exit;
  }

  root=&d2;
  if(d1.up==d2.up) ;
  else if(d1.up==d2.front)  root=rotate(root,'N');
  else if(d1.up==d2.right)  root=rotate(root,'W');
  else if(d1.up==d2.left)  root=rotate(root,'E');
  else if(d1.up==d2.back)  root=rotate(root,'S');
  else if(d1.up==d2.down){
    root=rotate(root,'N');  root=rotate(root,'N');
  }
     
  if(d1.front==d2.down)  printf("No\n");
  else if(d1.front==d2.front){
    if(d1.right==d2.right && d1.back==d2.back && d1.left==d2.left)  printf("Yes\n");
    else printf("No\n");
  } else if (d1.front==d2.right) {
    if(d1.right==d2.back && d1.back==d2.left && d1.left==d2.front)  printf("Yes\n");
    else printf("No\n");
  } else if(d1.front==d2.back) {
    if(d1.right==d2.left && d1.back==d2.front && d1.left==d2.right)  printf("Yes\n");
    else printf("No\n");
  } else if(d1.front==d2.left) {
    if(d1.right==d2.front && d1.back==d2.right && d1.left==d2.back)  printf("Yes\n");
    else printf("No\n");
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:79:23: error: 'exit' undeclared (first use in this function)
   79 |     printf("Yes\n");  exit;
      |                       ^~~~
main.c:4:1: note: 'exit' is defined in header '<stdlib.h>'; this is probably fixable by adding '#include <stdlib.h>'
    3 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    4 | 
main.c:79:23: note: each undeclared identifier is reported only once for each function it appears in
   79 |     printf("Yes\n");  exit;
      |                       ^~~~
Language: C

#include<stdio.h>

int main(void){

    int d1(6);
    int d2(6);
    for(auto&e:d1){
        scanf("%d",&e);
    }
    for(auto&e:d2){
        scanf("%d",&e);
    }

    for(int i=0;i<4;i++){
        int tmp1=d1[0];
        d1[0]=d1[2], d1[2]=d1[5], d1[5]=d1[3], d1[3]=tmp1;
        for(int j=0;j<4;j++){
            int tmp2=d1[0];
            d1[0]=d1[1], d1[1]=d1[5], d1[5]=d1[4], d1[4]=tmp2;
            for(int k=0;k<4;k++){
                int tmp3=d1[1];
                d1[1]=d1[2], d1[2]=d1[4], d1[4]=d1[3], d1[3]=tmp3;
                if(equal(d1.cbegin(),d1.cend(),d2.cbegin())){
                    printf("Yes\n");
                    return 0;
                }
            }
        }
    }
    printf("No\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:12: error: expected declaration specifiers or '...' before numeric constant
    5 |     int d1(6);
      |            ^
main.c:6:12: error: expected declaration specifiers or '...' before numeric constant
    6 |     int d2(6);
      |            ^
main.c:7:13: error: expected identifier or '(' before '&' token
    7 |     for(auto&e:d1){
      |             ^
main.c:10:5: error: expected expression before 'for'
   10 |     for(auto&e:d2){
      |     ^~~
main.c:31:5: error: expected expression before 'return'
   31 |     return 0;
      |     ^~~~~~
main.c:32:1: error: expected expression before '}' token
   32 | }
      | ^