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

import java.util.Scanner;

public class HelloWorld{
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int m = scanner.nextInt();
		int n = scanner.nextInt();
		int gcd = getGCD(m, n);
		while(m <= 2000000000 && n <= 2000000000){
			System.out.println(getLCM(m, n, gcd));
			System.out.println(gcd);
			m = scanner.nextInt();
			n = scanner.nextInt();
		}
	}
	private static int getGCD(int m, int n) {
		return n == 0 ? m : getGCD(n, m % n);
	}

    private static int getLCM(int m, int n, int gcd) {
    	return m * n / gcd;
    }
}

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

import java.util.Scanner;

public class HelloWorld{
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int m = scanner.nextInt();
		int n = scanner.nextInt();
		int gcd = getGCD(m, n);
		while(m <= 2000000000 && n <= 2000000000){
			System.out.print(getLCM(m, n, gcd));
			System.out.println(gcd);
			m = scanner.nextInt();
			n = scanner.nextInt();
		}
	}
	private static int getGCD(int m, int n) {
		return n == 0 ? m : getGCD(n, m % n);
	}

    private static int getLCM(int m, int n, int gcd) {
    	return m * n / gcd;
    }
}

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

public class Lesson1_2 {
	public static void main(String args[]){
		int x;
		int y;
		System.out.println("2 number input...");
		x = new java.util.Scanner(System.in).nextInt();
		y = new java.util.Scanner(System.in).nextInt();
		final int OVER = 2000000000;
		int end = 0;
		int ov = 0;
		if(x < y){
			ov = y;
		}else{
			ov = x;
		}
		for(int n = 1; n < ov; n++){
			if((x <= ov)&&(y <= ov)){
				if((x%n == 0)&&(y%n == 0)){
					end = n;
				}
			}
		}
		int smoll = 0;
		for(int n = ov; n < OVER; n++){
			if((x <= OVER)&&(y <= OVER)){
				if((n%x == 0)&&(n%y == 0)){
					smoll = n;
					break;
				}
			}
		}
		System.out.println(end + " " + smoll);
	}
}

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

import java.util.NoSuchElementException;
import java.util.Scanner;

public class AOJ_0005 {
	private static Scanner sc;
	static int getGCD(int a,int b){
		if(b>a){
			int tmp=a;
			a=b;
			b=tmp;
		}
		while(b!=0){
			int tmp=b;
			b=a%b;
			a=tmp;
		}
		return a;
	}
	static int getLCM(int a,int b){
		return a/getGCD(a,b)*b;
	}
	public static void main(String[] args){
		sc=new Scanner(System.in);
		while(true){
			try{
				int a=sc.nextInt();
				int b=sc.nextInt();
				System.out.print(getGCD(a,b)+" ");
				System.out.println(getLCM(a,b));
			}catch(NoSuchElementException e){
				break;
			}
		}
	}

}

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

import java.util.*;
public class R48p1 {
	public static void main(String[] args) throws Exception {
		Scanner in = new Scanner(System.in);
		long x, y;
		while (in.hasNext()) {
			x = in.nextLong();
			y = in.nextLong();
			System.out.println(gcd(x, y) + " " + lcm(x, y));
		}
	}
	static long gcd(long x, long y) {
		if (y == 0)
			return x;
		return gcd(y, x%y);
	}

	static long lcm(long a, long b) {
		return (a*b)/gcd(a, b);
	}
}

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

import java.math.BigInteger;
import java.util.*;

public class Main {
	public static void main (String [] args){
		Scanner input = new Scanner (System.in);
		while(input.hasNextInt()){
			int a,b;
			a=input.nextInt();
			b=input.nextInt();
			System.out.println(gcd(a,b)+" "+lcm(a,b));
		}
	}
	static int gcd (int a, int b){
		if (b==0)
			return a;
		else
			return gcd(b, a%b);
	}
	static BigInteger lcm (int a,int b){
		BigInteger num1=BigInteger.valueOf(a);
		BigInteger num2=BigInteger.valueOf(b);
		return num1.multiply(num2).divide(BigInteger.valueOf(gcd(a,b)));
	}

Compiler output:
Main.java:24: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java

import java.io.*;

class Main {
	public static void main (String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		while (str != null) {
			String[] strArrays = str.split("\\s", 0);
			long a = Long.parseLong(strArrays[0]);
			long b = Long.parseLong(strArrays[1]);
			long tmp, r = 1;
			long num = (Long.parseLong(strArrays[0]) * Long.parseLong(strArrays[1])) / r;
			if (a < b) {
				tmp = a;
				b = a;
				a = tmp;
			}

			r = a % b;
			while (r != 0) {
				a = b;
				b = r;
				r = a % b;
			}
			System.out.print(b + " " + num);
			Str = br.readLine();
		}
	}
}

Compiler output:
Main.java:26: error: cannot find symbol
			Str = br.readLine();
			^
  symbol:   variable Str
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner s = new Scanner(System.in);
		int max,min;
		int a,b;
		String str ;
		String[] result;

		
	int counter = 0;
		while(true){
			str = s.nextLine();
			if(str.length() == 0)
			{
				break;
			}
			
			result = str.split(" ");
			
			a = Integer.parseInt(result[0]);
			b = Integer.parseInt(result[1]);
			int x = a;
			int y = b;
			while(x!=y){
				if(x>y){
					y += b;
				}else{
					x += a;
				}
			}
			min = x;
			max = (int)((long)a * b / min);
			System.out.println(max+" "+min);




	}
}

Compiler output:
Main.java:43: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class LCMextended {
	public static int numint[];

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		while (str != null) {
			String numstr[] = str.split(" ", 0);
			numint = new int[2];
			numint[0] = Integer.parseInt(numstr[0]);
			numint[1] = Integer.parseInt(numstr[1]);
			int gcm = Euclid();
			int lcm = numint[0] * numint[1] / gcm;
			System.out.println(gcm + " " + lcm);
			str = br.readLine();
		}
	}

	public static int Euclid() {
		int x = numint[0];
		int y = numint[1];
		while (x != y) {
			if (x < y) {
				y = y - x;
			} else {
				x = x - y;
			}
		}
		return x;
	}
}

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

import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        ArrayList<String> ans = new ArrayList<>();
        while(sc.hasNext()){
            int a = sc.nextInt(),b = sc.nextInt();
            ans.add(String.format("%d %d",getGCD(a,b),getLCM(a,b)));
        }
        for(Int i = 0,size = ans.size();i < size;i++){
            System.out.println(ans.get(i));
        }
    }
    static int getGCD(int a,int b){
        while(a != b){
            if(a > b) a -= b;
            else b -= a;
        }
        return a;
    }
    static int getLCM(int a,int b){
        return a * b / getGCD(a,b);
    }
}

Compiler output:
Main.java:11: error: cannot find symbol
        for(Int i = 0,size = ans.size();i < size;i++){
            ^
  symbol:   class Int
  location: class Main
1 error
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static long gcd(long a, long b){
		if(a < b){
			long tmp = a;
			a = b;
			b = tmp;
		}
		while(b > 0){
			int r = a % b;
			a = b;
			b = r;
		}
		return a;
	}

	public static long lcm(long a, long b, long g){
		long v = a / g;
		long w = b / g;
		long l = v * w * g;
		return l;
	}

	public static void main(String[] args){

		while(scan.hasNext()){
			long a = scan.nextLong();
			long b = scan.nextLong();
			long g = gcd(a, b);
			long l = lcm(a, b, g);
			System.out.printf("%d %d\n", g, l);
		}
	}
}

Compiler output:
Main.java:13: error: incompatible types: possible lossy conversion from long to int
			int r = a % b;
			          ^
1 error
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		List<Integer> listG = new ArrayList<Integer>();
		List<Integer> listL = new ArrayList<Integer>();
		while(scan.hasNext()){
			int a = scan.nextInt();
			int b = scan.nextInt();
			int g = gcd(a, b);
			int l = lcm(a, b, g);
			listG.add(g);
			listL.add(l);
		}
		Iterator<Integer> itG = listG.iterator();
		Iterator<Integer> itL = listL.iterator();
		while(itG.hasNext()){
			int g = itG.next();
			int l = itL.next();
			System.out.printf("%d %d\n", g, l);
		}
	}

	public static int gcd(int a, int b){
		if(b != 0)return gcd(b, a % b)
		else return a;
	}

	public static int lcm(int a, int b, int g){
		int v = a / g;
		int l = v * b;
		return l;
	}
}

Compiler output:
Main.java:27: error: ';' expected
		if(b != 0)return gcd(b, a % b)
		                              ^
1 error
Language: Java

import java.util.Scanner;

public class GCDandLCM {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        while (scan.hasNextLine()) {
            String inputData = scan.nextLine();
            if ("".equals(inputData)) {
                scan.close();
                break;
            }
            String[] inputDataSP = inputData.split(" ");
            long a = Integer.parseInt(inputDataSP[0]);
            long b = Integer.parseInt(inputDataSP[1]);
            long gcd = gcd(a, b);
            long lcm = (a * b) / gcd;
            System.out.println(gcd + " " + lcm);
        }
    }

    private static long gcd(long a, long b) {
        a = (a < b) ? b : a;
        b = (a < b) ? a : b;
        long mod = -1;
        while ((mod = a % b) != 0) {
            a = b;
            b = mod;
        }
        return b;
    }
}

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

import java.util.Scanner;

public class GCDandLCM {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String inputData;
        while ((inputData = scan.nextLine()) != null || !"".equals(inputData)) {
            String[] inputDataSP = inputData.split(" ");
            long a = Long.parseLong(inputDataSP[0]);
            long b = Long.parseLong(inputDataSP[1]);
            long gcd = gcd(a, b);
            long lcm = (a * b) / gcd;
            System.out.println(gcd + " " + lcm);
        }
        scan.close();
    }

    private static long gcd(long a, long b) {
        a = (a < b) ? b : a;
        b = (a < b) ? a : b;
        long mod = -1;
        while ((mod = a % b) != 0) {
            a = b;
            b = mod;
        }
        return b;
    }
}

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


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] a) throws IOException{

		String strLine ="";
		BufferedReader stdReader =
				new BufferedReader(new InputStreamReader(System.in));

		int i = 0;
		int max = 50;
		String[] result = new String [max];
		int[] kouyaku = new int[max];
		int[] koubai = new int[max];

		while ( i <= max && ((strLine = stdReader.readLine()) != null) ){


				//??????????????§?????????
				String[] temp = strLine.split(" ",-10);
				int[] tempInt = new int[2];
				if(temp[0].equals("")){
					break;
				}
				tempInt[0] = Integer.parseInt(temp[0]);
				tempInt[1] = Integer.parseInt(temp[1]);

				//?????§??¬?´???°????±????????????????????´???????
				kouyaku[i] = calcKouyaku(tempInt);

				//????°???¬?????°????±????????????????????´???????
				koubai[i] = calcKoubai(tempInt);

				i++;
		}


		//?????????????????????
		for(int j = 0; j < i; j++){
				System.out.println(kouyaku[j] +" "+koubai[j]);
			}


	}

	public static int calcKouyaku(int[] tempInt){

		java.util.Arrays.sort(tempInt);


		int maxYakusu = 1;

		for(int k = tempInt[0]-1 ; k > 1 ; k--){

			if((tempInt[0]%k == 0)&&(tempInt[1]%k == 0)){
				tempInt[0] = tempInt[0]/k;
				tempInt[1] = tempInt[1]/k;
				maxYakusu = maxYakusu * k;


			}

		}

		return maxYakusu;



	}

	public static int calcKoubai(int[] tempInt){

		java.util.Arrays.sort(tempInt);
		int[] tempAmari = new int[2];

		int maxYakusu= 1;

		for(int k = tempInt[0]-1 ; k > 1 ; k--){

			if((tempInt[0]%k == 0)&&(tempInt[1]%k == 0)){
				tempInt[0] = tempInt[0]/k;
				tempInt[1] = tempInt[1]/k;
				//tempAmari[0] = tempAmari[0]%k;
				//tempAmari[1] = tempAmari[1]%k;
				maxYakusu = maxYakusu * k;


			}

		}


		return maxYakusu*tempInt[0]*tempInt[1];

	}

Compiler output:
Main.java:99: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] a) throws IOException{

		String strLine ="";
		BufferedReader stdReader =
				new BufferedReader(new InputStreamReader(System.in));

		int i = 0;
		int max = 50;
		int[] tempInt = new int[2];

		while ( i <= max && ((strLine = stdReader.readLine()) != null) ){


				//??????????????§?????????
				String[] temp = strLine.split(" ",-10);
				tempInt[0] =Integer.parseInt(temp[0]);
				tempInt[1] = Integer.parseInt(temp[1]);

				int maxYakusu = 1;

				for(int k = tempInt[1]-1 ; k > 1 ; k--){

					if((tempInt[0]%k == 0)&&(tempInt[1]%k == 0)){
						tempInt[0] = tempInt[0]/k;
						tempInt[1] = tempInt[1]/k;
						maxYakusu = maxYakusu * k;


					}

				}


				//????°???¬?????°????±????????????????????´???????
				int maxBaisu = maxYakusu * temp1 * temp2;

				System.out.println(maxYakusu+" "+maxBaisu);
				i++;
		}

	}

}

Compiler output:
Main.java:42: error: cannot find symbol
				int maxBaisu = maxYakusu * temp1 * temp2;
				                           ^
  symbol:   variable temp1
  location: class Main
Main.java:42: error: cannot find symbol
				int maxBaisu = maxYakusu * temp1 * temp2;
				                                   ^
  symbol:   variable temp2
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
import java.math.BigDecimal;

public class Gcd{


		public static long saidai(long a , long b){
			long c,s,t;
			s = a;
			t = b;
			while(true){
				if(s == t){
					c = s;
					break;
				}else if(s == 0){
					c = t;
					break;
				}else if(t == 0){
					c = s;
					break;
				}else if(s > t){
					s = s % t;
				}else{
					t = t % s;
				}
				
			}
			
			
			return c;
		}
		
		public static  long saishou(long a , long b){
			long c,s,t;
			s = a;
			t = b;
			while(true){
				if(s == t){
					c = s;
					break;
				}else if(s < t){
					s = s+a;
				}else{
					t = t+b;
				}
			
			}
			return c;
		}
		
       public static void main(String[] args){
       int i,j;
       long a,b,c,d,e,f;
       
    	long[] x = new long[60];
    	long[] y = new long[60];
    
        Scanner scan = new Scanner(System.in);
        
        i = 0;
        while(scan.hasNextLong()){
        	a = scan.nextLong();
        	b = scan.nextLong();
        	x[i] = saidai(a,b);
        	y[i] = saishou(a,b);
        	
        	i++;
        
        }
      
        
        j = 0;
        while(j < i){
        	
     		System.out.println(x[j] + " " + y[j]);
        	j++;
       		}
       		}
}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    try {
      String tmp = br.readLine();
      List<Long> list = Arrays.asList(tmp.split(" ")).stream().map(i -> Long.valueOf(i)).sorted().collect(Collectors.toList());
      long koyakusu = getKoyakusu(list.get(0), list.get(1));
      long kobaisu = getKobaisu(list.get(0), list.get(1));
      System.out.printf("%d %d", koyakusu, kobaisu);
    } catch (Exception e) {
      System.exit(0);
    }
  }

  // ??¬?´???°?????????
  private static long getKoyakusu(long a, long b) {
    int candidate = a;
    while (b % a != 0) {
      candidate = b % a;
      b = a;
      a = candidate;
    }
    return candidate;
  }

  // ??¬?????°?????????
  private static long getKobaisu(long a, long b) {
    return a * b / getKoyakusu(a, b);
  }
}

Compiler output:
Main.java:25: error: incompatible types: possible lossy conversion from long to int
    int candidate = a;
                    ^
Main.java:27: error: incompatible types: possible lossy conversion from long to int
      candidate = b % a;
                    ^
2 errors
Language: Java

import java.util.Scanner;


public class Main {
	public static void main(String[] args){
		//?????°??£?¨?
		Scanner sc;
		int a;		//??\???????????°
		int b;
		int c=1;
		int d;		//????????????????????????
		int i = 0;		//????????????
		//int[] haco;		//??¨?????¨?????????
		//String haco = iter.next();
		//int [][] haco = new int [2][50];
		int y=1;		//????????????
		int z=0;
		int h=0;
		int j=1;

		sc = new Scanner(System.in);		//?????????????????§??\?????????

		while(sc.hasNext()){


			a = sc.nextInt();//??\???????????????????????°?????\??????
			b = sc.nextInt();

			//haco = new int[100];

			while(0 != c%a || 0 != c%b){
				c++;
			}

				//haco[h][1] = c;
				//h = h + 1;

			if(a==0){
				break;
			}else if(b==0){
				b = a;
				break;
			}else{
				d = a%b;
			}

			while(true){
				d = a%b;
				if(d == 0){
					break;
				}else{
					a = b;
					b = d;
					if(a%b == 0){
						break;
					}
				}

				//System.out.println(b + " " + c);
				//haco[j][0] = b;
				//j = j+ 1;

			}
			//System.out.println(z + " " + y);


			if(i > 50){
				break;
			}
			i = i + 1;
			System.out.println(b + " " + c);

		}

		//z = 0;
		//y = 1;

		h = 0;
		j = 0;

		//while(haco.hasNext()){		//???????????????????????????????????§??????

		while(true){
			System.out.print(haco[j][0] + " ");
			j = j + 1;

			System.out.println(haco[0][h]);
			h = h + 1;
		}
			//if(haco[j][0] == null){



			//int g = 0;
			//for(g= 0; g < 2; g++){
				//if(g==1){
					//haco.hasNext();
				//}
				//int in = haco.next();		//??????????????????in?????\??????
				//if(g==0){
					//System.out.print(haco + " ");
					//break;
				//}else{
					//System.out.println(haco);
				//}
			//}

			//System.out.println(y);

			//z = z + 2;
			//y = y + 2;

	}
}

Compiler output:
Main.java:84: error: cannot find symbol
			System.out.print(haco[j][0] + " ");
			                 ^
  symbol:   variable haco
  location: class Main
Main.java:87: error: cannot find symbol
			System.out.println(haco[0][h]);
			                   ^
  symbol:   variable haco
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public Main{

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);
		int[] a = new int[50];
		int[] b = new int[50];
		int[] newA = new int[50];
		int[] newB = new int[50];
		int[] gcd = new int[50];
		int[] lcm = new int[50];
		int num = 0;

		System.out.println("How Many Data set? > ");
		num = stdin.nextInt();

		for(int cnt = 0; cnt < num; cnt++) {

			System.out.print("a[cnt][" + cnt + "] = ");
			a[cnt] = stdin.nextInt();
			System.out.print("b[cnt][" + cnt + "] = ");
			b[cnt] = stdin.nextInt();
			newA[cnt] = a[cnt];
			newB[cnt] = b[cnt];
		}

		for(int cnt = 0; cnt < num; cnt++) {
			if(a[cnt] > b[cnt]) {

				int r = 0;

				while((r = a[cnt] % b[cnt]) != 0) {

					a[cnt] = b[cnt];
					b[cnt] = r;

				}

				gcd[cnt] = b[cnt];



			} else if( b[cnt] > a[cnt]) {

				int r = 0;

				while((r = b[cnt] % a[cnt]) != 0) {

					b[cnt] = a[cnt];
					a[cnt] = r;

				}
				gcd[cnt] = a[cnt];

			} else {

				gcd[cnt] = a[cnt];
				System.out.print(a[cnt]);

			}

			lcm[cnt] = (newA[cnt] * newB[cnt]) / gcd[cnt];

		}

		for(int cnt = 0; cnt < num; cnt++) {

			System.out.println("?????§??¬?´???° :" + gcd[cnt] + ", ????°???¬?????° : " + lcm[cnt] );

		}
	}


}

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
public Main{
       ^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:76: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.Scanner;

public class Main
	public static void main(String[] args) {

		

		Scanner stdin = new Scanner(System.in);
		long a = 0;
		long b = 0;
		long ab = 0;
		long r = 0;
		long gcd = 0;
		long lcm = 0;
		long temp = 0;
		while(stdin.hasNext()) {
			a = stdin.nextInt();
			b = stdin.nextInt();
			ab = a * b;

			if(a < b) {
				temp = a;
				a = b;
				b = temp;
			}
			if(a >= b) {
				do {
					r = a % b;
					if(r == 0) {
						break;
					} else {
						a = b;
						b = r;
					}
				}while(r != 1);
				gcd = b;
				lcm = ab / b;
				System.out.println(gcd + " " + lcm);

			}
		}
	}
}

Compiler output:
Main.java:3: error: '{' expected
public class Main
                 ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:43: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

package P2_6_Exer_1;

import java.util.Scanner;

public class A0005 {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = "";
		while((line=sc.nextLine())!=null&&!(line.trim().equals(""))) {
			String[] temp = line.split(" ");
			int a = Integer.parseInt(temp[0]);
			int b = Integer.parseInt(temp[1]);
			int gcd = commonDiv(a,b);
			System.out.println(gcd+" "+(a*(b/gcd)));
		}
		
	}

	

	public static int commonDiv(int a, int b) {
		while(b>0) {
			int temp = b;
			b = a%b;
			a = temp;
		}
		return a;
	}

}



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

#include<stdio.h>

int main(void){
  long int a,b,k,r,ab;

  while(scanf("%ld %ld",&a,&b)!=EOF){
    if(a<b){//a>b
      k=a;
      a=b;
      b=k;
    }
    //最小公倍数＊最大公約数＝a＊b
    ab=a*b;
    while((r=a%b)!=0){
      a=b;
      b=r;
    }
    printf("%ld %ld\n",b,ab/b);  
  }
  return 0;
}



Compiler output:
Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
        ^
Main.java:6: error: class, interface, enum, or record expected
  while(scanf("%ld %ld",&a,&b)!=EOF){
  ^
Main.java:9: error: class, interface, enum, or record expected
      a=b;
      ^
Main.java:10: error: class, interface, enum, or record expected
      b=k;
      ^
Main.java:11: error: class, interface, enum, or record expected
    }
    ^
Main.java:14: error: class, interface, enum, or record expected
    while((r=a%b)!=0){
    ^
Main.java:16: error: class, interface, enum, or record expected
      b=r;
      ^
Main.java:17: error: class, interface, enum, or record expected
    }
    ^
Main.java:19: error: class, interface, enum, or record expected
  }
  ^
Main.java:21: error: class, interface, enum, or record expected
}
^
11 errors
Language: Java

#include<stdio.h>

int main(void){
  long int a,b,k,r,ab;

  while(scanf("%ld %ld",&a,&b)!=EOF){
    if(a<b){
      k=a;
      a=b;
      b=k;
    }
    ab=a*b;
    while((r=a%b)!=0){
      a=b;
      b=r;
    }
    printf("%ld %ld\n",b,ab/b);  
  }
  return 0;
}



Compiler output:
Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
        ^
Main.java:6: error: class, interface, enum, or record expected
  while(scanf("%ld %ld",&a,&b)!=EOF){
  ^
Main.java:9: error: class, interface, enum, or record expected
      a=b;
      ^
Main.java:10: error: class, interface, enum, or record expected
      b=k;
      ^
Main.java:11: error: class, interface, enum, or record expected
    }
    ^
Main.java:13: error: class, interface, enum, or record expected
    while((r=a%b)!=0){
    ^
Main.java:15: error: class, interface, enum, or record expected
      b=r;
      ^
Main.java:16: error: class, interface, enum, or record expected
    }
    ^
Main.java:18: error: class, interface, enum, or record expected
  }
  ^
Main.java:20: error: class, interface, enum, or record expected
}
^
11 errors
Language: Java

import java.io.*;
public class Main {
public static void main(String args[]) throws IOException {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
while(true){
String s = r.readLine();
if(s == null) break;
int i = s.indexOf(" ");
System.out.println(gcd(Integer.valueOf(s.substring(0, i))) + " " + lcm(Integer.valueOf(s.substring(i+1))));
}
}
private int gcd(int a, int b) {
if(b == 0) return a;
return gcd(b, a % b);
}
private int lcm(int a, int b) {
return b * a / gcd(a, b);
}
}

Compiler output:
Main.java:9: error: method gcd in class Main cannot be applied to given types;
System.out.println(gcd(Integer.valueOf(s.substring(0, i))) + " " + lcm(Integer.valueOf(s.substring(i+1))));
                   ^
  required: int,int
  found:    Integer
  reason: actual and formal argument lists differ in length
Main.java:9: error: method lcm in class Main cannot be applied to given types;
System.out.println(gcd(Integer.valueOf(s.substring(0, i))) + " " + lcm(Integer.valueOf(s.substring(i+1))));
                                                                   ^
  required: int,int
  found:    Integer
  reason: actual and formal argument lists differ in length
2 errors
Language: Java

import java.io.*;
public class Main {
public static void main(String args[]) throws IOException {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
while(true){
String s = r.readLine();
if(s == null) break;
int i = s.indexOf(" ");
int a = Integer.valueOf(s.substring(0, i));
int b = Integer.valueOf(s.substring(i+1));
System.out.println(gcd(a, b) + " " + lcm(a, b));
}
}
private int gcd(int a, int b) {
if(b == 0) return a;
return gcd(b, a % b);
}
private int lcm(int a, int b) {
return b * a / gcd(a, b);
}
}

Compiler output:
Main.java:11: error: non-static method gcd(int,int) cannot be referenced from a static context
System.out.println(gcd(a, b) + " " + lcm(a, b));
                   ^
Main.java:11: error: non-static method lcm(int,int) cannot be referenced from a static context
System.out.println(gcd(a, b) + " " + lcm(a, b));
                                     ^
2 errors
Language: Java

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws IOException {
		// System.out.println("Hello world");
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		while(true){
		
		int n = 2;
		String c = br.readLine();
		
		if(c.equals(""))
			break;
		
		long[] arr = new long[n];
		for(int i = 0; i < n; i++){
		if(c.indexOf(" ") !=  -1){
		String str = c.substring(0, c.indexOf(" "));
		arr[i] = Long.parseLong(str);
		c = c.substring(c.indexOf(" ") + 1);
		}
		else{
		arr[i] = Long.parseLong(c);
		}
		}

		if(arr[1] < arr[0]){
			long re = arr[1];
			arr[1] = arr[0];
			arr[0] = re;
		}
		
		long[] arr2 = arr.clone();
		long amari = 1;
		while(arr2[0] !=0){
			amari = arr2[1] % arr2[0];
			if(amari == 0) break;
			arr2[1] = arr2[0];
			arr2[0] = amari;
		}
		


		long i = 1;
		while((arr[0]*i) % arr[1] != 0){
			i++;
		}
		
		System.out.println(arr2[0] + " " + arr[0]*i);
		
		}
	}

}

Compiler output:
Main.java:6: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:8: error: cannot find symbol
		InputStreamReader is = new InputStreamReader(System.in);
		^
  symbol:   class InputStreamReader
  location: class Main
Main.java:8: error: cannot find symbol
		InputStreamReader is = new InputStreamReader(System.in);
		                           ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:9: error: cannot find symbol
		BufferedReader br = new BufferedReader(is);
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:9: error: cannot find symbol
		BufferedReader br = new BufferedReader(is);
		                        ^
  symbol:   class BufferedReader
  location: class Main
5 errors
Language: Java

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a,b;
		int gcd = 0;
		int lcm = 0;

		while ((scan.hasNext())) {
			a = Integer.parseInt(scan.next());
			b = Integer.parseInt(scan.next());

			for (int i = 2; i <= Math.min(a, b); i++) {
				//Ååöñ
				if((a % i == 0) && (b % i == 0)){
					gcd = i;
				}
			}

			// Å¬ö{
			lcm = a * b / gcd;
			System.out.println(gcd+" "+lcm);
		}
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		                   ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int a, b, goc;
		while (in.hasNext()) {
			a = in.nextInt();
			b = in.nextInt();
			System.out.print(goc = goc(a, b));
			System.out.print(" ");
			System.out.println(a / goc * b);
		}
	}

	static int goc(int a, int b) {
		if (b != 0) return goc(b, a % b);
		else return a;
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner in = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner in = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.io.*;
class Main{

    public static void main(String[] args) throws IOException{
	int gcd,lcm;
	BufferedReader br=
	    new BufferedReader (new InputStreamReader(System.in));
	String buf;
	while(true){
	    if((buf=br.readLine())==null)break;
	    if(buf.length()==0)break;
	    String[] data=buf.split(" ");
	    int[] dat =new int[2];
	    for(int i=0;i<2;i++){
		dat[i]=Integer.parseInt(data[i]);
	    }
	    int x=dat[0],y=dat[1];
	    while(true){
		if(x==y)break;
		if(x > y) x-=y;
		else y-=x;
	    }
	    lcm=x;
	    while(true){
		int q=x/y;
		int r= x - q *y;
		if(r == 0)break;
		x=y;
		y=r;
	    }
	    lcm=y;
	    System.out.println(lcm+" "+gcd);
	}
    }
}

Compiler output:
Main.java:32: error: variable gcd might not have been initialized
	    System.out.println(lcm+" "+gcd);
	                               ^
1 error
Language: Java

import java.util.Scanner;
import java.math.BigDecimal;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(sc.hasNext()) {
      BigDecimal bda = new BigDecimal(sc.nextDouble());
      BigDecimal bdb = new BigDecimal(sc.nextDouble());
      BigDecimal gcd = bda.gcd(bdb);
      BigDecimal lcm = bda.multyply(bdb).divide(gcd);
      System.out.println(gcd+" "+lcm);
    }
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
      BigDecimal gcd = bda.gcd(bdb);
                          ^
  symbol:   method gcd(BigDecimal)
  location: variable bda of type BigDecimal
Main.java:10: error: cannot find symbol
      BigDecimal lcm = bda.multyply(bdb).divide(gcd);
                          ^
  symbol:   method multyply(BigDecimal)
  location: variable bda of type BigDecimal
2 errors
Language: Java

import java.util.Scanner;
import java.math.BigInteger;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(sc.hasNext()) {
      BigInteger bda = new BigInteger(sc.nextDouble());
      BigInteger bdb = new BigInteger(sc.nextDouble());
      BigInteger gcd = bda.gcd(bdb);
      BigInteger lcm = bda.multyply(bdb).divide(gcd);
      System.out.println(gcd+" "+lcm);
    }
  }
}

Compiler output:
Main.java:7: error: no suitable constructor found for BigInteger(double)
      BigInteger bda = new BigInteger(sc.nextDouble());
                       ^
    constructor BigInteger.BigInteger(byte[]) is not applicable
      (argument mismatch; double cannot be converted to byte[])
    constructor BigInteger.BigInteger(int[]) is not applicable
      (argument mismatch; double cannot be converted to int[])
    constructor BigInteger.BigInteger(String) is not applicable
      (argument mismatch; double cannot be converted to String)
    constructor BigInteger.BigInteger(long) is not applicable
      (argument mismatch; possible lossy conversion from double to long)
Main.java:8: error: no suitable constructor found for BigInteger(double)
      BigInteger bdb = new BigInteger(sc.nextDouble());
                       ^
    constructor BigInteger.BigInteger(byte[]) is not applicable
      (argument mismatch; double cannot be converted to byte[])
    constructor BigInteger.BigInteger(int[]) is not applicable
      (argument mismatch; double cannot be converted to int[])
    constructor BigInteger.BigInteger(String) is not applicable
      (argument mismatch; double cannot be converted to String)
    constructor BigInteger.BigInteger(long) is not applicable
      (argument mismatch; possible lossy conversion from double to long)
Main.java:10: error: cannot find symbol
      BigInteger lcm = bda.multyply(bdb).divide(gcd);
                          ^
  symbol:   method multyply(BigInteger)
  location: variable bda of type BigInteger
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
3 errors
Language: Java

import java.util.Scanner;
import java.math.BigInteger;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(sc.hasNext()) {
      BigInteger bda = new BigInteger(sc.nextInt());
      BigInteger bdb = new BigInteger(sc.nextInt());
      BigInteger gcd = bda.gcd(bdb);
      BigInteger lcm = bda.multiply(bdb).divide(gcd);
      System.out.println(gcd+" "+lcm);
    }
  }
}

Compiler output:
Main.java:7: error: no suitable constructor found for BigInteger(int)
      BigInteger bda = new BigInteger(sc.nextInt());
                       ^
    constructor BigInteger.BigInteger(byte[]) is not applicable
      (argument mismatch; int cannot be converted to byte[])
    constructor BigInteger.BigInteger(int[]) is not applicable
      (argument mismatch; int cannot be converted to int[])
    constructor BigInteger.BigInteger(String) is not applicable
      (argument mismatch; int cannot be converted to String)
    constructor BigInteger.BigInteger(long) is not applicable
      (BigInteger(long) has private access in BigInteger)
Main.java:8: error: no suitable constructor found for BigInteger(int)
      BigInteger bdb = new BigInteger(sc.nextInt());
                       ^
    constructor BigInteger.BigInteger(byte[]) is not applicable
      (argument mismatch; int cannot be converted to byte[])
    constructor BigInteger.BigInteger(int[]) is not applicable
      (argument mismatch; int cannot be converted to int[])
    constructor BigInteger.BigInteger(String) is not applicable
      (argument mismatch; int cannot be converted to String)
    constructor BigInteger.BigInteger(long) is not applicable
      (BigInteger(long) has private access in BigInteger)
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: Java

import java.io.*

class Main{

public static void main(String args[]) throws java.io.IOException{
Scanner scan = new Scanner(System.in);
while(scan.hasNext()){
int a =nextInt();
int b = nextInt();
System.out.println(gcd(a,b)+" "+a*b/gcd(a,b));
}


}
public static long gcd(int a,int b){
if(b==0)return a;
return gcd(b,a%b);
}
}

Compiler output:
Main.java:1: error: ';' expected
import java.io.*
                ^
1 error
Language: Java

import java.io.*;

class Main{

public static void main(String args[]) throws java.io.IOException{
Scanner scan = new Scanner(System.in);
while(scan.hasNext()){
int a =nextInt();
int b = nextInt();
System.out.println(gcd(a,b)+" "+a*b/gcd(a,b));
}


}
public static long gcd(int a,int b){
if(b==0)return a;
return gcd(b,a%b);
}
}

Compiler output:
Main.java:6: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
Scanner scan = new Scanner(System.in);
                   ^
  symbol:   class Scanner
  location: class Main
Main.java:8: error: cannot find symbol
int a =nextInt();
       ^
  symbol:   method nextInt()
  location: class Main
Main.java:9: error: cannot find symbol
int b = nextInt();
        ^
  symbol:   method nextInt()
  location: class Main
4 errors
Language: Java

import java.io.*;
import java.util.*

class Main{

public static void main(String args[]) throws java.io.IOException{
Scanner scan = new Scanner(System.in);
while(scan.hasNext()){
int a =nextInt();
int b = nextInt();
System.out.println(gcd(a,b)+" "+a*b/gcd(a,b));
}


}
public static long gcd(int a,int b){
if(b==0)return a;
return gcd(b,a%b);
}
}

Compiler output:
Main.java:2: error: ';' expected
import java.util.*
                  ^
1 error
Language: Java

import java.io.*;
import java.util.*;

class Main{

public static void main(String args[]) throws java.io.IOException{
Scanner scan = new Scanner(System.in);
while(scan.hasNext()){
int a =nextInt();
int b = nextInt();
System.out.println(gcd(a,b)+" "+a*b/gcd(a,b));
}


}
public static long gcd(int a,int b){
if(b==0)return a;
return gcd(b,a%b);
}
}

Compiler output:
Main.java:9: error: cannot find symbol
int a =nextInt();
       ^
  symbol:   method nextInt()
  location: class Main
Main.java:10: error: cannot find symbol
int b = nextInt();
        ^
  symbol:   method nextInt()
  location: class Main
2 errors
Language: Java

import java.io.*;
import java.util;

class Main{

public static void main(String args[]) throws java.io.IOException{
Scanner scan = new Scanner(System.in);
while(scan.hasNext()){
int a =nextInt();
int b = nextInt();
System.out.println(gcd(a,b)+" "+a*b/gcd(a,b));
}


}
public static long gcd(int a,int b){
if(b==0)return a;
return gcd(b,a%b);
}
}

Compiler output:
Main.java:2: error: cannot find symbol
import java.util;
           ^
  symbol:   class util
  location: package java
Main.java:7: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
Scanner scan = new Scanner(System.in);
                   ^
  symbol:   class Scanner
  location: class Main
Main.java:9: error: cannot find symbol
int a =nextInt();
       ^
  symbol:   method nextInt()
  location: class Main
Main.java:10: error: cannot find symbol
int b = nextInt();
        ^
  symbol:   method nextInt()
  location: class Main
5 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		
		while(true){
			long numA = stdIn.nextLong();
			long numB = stdIn.nextLong();
			long GCD = getGCD(numA,numB);
			long GCD = getGCD(numA,numB);
			System.out.println(GCD + " " + LCM);
		}
	}
	//++++++++++++++++++++++++++++++++++++++++++++++++++
	//最大公約数(GCD)取得メソッド
	//++++++++++++++++++++++++++++++++++++++++++++++++++
	public static long getGCD(long numA,long numB){
		long GCD = 1;
		if(numA == numB){
			GCD = numA;
		}else{
			if(numA > numB){
				int temp= numA;
				numA = numB;
				numB = temp;
			}
			long bigNum = numB;
			
			while(0 < bigNum){
				if(NumA % bigNum == 0 && NumB % bigNum == 0){
					GCD = bigNum;
					break;
				}
				bigNum--;
			}
		}
		return GCD;
	}
	
	//++++++++++++++++++++++++++++++++++++++++++++++++++
	//最小公倍数(LCM)取得メソッド
	//++++++++++++++++++++++++++++++++++++++++++++++++++
	public static long getLCM(long numA,long numB){
		long LCM = 0;
		if(numA == numB){
			LCM = numA;
		}else{
			if(numA > numB){
				int temp= numA;
				numA = numB;
				numB = temp;
			}
			while(LCM < 2000000000){
				LCM += numB;
				if(LCM % numA == 0){
					break;
				}
			}
			return LCM;
		}
	}
}

Compiler output:
Main.java:11: error: variable GCD is already defined in method main(String[])
			long GCD = getGCD(numA,numB);
			     ^
Main.java:12: error: cannot find symbol
			System.out.println(GCD + " " + LCM);
			                               ^
  symbol:   variable LCM
  location: class Main
Main.java:24: error: incompatible types: possible lossy conversion from long to int
				int temp= numA;
				          ^
Main.java:31: error: cannot find symbol
				if(NumA % bigNum == 0 && NumB % bigNum == 0){
				   ^
  symbol:   variable NumA
  location: class Main
Main.java:31: error: cannot find symbol
				if(NumA % bigNum == 0 && NumB % bigNum == 0){
				                         ^
  symbol:   variable NumB
  location: class Main
Main.java:50: error: incompatible types: possible lossy conversion from long to int
				int temp= numA;
				          ^
6 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		
		while(true){
			long numA = stdIn.nextLong();
			long numB = stdIn.nextLong();
			long GCD = getGCD(numA,numB);
			long LCM = getLCM(numA,numB);
			System.out.println(GCD + " " + LCM);
		}
	}
	//++++++++++++++++++++++++++++++++++++++++++++++++++
	//最大公約数(GCD)取得メソッド
	//++++++++++++++++++++++++++++++++++++++++++++++++++
	public static long getGCD(long numA,long numB){
		long GCD = 1;
		if(numA == numB){
			GCD = numA;
		}else{
			if(numA > numB){
				int temp= numA;
				numA = numB;
				numB = temp;
			}
			long bigNum = numB;
			
			while(0 < bigNum){
				if(NumA % bigNum == 0 && NumB % bigNum == 0){
					GCD = bigNum;
					break;
				}
				bigNum--;
			}
		}
		return GCD;
	}
	
	//++++++++++++++++++++++++++++++++++++++++++++++++++
	//最小公倍数(LCM)取得メソッド
	//++++++++++++++++++++++++++++++++++++++++++++++++++
	public static long getLCM(long numA,long numB){
		long LCM = 0;
		if(numA == numB){
			LCM = numA;
		}else{
			if(numA > numB){
				int temp= numA;
				numA = numB;
				numB = temp;
			}
			while(LCM < 2000000000){
				LCM += numB;
				if(LCM % numA == 0){
					break;
				}
			}
			return LCM;
		}
	}
}

Compiler output:
Main.java:24: error: incompatible types: possible lossy conversion from long to int
				int temp= numA;
				          ^
Main.java:31: error: cannot find symbol
				if(NumA % bigNum == 0 && NumB % bigNum == 0){
				   ^
  symbol:   variable NumA
  location: class Main
Main.java:31: error: cannot find symbol
				if(NumA % bigNum == 0 && NumB % bigNum == 0){
				                         ^
  symbol:   variable NumB
  location: class Main
Main.java:50: error: incompatible types: possible lossy conversion from long to int
				int temp= numA;
				          ^
4 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		
		while(true){
			long numA = stdIn.nextLong();
			long numB = stdIn.nextLong();
			long GCD = getGCD(numA,numB);
			long LCM = getLCM(numA,numB);
			System.out.println(GCD + " " + LCM);
		}
	}
	//++++++++++++++++++++++++++++++++++++++++++++++++++
	//最大公約数(GCD)取得メソッド
	//++++++++++++++++++++++++++++++++++++++++++++++++++
	public static long getGCD(long numA,long numB){
		long GCD = 1;
		if(numA == numB){
			GCD = numA;
		}else{
			if(numA > numB){
				int temp= numA;
				numA = numB;
				numB = temp;
			}
			long bigNum = numB;
			
			while(0 < bigNum){
				if(NumA % bigNum == 0 && NumB % bigNum == 0){
					GCD = bigNum;
					break;
				}
				bigNum--;
			}
		}
		return GCD;
	}
	
	//++++++++++++++++++++++++++++++++++++++++++++++++++
	//最小公倍数(LCM)取得メソッド
	//++++++++++++++++++++++++++++++++++++++++++++++++++
	public static long getLCM(long numA,long numB){
		long LCM = 0;
		if(numA == numB){
			LCM = numA;
		}else{
			if(numA > numB){
				int temp= numA;
				numA = numB;
				numB = temp;
			}
			while(LCM < 2000000000){
				LCM += numB;
				if(LCM % numA == 0){
					break;
				}
			}
		}
		return LCM;
	}
}

Compiler output:
Main.java:24: error: incompatible types: possible lossy conversion from long to int
				int temp= numA;
				          ^
Main.java:31: error: cannot find symbol
				if(NumA % bigNum == 0 && NumB % bigNum == 0){
				   ^
  symbol:   variable NumA
  location: class Main
Main.java:31: error: cannot find symbol
				if(NumA % bigNum == 0 && NumB % bigNum == 0){
				                         ^
  symbol:   variable NumB
  location: class Main
Main.java:50: error: incompatible types: possible lossy conversion from long to int
				int temp= numA;
				          ^
4 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		
		while(true){
			long numA = stdIn.nextLong();
			long numB = stdIn.nextLong();
			long GCD = getGCD(numA,numB);
			long LCM = getLCM(numA,numB);
			System.out.println(GCD + " " + LCM);
		}
	}
	//++++++++++++++++++++++++++++++++++++++++++++++++++
	//最大公約数(GCD)取得メソッド
	//++++++++++++++++++++++++++++++++++++++++++++++++++
	public static long getGCD(long numA,long numB){
		long GCD = 1L;
		if(numA == numB){
			GCD = numA;
		}else{
			if(numA > numB){
				int temp= numA;
				numA = numB;
				numB = temp;
			}
			long bigNum = numB;
			
			while(0 < bigNum){
				if(NumA % bigNum == 0 && NumB % bigNum == 0){
					GCD = bigNum;
					break;
				}
				bigNum--;
			}
		}
		return GCD;
	}
	
	//++++++++++++++++++++++++++++++++++++++++++++++++++
	//最小公倍数(LCM)取得メソッド
	//++++++++++++++++++++++++++++++++++++++++++++++++++
	public static long getLCM(long numA,long numB){
		long LCM = 0L;
		if(numA == numB){
			LCM = numA;
		}else{
			if(numA > numB){
				int temp= numA;
				numA = numB;
				numB = temp;
			}
			while(LCM < 2000000000){
				LCM += numB;
				if(LCM % numA == 0){
					break;
				}
			}
		}
		return LCM;
	}
}

Compiler output:
Main.java:24: error: incompatible types: possible lossy conversion from long to int
				int temp= numA;
				          ^
Main.java:31: error: cannot find symbol
				if(NumA % bigNum == 0 && NumB % bigNum == 0){
				   ^
  symbol:   variable NumA
  location: class Main
Main.java:31: error: cannot find symbol
				if(NumA % bigNum == 0 && NumB % bigNum == 0){
				                         ^
  symbol:   variable NumB
  location: class Main
Main.java:50: error: incompatible types: possible lossy conversion from long to int
				int temp= numA;
				          ^
4 errors
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		while(true){
			Long m = scan.nextLong();
			Long n = scan.nextLong();
			Long g = gcd(m, n);
			
			System.out.println(g+" "+(m*n/g));
		}
		
	}
	
	private static Long gcd(Long a, Long b){
		if(b == 0){
			return a;
		}else{
			return gcd(b, a%b);
		}
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		                   ^
  symbol:   class Scanner
  location: class Main
2 errors