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

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int n = sc.nextInt();

		for (int i = 0; i <= 3000; i++) {
			if (a == 0 && n == 0) {
				break;
			}else if (a < b){
				System.out.println(a + " " + b);
			}else if (x > y){
				System.out.println(b + " " + a);
			}
		}
	}
}



Compiler output:
Main.java:12: error: cannot find symbol
			}else if (a < b){
			              ^
  symbol:   variable b
  location: class Main
Main.java:13: error: cannot find symbol
				System.out.println(a + " " + b);
				                             ^
  symbol:   variable b
  location: class Main
Main.java:14: error: cannot find symbol
			}else if (x > y){
			          ^
  symbol:   variable x
  location: class Main
Main.java:14: error: cannot find symbol
			}else if (x > y){
			              ^
  symbol:   variable y
  location: class Main
Main.java:15: error: cannot find symbol
				System.out.println(b + " " + a);
				                   ^
  symbol:   variable b
  location: class Main
5 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		for (int i = 0; i <= 3000; i++) {
			if (a == 0 && n == 0) {
				break;
			}else if (a < b){
				System.out.println(a + " " + b);
			}else if (x > y){
				System.out.println(b + " " + a);
			}
		}
	}
}



Compiler output:
Main.java:10: error: cannot find symbol
			if (a == 0 && n == 0) {
			              ^
  symbol:   variable n
  location: class Main
Main.java:14: error: cannot find symbol
			}else if (x > y){
			          ^
  symbol:   variable x
  location: class Main
Main.java:14: error: cannot find symbol
			}else if (x > y){
			              ^
  symbol:   variable y
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		for (int i = 0; i <= 3000; i++) {
			if (a == 0 && b == 0) {
				break;
			}else if (a < b){
				System.out.println(a + " " + b);
			}else if (x > y){
				System.out.println(b + " " + a);
			}
		}
	}
}



Compiler output:
Main.java:14: error: cannot find symbol
			}else if (x > y){
			          ^
  symbol:   variable x
  location: class Main
Main.java:14: error: cannot find symbol
			}else if (x > y){
			              ^
  symbol:   variable y
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		while(true){
			if (a == 0 && b == 0) {
				break;
			}else if (a < b){
				System.out.println(a + " " + b);
			}else if (a> b){
				System.out.println(b + " " + a);
			}
		}
}
	}
}



Compiler output:
Main.java:20: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		while (true){
		int a = sc.nextInt();
		int b = sc.nextInt();

			if (a == 0 && b == 0)break;
		if (a < b) {
			System.out.println(a + " " + b);
		} else if (a > b) {
			System.out.println(b + " " + a);
		}
	}
}
}


Compiler output:
Main.java:10: error: variable a is already defined in method main(String[])
		int a = sc.nextInt();
		    ^
Main.java:11: error: variable b is already defined in method main(String[])
		int b = sc.nextInt();
		    ^
2 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		while (sc.hasNextInt()){
		int a = sc.nextInt();
		int b = sc.nextInt();

			if (a == 0 && b == 0)break;
		if (a < b) {
			System.out.println(a + " " + b);
		} else if (a > b) {
			System.out.println(b + " " + a);
		}
	}
}
}


Compiler output:
Main.java:10: error: variable a is already defined in method main(String[])
		int a = sc.nextInt();
		    ^
Main.java:11: error: variable b is already defined in method main(String[])
		int b = sc.nextInt();
		    ^
2 errors
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
    
        Scanner sc = new Scanner(System.in);
    
         //変数x, yを宣言する
         int x, y;
    
        //変数x, yの値を入力する
        x = sc.nextInt();
        y = sc.nextInt();
        
        while(x != 0 && y != 0){
             //大小を関係の比較
            if(x < y) System.out.println(x + " " + y);
            else (x >= y) System.out.println(y + " " + x);
            
            //変数x = 0, y = 0になるまで値を入力を繰り返す
            x = sc.nextInt();
            y = sc.nextInt();
        }
    }
}



/*覚えよう！！
 
〇もう1つの繰り返し

・while(条件式)：条件を満たす間はずっと繰り返す

　※今回は x = 0  &&  y = 0　が入力されない間は繰り返す(両方0が入力されてない意味)
　
*/
  
  
/*前回の内容！！

〇import java.util.Arrays;は重要↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

・Arrays：ソート（並べ変え）や検索など、配列を操作するための機能

・並べ変えするとき
　import java.util.Arrays;を上に書く
　class Main内に Arrays.sort(a); と書く　←　このとき()内は配列の変数名
　
〇配列とは、同じ変数名に複数の値を入力できる箱

　※イメージ
    前回まで、a = 1, b = 2, c = 3など各変数名は1箱に値を代入できない
    今回の配列はa[0] = 1, a[1] = 2, a[2] = 3 のように変数名aは3つの箱に値を代入できる。
    注意：配列の箱は｢ 0 ｣から開始する


・複数のif(条件)：かつ｢ && ｣とまたは｢ || ｣の２つを使用する
　※かつ｢ && ｣：「真 && 真 = 真」, 「真 && 偽 = 偽」, 「偽 && 真 = 偽」 ,「偽 && 偽 = 偽」の4つの条件
　　または｢ || ｣：「真 && 真 = 真」, 「真 && 偽 = 真」, 「偽 && 真 = 真」 ,「偽 && 偽 = 偽」の4つの条件


・関係を比較する：if(条件式)
　例：if(2 < 3) この条件は｢真（成立）｣　→　何か命令があれば実行する
　　　if(5 < 3) この条件は｢偽（不成立）｣　→　何か命令があれば実行しない
　　　
・比較の条件式：等しいか比較｢==｣、等しくないか比較｢!=｣ 
　　　　　　　　大きいか比較｢<｣、小さいか比較｢>｣
　　　　　　　　以上の比較｢<=｣、以下の比較｢>=｣
 
 
・else；ifの条件以外の場合に使用する。
　例：if(雨 == 降っている) System.out.println("傘を持って行く");
　　　else System.out.println("傘を持って行かない");
　
 
・else if：詳細な場合分けしたいときに使用
　例：if(雨 == 降っている) System.out.println("傘を持って行く");
　　　else if(雨 == 午後から降るかも) System.out.println("念のため傘を持って行く");
　　　else System.out.println("傘を持って行かない");
 

 
・変数に計算結果を代入する：面積　＝　縦　×　横
　※計算は変数名でも数値でもいける
  
・四則演算：足し算｢＋｣、引き算｢－｣、掛け算｢＊｣、割り算｢／｣
　1 + 2 = 3;
　4 - 3 = 1;
　2 * 5 = 10;
　8 / 2 = 4;
  
・余りの計算：割り算の余り｢％｣
  5 % 3 = 2;
    
    
・printlnの複数表示：｢＋｣を使用
　例：println("Kobe" + "Kagikou"); = KobeKajikou
　　　println("明治 + 20 + "年"); = 明治20年　数値が入ってもOK！
  
  
  
・変数の宣言は｢型｣と｢変数名｣の２つ必要
　例：型＿変数名　→　int x;
　
・キーボードから入力するときは・・・｢ import java.util.Scanner; ｣ と ｢  Scanner sc = new Scanner(System.in) ; ｣が必要
  
・入力するとき・・・変数名 = sc.nextInt(); nextの後は型を書く、頭文字は大文字　
　※  scは変更しても大丈夫しかし全て変更後の文字に統一　例：nyuryoku
  
・println・・・画面に出力するときに使用
  
・文字列の表示・・・"〇〇〇の間に入力"ことが約束
  
*/



Compiler output:
Main.java:18: error: not a statement
            else (x >= y) System.out.println(y + " " + x);
                 ^
Main.java:18: error: ';' expected
            else (x >= y) System.out.println(y + " " + x);
                         ^
2 errors
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
    
        Scanner sc = new Scanner(System.in);
    
         //変数x, yを宣言する
         int x, y;
    
        //変数x, yの値を入力する
        x = sc.nextInt();
        y = sc.nextInt();
        
        while(x != 0 && y != 0){
             //大小を関係の比較
            if(x < y) System.out.println(x + " " + y);
            else System.out.println(y + " " + x);
        }
            
            //変数x = 0, y = 0になるまで値を入力を繰り返す
            x = sc.nextInt();
            y = sc.nextInt();
        }
    }
}



/*覚えよう！！
 
〇もう1つの繰り返し

・while(条件式)：条件を満たす間はずっと繰り返す

　※今回は x = 0  &&  y = 0　が入力されない間は繰り返す(両方0が入力されてない意味)
　
*/
  
  
/*前回の内容！！

〇import java.util.Arrays;は重要↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

・Arrays：ソート（並べ変え）や検索など、配列を操作するための機能

・並べ変えするとき
　import java.util.Arrays;を上に書く
　class Main内に Arrays.sort(a); と書く　←　このとき()内は配列の変数名
　
〇配列とは、同じ変数名に複数の値を入力できる箱

　※イメージ
    前回まで、a = 1, b = 2, c = 3など各変数名は1箱に値を代入できない
    今回の配列はa[0] = 1, a[1] = 2, a[2] = 3 のように変数名aは3つの箱に値を代入できる。
    注意：配列の箱は｢ 0 ｣から開始する


・複数のif(条件)：かつ｢ && ｣とまたは｢ || ｣の２つを使用する
　※かつ｢ && ｣：「真 && 真 = 真」, 「真 && 偽 = 偽」, 「偽 && 真 = 偽」 ,「偽 && 偽 = 偽」の4つの条件
　　または｢ || ｣：「真 && 真 = 真」, 「真 && 偽 = 真」, 「偽 && 真 = 真」 ,「偽 && 偽 = 偽」の4つの条件


・関係を比較する：if(条件式)
　例：if(2 < 3) この条件は｢真（成立）｣　→　何か命令があれば実行する
　　　if(5 < 3) この条件は｢偽（不成立）｣　→　何か命令があれば実行しない
　　　
・比較の条件式：等しいか比較｢==｣、等しくないか比較｢!=｣ 
　　　　　　　　大きいか比較｢<｣、小さいか比較｢>｣
　　　　　　　　以上の比較｢<=｣、以下の比較｢>=｣
 
 
・else；ifの条件以外の場合に使用する。
　例：if(雨 == 降っている) System.out.println("傘を持って行く");
　　　else System.out.println("傘を持って行かない");
　
 
・else if：詳細な場合分けしたいときに使用
　例：if(雨 == 降っている) System.out.println("傘を持って行く");
　　　else if(雨 == 午後から降るかも) System.out.println("念のため傘を持って行く");
　　　else System.out.println("傘を持って行かない");
 

 
・変数に計算結果を代入する：面積　＝　縦　×　横
　※計算は変数名でも数値でもいける
  
・四則演算：足し算｢＋｣、引き算｢－｣、掛け算｢＊｣、割り算｢／｣
　1 + 2 = 3;
　4 - 3 = 1;
　2 * 5 = 10;
　8 / 2 = 4;
  
・余りの計算：割り算の余り｢％｣
  5 % 3 = 2;
    
    
・printlnの複数表示：｢＋｣を使用
　例：println("Kobe" + "Kagikou"); = KobeKajikou
　　　println("明治 + 20 + "年"); = 明治20年　数値が入ってもOK！
  
  
  
・変数の宣言は｢型｣と｢変数名｣の２つ必要
　例：型＿変数名　→　int x;
　
・キーボードから入力するときは・・・｢ import java.util.Scanner; ｣ と ｢  Scanner sc = new Scanner(System.in) ; ｣が必要
  
・入力するとき・・・変数名 = sc.nextInt(); nextの後は型を書く、頭文字は大文字　
　※  scは変更しても大丈夫しかし全て変更後の文字に統一　例：nyuryoku
  
・println・・・画面に出力するときに使用
  
・文字列の表示・・・"〇〇〇の間に入力"ことが約束
  
*/



Compiler output:
Main.java:26: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

import java.util.Scanner;
class Main
 {
   public static void main(String[] args)
      {
   Scanner S = new Scanner(System.in);
      while(true){
      int a = S.nextInt();
      int b = S.nextInt();
      if(a == b){
      System.out.println(a b);
              }
      else if (a>b){
      System.out.println(a b);
                    }
      else {
      System.out.println(a b);
      if (x==0)break;
      }
 }
}



Compiler output:
Main.java:11: error: ')' or ',' expected
      System.out.println(a b);
                          ^
Main.java:11: error: not a statement
      System.out.println(a b);
                           ^
Main.java:11: error: ';' expected
      System.out.println(a b);
                            ^
Main.java:14: error: ')' or ',' expected
      System.out.println(a b);
                          ^
Main.java:14: error: not a statement
      System.out.println(a b);
                           ^
Main.java:14: error: ';' expected
      System.out.println(a b);
                            ^
Main.java:17: error: ')' or ',' expected
      System.out.println(a b);
                          ^
Main.java:17: error: not a statement
      System.out.println(a b);
                           ^
Main.java:17: error: ';' expected
      System.out.println(a b);
                            ^
Main.java:21: error: reached end of file while parsing
}
 ^
10 errors
Language: Java

import java.util.Scanner;
class Main
 {
   public static void main(String[] args)
      {
   Scanner S = new Scanner(System.in);
      while(true){

      int a = S.nextInt();
      int b = S.nextInt();
      if(a > b){
      System.out.printf("%d %d",b, a);
              }
      else {
      System.out.printf("%d %d",a, b);
           }
      if (x==0)break;
      }
 }
}



Compiler output:
Main.java:17: error: cannot find symbol
      if (x==0)break;
          ^
  symbol:   variable x
  location: class Main
1 error
Language: Java

import java.util.Scanner;
class Main
 {
   public static void main(String[] args)
      {
   Scanner S = new Scanner(System.in);
      while(true){

      int a = S.nextInt();
      int b = S.nextInt();
      if(a > b){
      System.out.printf("%d %d",b, a);
              }
      else {
      System.out.printf("%d %d",a, b);
           }
      if (a & b == 0)break;
      }
 }
}



Compiler output:
Main.java:17: error: bad operand types for binary operator '&'
      if (a & b == 0)break;
            ^
  first type:  int
  second type: boolean
1 error
Language: Java

import java.util.Scanner;
class Main
 {
   public static void main(String[] args)
      {
   Scanner S = new Scanner(System.in);

      while(true){

      int a = S.nextInt();
      int b = S.nextInt();

      if(a > b){
      System.out.printf("%d %d",a, b);
              }
      else {
      System.out.printf("%d %d",b, a);
           }
      if (a && b == 0)break;
      }
 }
}



Compiler output:
Main.java:19: error: bad operand types for binary operator '&&'
      if (a && b == 0)break;
            ^
  first type:  int
  second type: boolean
1 error
Language: Java

import java.util.Scanner;
class Main
 {
   public static void main(String[] args)
      {
   Scanner S = new Scanner(System.in);

      while(true){
      
      if (x == 0 && y ==0)break;

      int x = S.nextInt();
      int y = S.nextInt();

      if(x < y) System.out.printf("%d %d\n",x, y);

      else System.out.printf("%d %d\n",x, y);

      }
 }
}



Compiler output:
Main.java:10: error: cannot find symbol
      if (x == 0 && y ==0)break;
          ^
  symbol:   variable x
  location: class Main
Main.java:10: error: cannot find symbol
      if (x == 0 && y ==0)break;
                    ^
  symbol:   variable y
  location: class Main
2 errors
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int i = 1;
		while(i == -1){
			int X = sc.nextInt();
			int Y = sc.nextInt();
			if(X == 0 && Y == 0)
				break;
			else{
				if(X > Y){
					int tmp;
					X = tmp;
					X = Y;
					Y = tmp;
				}
				System.out.println(X +" "+ Y);
			}
		}
		sc.close();
	}
}

Compiler output:
Main.java:14: error: variable tmp might not have been initialized
					X = tmp;
					    ^
1 error
Language: Java

public class Main {
	private void calc(){
		Scanner scanner = new Scanner(System.in);
		short i=1;
		while(true){
			int x=scanner.nextInt();
			int y=scanner.nextInt();
			int temp;
			
			if(x==0 && y==0)break;
			
			if(y<x){
				temp=x;
				x=y;
				y=temp;
			}
			System.out.print(x+" ");
			System.out.println(y);
			i++;
			
		}
		
	}
	
	public static void main(String[] args) {
		Main run =new Main();
		run.calc();

	}
}

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

//sucannerクラス使うためにインポート
import java.util.*;

class Main{
	//プログラムのエントリポイント
	public static void main(String[] args){
		//入力ストリームの生成
		Scanner sc = new Scanner(System.in);
		while (true) {
			int x = sc.nextInt();
			int y = sc.nextInt();
			
			if ( x == 0 && y== 0){
				break;
				if( x < y ){
				System.out.println( x + " " + y);
				} else {
				System.out.println( y + " " + x);
			}
		}
	}
}

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

//sucannerクラス使うためにインポート
import java.util.*;

class Main{
	//プログラムのエントリポイント
	public static void main(String[] args){
		//入力ストリームの生成
		Scanner sc = new Scanner(System.in);
		while (true) {
			int x = sc.nextInt();
			int y = sc.nextInt();
			
			if ( x == 0 && y== 0){
				break;
				if( x < y ){
				System.out.println( x + " " + y);
				} else {
				System.out.println( y + " " + x);
				}
			}
		}
	}
}

Compiler output:
Main.java:15: error: unreachable statement
				if( x < y ){
				^
1 error
Language: Java

//sucannerクラス使うためにインポート
import java.util.*;

class Main{
	//プログラムのエントリポイント
	public static void main(String[] args){
		//入力ストリームの生成
		Scanner sc = new Scanner(System.in);
		while (true) {
			int x = sc.nextInt();
			int y = sc.nextInt();
			
			if ( x == 0 && y== 0){
				break;
				if ( x < y ){
				System.out.println( x + " " + y);
				} else {
				System.out.println( y + " " + x);
				}
			}
		}
	}
}

Compiler output:
Main.java:15: error: unreachable statement
				if ( x < y ){
				^
1 error
Language: Java

public class Main {
	static long[] zero= {0, 0};
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while (true) {
			String[] strArr = br.readLine().split(" ");
			long[] arr = new long[2];
			arr[0] = Long.parseLong(strArr[0]);
			arr[1] = Long.parseLong(strArr[1]);
			if(arr.equals(zero))break;
			Arrays.sort(arr);
			System.out.printf("%d %d%n", arr[0], arr[1]);
		}
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:4: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                                           ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:11: error: cannot find symbol
			Arrays.sort(arr);
			^
  symbol:   variable Arrays
  location: class Main
5 errors
Language: Java

				break;
			list.add(new Swap(x,y));
		}
		scan.close();
		for(Swap s : list){
			s.smaller();
			System.out.println(s);
		}
		

	}

}

class Swap{
	int a;
	int b;
	public Swap(int x, int y){
		a = x;
		b = y;	
	}
	
	public void smaller(){
		if(a < b)
			return;
		int tmp = a;
		a=b;
		b=tmp;
	}

	@Override
	public String toString(){
		return a + " " + b;
	}

}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
				break;
				^
Main.java:2: error: class, interface, enum, or record expected
			list.add(new Swap(x,y));
			^
Main.java:3: error: class, interface, enum, or record expected
		}
		^
Main.java:5: error: class, interface, enum, or record expected
		for(Swap s : list){
		^
Main.java:7: error: class, interface, enum, or record expected
			System.out.println(s);
			^
Main.java:8: error: class, interface, enum, or record expected
		}
		^
6 errors
Language: Java

 import java.io.*;
 
class Main{
    public static void main(String[] args) throws Exception {
        BufferedReader line = new BufferedReader(new InputStreamReader(System.in));
        String str = null;//
        while ((str = line.readLine()) != null) {//入力があれば繰り返しの開始
            String[] arr = str.split(" ");//入力文字列をスペースで分割し、配列に格納
            if ("0".equals(arr[0]) && "0".equals(arr[1]))//一つ目と二つ目の入力を評価
                break;
            int x = Integer.parseInt(arr[0]);
            int y = Integer.parseInt(arr[1]);
 
            if (a > b)//表示で比較処理
                System.out.println(y + " " + x);
            else
                System.out.println(x + " " + y);
        }
    }
}

Compiler output:
Main.java:14: error: cannot find symbol
            if (a > b)//???????
                ^
  symbol:   variable a
  location: class Main
Main.java:14: error: cannot find symbol
            if (a > b)//???????
                    ^
  symbol:   variable b
  location: class Main
2 errors
Language: Java

 class Main{
    public static void main(String[] args) throws Exception {
        BufferedReader line = new BufferedReader(new InputStreamReader(System.in));
        String str = null;
        while ((str = line.readLine()) != null) {
            String[] arr = str.split(" ");
            if ("0".equals(arr[0]) && "0".equals(arr[1]))
                break;
            int x = Integer.parseInt(arr[0]);
            int y = Integer.parseInt(arr[1]);
 
            if (x > y)
                System.out.println(y + " " + x);
            else
                System.out.println(x + " " + y);
        }
    }
}

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

public class Main {

    static final String SPACE = " ";
    static final String RN = "\n";

    public static void main(String[] args) {
        // input
        int x;
        int y;

        StringBuilder sb = new StringBuilder();
        Scanner sc = new Scanner(System.in);
        int temp;

        while (true) {
            x = sc.nextInt();
            y = sc.nextInt();
            if (x == 0 && y == 0) {
                break;
            }
            if (x > y) {
                sb.append(y).append(SPACE).append(x).append(RN);
            } else {
                sb.append(x).append(SPACE).append(y).append(RN);
            }
        }

        // output
        System.out.print(sb);
    }
}

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

import java.util.*;
  
class Main{
  public static void main(String[] args){
    Scanner stdId = new Scanner(System.in);
    int x = stdId.nextInt(); 
    int y = stdId.nextInt(); 
    while(x!=0 && y!=0){
      System.out.println(Math.Min(x,y) + " " + Math.Max(x,y));
      x = stdId.nextInt();
      y = stdId.nextInt();
    }
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
      System.out.println(Math.Min(x,y) + " " + Math.Max(x,y));
                             ^
  symbol:   method Min(int,int)
  location: class Math
Main.java:9: error: cannot find symbol
      System.out.println(Math.Min(x,y) + " " + Math.Max(x,y));
                                                   ^
  symbol:   method Max(int,int)
  location: class Math
2 errors
Language: Java

import java.util.Scanner;
class Main {
	public void aa() {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		int y = sc.nextInt();
		while(x != 0 || y != 0) {
			if(x < y) {
				System.out.println(x + " " + y);
			} else {
				System.out.println(y + " " + x);
			}
			x = sc.nextInt();
			y = sc.nextInt();
		}
	}
	public static void main(String[] args) {
		new Main().aa();
	}
}
import java.util.Scanner;
class Main {
	public void aa() {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		int y = sc.nextInt();
		while(x != 0 || y != 0) {
			if(x < y) {
				System.out.println(x + " " + y);
			} else {
				System.out.println(y + " " + x);
			}
			x = sc.nextInt();
			y = sc.nextInt();
		}
	}
	public static void main(String[] args) {
		new Main().aa();
	}
}

Compiler output:
Main.java:21: error: class, interface, enum, or record expected
import java.util.Scanner;
^
1 error
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		while(a != 0 && b != 0){
			String str = (a > b) ? b + " " + a : a + " " + b;
			System.out.println(str);
			a = sc.nextInt();
			b = sc.nextInt();
		}
	}

}

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

import java.util.*;

public class SwappingTwoNumbers {

	public static void main(String[] args) {
		StringBuilder output = new StringBuilder();
		while(true) {
			Scanner scan = new Scanner(System.in);
			int a = scan.nextInt();
			int b = scan.nextInt();
			if (a == 0 && b == 0)
				break;
			if (a <= b) {
				output.append(a).append(" ").append(b).append("\n");
			} else {
				output.append(b).append(" ").append(a).append("\n");
			}
		}
		System.out.print(output);
	}

}

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

vimport java.util.*;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        while(true){
            int a = sc.nextInt();
            int b = sc.nextInt();
            if(a == 0 && b == 0) break;
            if(a < b) System.out.println(a + " " + b);
            else System.out.println(b + " " + a);
        }
    }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
vimport java.util.*;
^
1 error
Language: Java

vimport java.util.*;
class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        while(true){
            int a = scan.nextInt();
            int b = scan.nextInt();
            if(a == 0 && b == 0) break;
            if(a < b){
                System.out.println(a + " " + b);
            }
            else{
              System.out.println(b + " " + a);
        }
      }

    }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
vimport java.util.*;
^
1 error
Language: Java

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

class Main {
   public static void main(String[] args) {
       Scanner in = new Scanner(System.in);
       int    x = in.nextInt();
       int    y = in.nextInt();
       int    w;
       
       for(x!=0 || y!=0){
          if(x>y){
             w = x;
             x = y;
             y = w;
          }
        System.out.println("x" + "y");
}  

}
}

Compiler output:
Main.java:11: error: not a statement
       for(x!=0 || y!=0){
                ^
Main.java:11: error: ';' expected
       for(x!=0 || y!=0){
                       ^
2 errors
Language: Java

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

class Main {
   public static void main(String[] args) {
       Scanner in = new Scanner(System.in);
       int    x = in.nextInt();
       int    y = in.nextInt();
       int    w;
       
       for(x!=0 || y!=0){
          if(x>y){
             w = x;
             x = y;
             y = w;
          }
        System.out.println(x + " " + y);
}  

}
}

Compiler output:
Main.java:11: error: not a statement
       for(x!=0 || y!=0){
                ^
Main.java:11: error: ';' expected
       for(x!=0 || y!=0){
                       ^
2 errors
Language: Java

import java.io.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = null;
        StringBuider box = new StringBuider();
        for (int i = 1; (str = br.readLine()) != null; i++) {
            if (str.equals("0")) break;
             box = str;
    }
  }
}

Compiler output:
Main.java:7: error: cannot find symbol
        StringBuider box = new StringBuider();
        ^
  symbol:   class StringBuider
  location: class Main
Main.java:7: error: cannot find symbol
        StringBuider box = new StringBuider();
                               ^
  symbol:   class StringBuider
  location: class Main
2 errors
Language: Java

import java.io.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = null;
        StringBuilder box = new StringBuilder();
        for (int i = 1; (str = br.readLine()) != null; i++) {
            if (str.equals("0")) break;
             box = str;
    }
  }
}

Compiler output:
Main.java:10: error: incompatible types: String cannot be converted to StringBuilder
             box = str;
                   ^
1 error
Language: Java

import java.io.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = null;
        StringBuilder[] box = new StringBuilder();
        for (int i = 1; (str = br.readLine()) != null; i++) {
            if (str.equals("0")) break;
             box.append(str);
    }
    
  }
}

Compiler output:
Main.java:7: error: incompatible types: StringBuilder cannot be converted to StringBuilder[]
        StringBuilder[] box = new StringBuilder();
                              ^
Main.java:10: error: cannot find symbol
             box.append(str);
                ^
  symbol:   method append(String)
  location: variable box of type StringBuilder[]
2 errors
Language: Java

import java.io.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = null;
        StringBuilder sb = new StringBuilder();
        
        for (int i = 1; (str = br.readLine()) != null; i++)
            {
             if (str.equals("0")){
             break;}
             sb.append(str);
            }  

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

import java.io.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = null;
        StringBuilder sb = new StringBuilder();
        
        for (int i = 1; (str = br.readLine()) != null; i++)
            {
             if (str.equals("0")){
             break;}
             sb.append(str);
            }  
            
            ArrayList<String> array = new ArrayList<>(str);     
  }
}

Compiler output:
Main.java:16: error: cannot find symbol
            ArrayList<String> array = new ArrayList<>(str);     
            ^
  symbol:   class ArrayList
  location: class Main
Main.java:16: error: cannot find symbol
            ArrayList<String> array = new ArrayList<>(str);     
                                          ^
  symbol:   class ArrayList
  location: class Main
2 errors
Language: Java

import java.io.*;
import java.util.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = null;

        for (int i = 1; (str = br.readLine()) != null; i++)
            {
             if (str.equals("0")){
             break;}
             int[] array = Integer.parseInt.split(str);
            }  
            
            
  }
}

Compiler output:
Main.java:13: error: cannot find symbol
             int[] array = Integer.parseInt.split(str);
                                  ^
  symbol:   variable parseInt
  location: class Integer
1 error
Language: Java

import java.io.*;
import java.util.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = null;

        for (int i = 1; (str = br.readLine()) != null; i++)
            {
             if (str.equals("0")){
             break;}
             String[ ] array = str.split();
            }  
            
            
  }
}

Compiler output:
Main.java:13: error: no suitable method found for split(no arguments)
             String[ ] array = str.split();
                                  ^
    method String.split(String,int) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(String,int,boolean) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(char,int,boolean) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(String) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.io.*;
import java.util.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = null;

        for (int i = 1; (str = br.readLine()) != null; i++)
            {
             if (str.equals("0")){
             break;}
             int[ ] array = Integer.parseInt(str.split("[ \n]"));
            }  
            
            
  }
}

Compiler output:
Main.java:13: error: incompatible types: String[] cannot be converted to String
             int[ ] array = Integer.parseInt(str.split("[ \n]"));
                                                      ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

import java.io.*;
import java.util.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = null;

        for (int i = 1; (str = br.readLine()) != null; i++){
             if (str.equals("0")){
             break;
               }
             String[ ] array = str.split("[ \n]");
             array = Arrays.sort(array);
            }  
            
            
  }
}

Compiler output:
Main.java:14: error: incompatible types: void cannot be converted to String[]
             array = Arrays.sort(array);
                                ^
1 error
Language: Java

import java.io.*;
import java.util.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = null;

        for (int i = 1; (str = br.readLine()) != null; i++){
             if (str.equals("0")){
             break;
               }
             String[ ] array = str.split("[ ]");
             Arrays.sort(array);
             System.out.println(array)
            }  
            
            
  }
}

Compiler output:
Main.java:15: error: ';' expected
             System.out.println(array)
                                      ^
1 error
Language: Java

import java.util.Scanner;

public class SwappingTwoNumbers {
	public static void main(String[] args) {
		try {
			Scanner sc = new Scanner(System.in);
			while (sc.hasNext()) {
				int x = Integer.parseInt(sc.next());
				int y = Integer.parseInt(sc.next());
				if (x == 0 && y == 0) {
					break;
				} else if (x < y) {
					System.out.println(x + " " + y);
				} else {
					System.out.println(y + " " + x);
				}
			}
			sc.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}

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

import java.util.Scanner;

public class Main1{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    while(true){
    int x = scan.nextInt();
    int y = scan.nextInt();
    if( x == 0 && y == 0 )break;
    if( x > y ){
    System.out.println(""+y+" "+x+"");
    }else{
    System.out.println(""+x+" "+y+"");
    }     
   }
  }
}

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

mport java.util.Scanner;

public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		StringBuilder output = new StringBuilder();

		while (true) {

			int number1 = input();
			int number2 = input();

			if (number1 < number2) {

				output.append(number1 + " " + number2);

			} else if (number2 < number1) {

				output.append(number2 + " " + number1);

			} else if (number1 ==0 && number2 == 0) {

				output.delete(output.length() -1, output.length());
				break;

			} else if (number1 == number2){

				output.append(number1 + " " + number2);

			}

			output.append("\n");

		}

		System.out.println(output);

		close();

	}

	public static int input() {

		return Integer.parseInt(scanner.next());

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: Java

import java.io.IOException;
import java.util.Scanner;
public class nMain {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
      Scanner sc = new Scanner(System.in);
      int x,y;
      x = 1;
      y = 1;
      while(x != 0 || y != 0){
    	x = sc.nextInt();
    	y = sc.nextInt();
    	if((x!=0 || y != 0) && x > y){
    		System.out.println(y+" "+x);}
    	else if((x!=0 || y != 0) && x < y){
        	System.out.println(x+" "+y);
    	}
      }
	}

}

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

import java.io.*;

public class Main {
    
    public static void main(String[] args) {
        
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        
        try {
            
            boolean flag = true;
            while (flag) {
                
                String[] line = reader.readLine().split(" ");
                int x = Integer.parseInt(line[0]);
                int y = Integer.parseInt(line[1]);
                final int END = 0;
                
                if (x == END && y == END) {
                    flag = false;
                } else {
                    int big   = Math.max(x, y);
                    int small = Math.min(x, y);
                    System.out.println(big + " " + small);
                }
                
            }
            
        } catch (NumberFormatException e) {
            
            e.printStackTrace();
            
        }
        
    }
    
}

Compiler output:
Main.java:14: error: unreported exception IOException; must be caught or declared to be thrown
                String[] line = reader.readLine().split(" ");
                                               ^
1 error
Language: Java

import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan=new Scanner(Sysytem.in);
while(true){
String A=scan.next();
String B=scan.next();
int a=integer.parseInt(A);
int b=integer.parseInt(B);
int okiba;
if(a>b){
okiba=a;
a=b;
b=okiba;
}
System.out.println(a+" "+b);
}
}
}

Compiler output:
Main.java:4: error: cannot find symbol
Scanner scan=new Scanner(Sysytem.in);
                         ^
  symbol:   variable Sysytem
  location: class Main
Main.java:8: error: cannot find symbol
int a=integer.parseInt(A);
      ^
  symbol:   variable integer
  location: class Main
Main.java:9: error: cannot find symbol
int b=integer.parseInt(B);
      ^
  symbol:   variable integer
  location: class Main
3 errors
Language: Java

import java.util.*;

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

{
	Scanner sc=new Scanner(System.in); 
	String input=sc.nextLine();
	String[] inputArray =input.split(" ");
	
		int x = Integer.parseInt(inputArray[0]);  
    	int y = Integer.parseInt(inputArray[1]);  
    	
		if(x>y)
		{
			
			int t=x;
			x=y;
			y=t;
			System.out.println(x+" "+y);
		}
			
		else if(x==0 && y==0)
		{
     		
			System.out.println(" ");
		    
		}

}

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

import java.util.Scanner;

public class L_3_3 {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(true){
			int x = sc.nextInt();
			int y = sc.nextInt();
			if(x == 0 && y == 0) break;
			if(x > y){
				System.out.println(y+" "+x);
			}else{
				System.out.println(x+" "+y);
			}
		}
	}
}

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

import java.util.Scanner;

public class main {


    public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int x = scan.nextInt();
		int y = scan.nextInt();
		while(x != 0 && y != 0){
			if(x > y)
	         System.out.println(x + " " + y);
			else
				System.out.println(y + " " + x);
			x = scan.nextInt();
			y = scan.nextInt();
		}
        scan.close();
    }

}

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

import java.util.Scanner;

public class main {


    public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int x = scan.nextInt();
		int y = scan.nextInt();
		while(x != 0 && y != 0){
			if(x < y)
	         System.out.println(x + " " + y);
			else
				System.out.println(y + " " + x);
			x = scan.nextInt();
			y = scan.nextInt();
		}
        scan.close();
    }

}

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

import java.util.Scanner; // ?????¨?????????????????????

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

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

        // ?????????????????? int ?????¨??????????????\???????????????.
        // ??????????????????????????? 0 ????????????.
        while (true) {
            int x = sc.nextInt();
            int y = sc.nextInt();
            if (x == 0 && y == 0) { break; }
            if (x > y) { System.out.printtln(y + " " + x); }
            else { System.out.printtln(x + " " + y); }
        }
    }
}

Compiler output:
Main.java:14: error: cannot find symbol
            if (x > y) { System.out.printtln(y + " " + x); }
                                   ^
  symbol:   method printtln(String)
  location: variable out of type PrintStream
Main.java:15: error: cannot find symbol
            else { System.out.printtln(x + " " + y); }
                             ^
  symbol:   method printtln(String)
  location: variable out of type PrintStream
2 errors
Language: Java

import java.io.*;

class Main
{
    public static void main (String[ ] args) throws Exception
    {
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        StringBuffer sb = new StringBuffer();
        
        while()
        {
            String[] strAry = br.readLine().split();
            int x = Integer.parseInt(strAry[0]);
            int y = Integer.parseInt(strAry[1]);
            
            if(0 == x && 0 == y)
            {
                break;
            }
            
            if(x > y)
            {
                sb.append(y + " " + x + "\n");
            }
            else
            {
                sb.append(x + " " + y + "\n");
            }
        }
????????????????System.out.println(sb);
    }
}

Compiler output:
Main.java:10: error: illegal start of expression
        while()
              ^
Main.java:30: error: illegal start of expression
????????????????System.out.println(sb);
^
Main.java:30: error: illegal start of expression
????????????????System.out.println(sb);
 ^
Main.java:30: error: illegal start of expression
????????????????System.out.println(sb);
  ^
Main.java:30: error: illegal start of expression
????????????????System.out.println(sb);
   ^
Main.java:30: error: illegal start of expression
????????????????System.out.println(sb);
    ^
Main.java:30: error: illegal start of expression
????????????????System.out.println(sb);
     ^
Main.java:30: error: illegal start of expression
????????????????System.out.println(sb);
      ^
Main.java:30: error: illegal start of expression
????????????????System.out.println(sb);
       ^
Main.java:30: error: illegal start of expression
????????????????System.out.println(sb);
        ^
Main.java:30: error: illegal start of expression
????????????????System.out.println(sb);
         ^
Main.java:30: error: illegal start of expression
????????????????System.out.println(sb);
          ^
Main.java:30: error: illegal start of expression
????????????????System.out.println(sb);
           ^
Main.java:30: error: illegal start of expression
????????????????System.out.println(sb);
            ^
Main.java:30: error: illegal start of expression
????????????????System.out.println(sb);
             ^
Main.java:30: error: illegal start of expression
????????????????System.out.println(sb);
              ^
Main.java:30: error: illegal start of expression
????????????????System.out.println(sb);
               ^
Main.java:30: error: : expected
????????????????System.out.println(sb);
                                      ^
18 errors
Language: Java

import java.io.*;

class Main
{
    public static void main (String[ ] args) throws Exception
    {
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        StringBuffer sb = new StringBuffer();
        
        while()
        {
            String[] strAry = br.readLine().split();
            int x = Integer.parseInt(strAry[0]);
            int y = Integer.parseInt(strAry[1]);
            
            if(0 == x && 0 == y)
            {
                break;
            }
            
            if(x > y)
            {
                sb.append(y + " " + x + "\n");
            }
            else
            {
                sb.append(x + " " + y + "\n");
            }
        }
        System.out.println(sb);
    }
}

Compiler output:
Main.java:10: error: illegal start of expression
        while()
              ^
1 error
Language: Java

import java.io.*;

class Main
{
    public static void main (String[ ] args) throws Exception
    {
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        StringBuffer sb = new StringBuffer();
        
        while(true)
        {
            String[] strAry = br.readLine().split();
            int x = Integer.parseInt(strAry[0]);
            int y = Integer.parseInt(strAry[1]);
            
            if(0 == x && 0 == y)
            {
                break;
            }
            
            if(x > y)
            {
                sb.append(y + " " + x + "\n");
            }
            else
            {
                sb.append(x + " " + y + "\n");
            }
        }
        System.out.println(sb);
    }
}

Compiler output:
Main.java:12: error: no suitable method found for split(no arguments)
            String[] strAry = br.readLine().split();
                                           ^
    method String.split(String,int) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(String,int,boolean) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(char,int,boolean) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(String) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

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

        while (true) {
            int x = scan.nextInt();
            int y = scan.nextInt();

            if (x == 0 && y == 0) {
                break;
            }
            int xy = Math.multiplyExact(x, y);
            System.out.println(xy == 1 ? x + " " + y : y + " " + x);
        }
    }
}

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