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

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


class Main {
    public static void main(String[] args) {
    BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
    StringBuilder builder = new StringBuilder();
    
    while(true) {
        String data[] = reader.readLine().split(" ");
        int a = Integer.parseInt(data[0]);
        int b = Integer.parseInt(data[1]);
        if (a == 0 && b == 0) {
            break;
        builder.append(Integer.toString(a<b?a:b)).append(" ").append(Integer.toString(a<b?b:a)).append("\n");
    }
    System.out.print(builder);
}

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

public class Main {

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

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

class Main {

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

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

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;
            } else if (a < b) {
                System.out.println(a + " " + b);
            } else {
                System.out.println(a + " " + b);
            }
            
        }
    }
}

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.Scanner;                                                   
import java.util.Arrays;
   
public class C {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt(), y = scan.nextInt();
      
        while(true) {
            if(x == 0 && y == 0)
                break;
            else if(x < y) {
                System.out.println(data[0] + " " + data[1]);
            } else {
                System.out.println(data[1] + " " + data[0]);
            } 
        } 
    } 
}

Compiler output:
Main.java:4: error: class C is public, should be declared in a file named C.java
public class C {
       ^
Main.java:13: error: cannot find symbol
                System.out.println(data[0] + " " + data[1]);
                                   ^
  symbol:   variable data
  location: class C
Main.java:13: error: cannot find symbol
                System.out.println(data[0] + " " + data[1]);
                                                   ^
  symbol:   variable data
  location: class C
Main.java:15: error: cannot find symbol
                System.out.println(data[1] + " " + data[0]);
                                   ^
  symbol:   variable data
  location: class C
Main.java:15: error: cannot find symbol
                System.out.println(data[1] + " " + data[0]);
                                                   ^
  symbol:   variable data
  location: class C
5 errors
Language: Java

import java.util.Scanner;                                                   
import java.util.Arrays;
   
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt(), y = scan.nextInt();
      
        while(true) {
            if(x == 0 && y == 0)
                break;
            else if(x < y) {
                System.out.println(data[0] + " " + data[1]);
            } else {
                System.out.println(data[1] + " " + data[0]);
            } 
        } 
    } 
}

Compiler output:
Main.java:13: error: cannot find symbol
                System.out.println(data[0] + " " + data[1]);
                                   ^
  symbol:   variable data
  location: class Main
Main.java:13: error: cannot find symbol
                System.out.println(data[0] + " " + data[1]);
                                                   ^
  symbol:   variable data
  location: class Main
Main.java:15: error: cannot find symbol
                System.out.println(data[1] + " " + data[0]);
                                   ^
  symbol:   variable data
  location: class Main
Main.java:15: error: cannot find symbol
                System.out.println(data[1] + " " + data[0]);
                                                   ^
  symbol:   variable data
  location: class Main
4 errors
Language: Java

public class Main {

	public static void main(String[] args)  {

		Scanner scanner = new Scanner( System.in );

		ArrayList<Integer> nums1 = new ArrayList<Integer>();
		ArrayList<Integer> nums2 = new ArrayList<Integer>();

		while ( true ) {
			String inputText1 = scanner.next();
			String inputText2 = scanner.next();

			int x1 = Integer.parseInt(inputText1);
			int x2 = Integer.parseInt(inputText2);

			if ( x1 == 0 && x2 == 0 ) {
				break;
			}

			if ( x1 <= x2 ) {
				nums1.add(x1);
				nums2.add(x2);
			}
			else {
				nums1.add(x2);
				nums2.add(x1);
			}
		}

		for ( int i = 0; i < nums1.size(); i++ ) {
			System.out.println(nums1.get(i) + " " + nums2.get(i));
		}

		scanner.close();
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner scanner = new Scanner( System.in );
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner scanner = new Scanner( System.in );
		                      ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
		ArrayList<Integer> nums1 = new ArrayList<Integer>();
		^
  symbol:   class ArrayList
  location: class Main
Main.java:7: error: cannot find symbol
		ArrayList<Integer> nums1 = new ArrayList<Integer>();
		                               ^
  symbol:   class ArrayList
  location: class Main
Main.java:8: error: cannot find symbol
		ArrayList<Integer> nums2 = new ArrayList<Integer>();
		^
  symbol:   class ArrayList
  location: class Main
Main.java:8: error: cannot find symbol
		ArrayList<Integer> nums2 = new ArrayList<Integer>();
		                               ^
  symbol:   class ArrayList
  location: class Main
6 errors
Language: Java

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

int i=1;
int tmp;
while(true){
int x = sc.nextInt();
int y = sc.nextint();
if(x==0 && y==0){break;}

if(y>x){
tmp =x;
x=y;
y=tmp;
}

System.out.println(x+" "+y);
i=i+1;

}

}
}

Compiler output:
Main.java:10: error: cannot find symbol
int y = sc.nextint();
          ^
  symbol:   method nextint()
  location: variable sc of type Scanner
1 error
Language: Java

public class Main {

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

        while (a != 0 && b != 0) {
            a = scanner.nextInt();
            b = scanner.nextInt();
            if (a > b) {
                int c;
                c = a;
                a = b;
                b = c;
            }
            System.out.println(a + " " + b);
        }
    }
}

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

public class Main {

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

        while (a != 0 || b != 0) {
            a = scanner.nextInt();
            b = scanner.nextInt();
            if (a > b) {
                int c;
                c = a;
                a = b;
                b = c;
            }
            if (a == 0 || b ==0) {
                break;
            }
            System.out.println(a + " " + b);
        }
    }
}

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

public class Main {

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

        while (true) {
            a = scanner.nextInt();
            b = scanner.nextInt();
            if (a > b) {
                int c;
                c = a;
                a = b;
                b = c;
            }
            if (a == 0 && b ==0) {
                break;
            }
            System.out.println(a + " " + b);
        }
    }
}

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

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

Compiler output:
Main.java:6: error: variable x might not have been initialized
        while(x != 0 && y != 0){
              ^
Main.java:6: error: variable y might not have been initialized
        while(x != 0 && y != 0){
                        ^
2 errors
Language: Java

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

Compiler output:
Main.java:9: error: ';' expected
while(x != 0 && y != 0){
                       ^
1 error
Language: Java

inport java.util.Scanner;

public class Main{
    ppublic static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);
	int x,y;

	while(true)
	    {
		x = scan.nextInt();
		y = scan.nextInt();
		if( x == 0 && y == 0 )
		    break;
		else if( x <= y)
		    System.out.println(x+" "+y);
		else if( x > y )
		    System.out.println(y+" "+x);
	    }
    }

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
inport java.util.Scanner;
^
Main.java:4: error: <identifier> expected
    ppublic static void main(String argv[])
           ^
Main.java:20: error: reached end of file while parsing
    }
     ^
3 errors
Language: Java

import java.util.Scanner;

public class Main{
    ppublic static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);
	int x,y;

	while(true)
	    {
		x = scan.nextInt();
		y = scan.nextInt();
		if( x == 0 && y == 0 )
		    break;
		else if( x <= y)
		    System.out.println(x+" "+y);
		else if( x > y )
		    System.out.println(y+" "+x);
	    }
    }

Compiler output:
Main.java:4: error: <identifier> expected
    ppublic static void main(String argv[])
           ^
Main.java:20: error: reached end of file while parsing
    }
     ^
2 errors
Language: Java

import java.util.Scanner;

public class Main{
    public static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);
	int x,y;

	while(true)
	    {
		x = scan.nextInt();
		y = scan.nextInt();
		if( x == 0 && y == 0 )
		    break;
		else if( x <= y)
		    System.out.println(x+" "+y);
		else if( x > y )
		    System.out.println(y+" "+x);
	    }
    }

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

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int x = 1;
        int y = 1;

        while (x != 0 && y != 0) {
            x = scanner.nextInt();
            y = scanner.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:4: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

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

public class Main {

    public static void main(String[] args) throws Exception {

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        while (true) {
            String data[] = reader.readLine().split(" ");
            int a = Integer.parseInt(data[0]);
            int b = Integer.parseInt(data[1]);
            if (a == 0 && b == 0) {
                break;
            }
            sb.append(a < b ? a : b).append(" ").append(a < b ? b : a).append("\n");
}        }
        System.out.println(sb);
    }

Compiler output:
Main.java:21: error: <identifier> expected
        System.out.println(sb);
                          ^
Main.java:21: error: <identifier> expected
        System.out.println(sb);
                             ^
2 errors
Language: Java

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

public class Main {

    public static void main(String[] args) throws Exception {

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        while (true) {
            String data[] = reader.readLine().split(" ");
            int a = Integer.parseInt(data[0]);
            int b = Integer.parseInt(data[1]);
            if (a == 0 && b == 0) {
                break;
            }
            sb.append(a < b ? a : b).append(" ").append(a < b ? b : a).append("\n");
}        }
        System.out.print(sb);
    }

Compiler output:
Main.java:21: error: <identifier> expected
        System.out.print(sb);
                        ^
Main.java:21: error: <identifier> expected
        System.out.print(sb);
                           ^
2 errors
Language: Java

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

public class AizuC {

    public static void main(String[] args) throws Exception {

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        while (true) {
            String data[] = reader.readLine().split(" ");
            int a = Integer.parseInt(data[0]);
            int b = Integer.parseInt(data[1]);
            if (a == 0 && b == 0) {
                break;
            }
            sb.append(Integer.toString(a< b ? a : b)).append(" ").append(Integer.toString(a < b ? b : a)).append("\n");
        }
        System.out.print(sb);
    }
}

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

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

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

		for(;;){
			int a = Integer.parseInt(s[0]);
			int b = Integer.parseInt(s[1]);

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

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
iimport java.io.BufferedReader;
^
Main.java:2: error: class, interface, enum, or record expected
import java.io.IOException;
^
Main.java:3: error: class, interface, enum, or record expected
import java.io.InputStreamReader;
^
Main.java:5: error: '{' expected
public class Kadai3_3 Main{
                     ^
4 errors
Language: Java

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

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

		for(;;){
			int a = Integer.parseInt(s[0]);
			int b = Integer.parseInt(s[1]);

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

Compiler output:
Main.java:5: error: '{' expected
public class Kadai3_3 Main{
                     ^
1 error
Language: Java

import java.io.*;

class Main{
	public static void main(String[] args){
		try{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			StringBuilder sb = new StringBuilder();
			
			while(true){
				String line[] = br.readLine().aplit(" ");
				int x = Integer.parseInt(line[0]);
				int y = Integer.parseInt(line[1]);
				if(x == 0 && y == 0){
					break;
				}
				else{
					sb.append(Integer.toString(x < y ? x : y)).append(" ").append(Integer.toString(x < y ? y : x)).append("\n");
				}
				System.out.print(sb);
			}
		}
		catch(Exception e){
			System.out.println(e);
		}
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
				String line[] = br.readLine().aplit(" ");
				                             ^
  symbol:   method aplit(String)
  location: class String
1 error
Language: Java

import java.io.*;

class Mian{
    public static void main(String[] args)throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        
        while(true){
            String line[] = br.readLine().split(" ");
            int x = Integer.parseInt(line[0]);
            int y = Integer.parseInt(line[1]);
            if(x == 0 && y == 0){
                break;
            }else{
                sb.append(Integer.toString(x < y ? x ; y)).append(" ").append(Integer.toString(x < y ?  y : x)).append("\n");
            }
        }
        System.out.print(sb);
    }
}

Compiler output:
Main.java:15: error: : expected
                sb.append(Integer.toString(x < y ? x ; y)).append(" ").append(Integer.toString(x < y ?  y : x)).append("\n");
                                                    ^
Main.java:15: error: illegal start of expression
                sb.append(Integer.toString(x < y ? x ; y)).append(" ").append(Integer.toString(x < y ?  y : x)).append("\n");
                                                     ^
Main.java:15: error: not a statement
                sb.append(Integer.toString(x < y ? x ; y)).append(" ").append(Integer.toString(x < y ?  y : x)).append("\n");
                                                       ^
Main.java:15: error: ';' expected
                sb.append(Integer.toString(x < y ? x ; y)).append(" ").append(Integer.toString(x < y ?  y : x)).append("\n");
                                                        ^
4 errors
Language: Java

import java.util.Scanner;

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;
			}else{
				if(y < x){
					int a;
					int a = x;
					x = y;
					y = a;
					System.out.println(x + " " + y);
				}else{
					System.out.println(x + " " + y);
				}
			}
		}
	}
}

Compiler output:
Main.java:17: error: variable a is already defined in method main(String[])
					int a = x;
					    ^
1 error
Language: Java

import java.io.*;
public class Mains {
	public static void main(String[] args){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
			String line = reader.readLine();
        	String[] num = line.split(" ", -1);
        	int x = Integer.parseInt(num[0]);
        	int y = Integer.parseInt(num[1]);
        	if (x == 0 && y == 0) {
        		//;
        	} else {
        		if (x > y) {
        			System.out.println(y + " " + x);
        			
        		} else {
        			System.out.println(x + " " + y);
        		}
        	}
        } catch (IOException e) {
          System.out.println(e);
        } catch (NumberFormatException e) {
          System.out.println("error");
        }
    }
}

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

import java.io.*;
public class Swap {
	public static void main(String[] args){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
			String line = reader.readLine();
        	String[] num = line.split(" ", -1);
        	int x = Integer.parseInt(num[0]);
        	int y = Integer.parseInt(num[1]);
        	while() {
        		if (x == 0 && y == 0) {
        			break;
        		} else {
        			if (x > y) {
        				System.out.println(y + " " + x);
        			} else {
        				System.out.println(x + " " + y);
        			}
        		}
        	}
        } catch (IOException e) {
          System.out.println(e);
        } catch (NumberFormatException e) {
          System.out.println("error");
        }
    }
}

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

import java.io.*;

public class test {
    
    public static void Main(String[] args) throws IOException{
        StringBuilder sb = new StringBuilder();
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in),1);
        int x = 0;
        while(x<3001){
            String st = br.readLine();
            String[] num = st.split(" ",0);
            int a = Integer.parseInt(num[0]);
            int b = Integer.parseInt(num[1]);
            if(a > b)
            {
                int c = a;
                a = b;
                b = c;
            }
            if(0<=a && a<10001 && 0<=b && b<10001)
            {
                sb.append(a);
                sb.append(b);
                x++;
                String str = sb.toString();
                System.out.println(str);
            }
        }
    }
}

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

import java.io.*;

public class test {
    
    public static void main(String[] args) throws IOException{
        StringBuilder sb = new StringBuilder();
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in),1);
        int x = 0;
        while(x<3001){
            String st = br.readLine();
            String[] num = st.split(" ",0);
            int a = Integer.parseInt(num[0]);
            int b = Integer.parseInt(num[1]);
            if(a > b)
            {
                int c = a;
                a = b;
                b = c;
            }
            if(0<=a && a<10001 && 0<=b && b<10001)
            {
                sb.append(a);
                sb.append(b);
                x++;
                String str = sb.toString();
                System.out.println(str);
            }
        }
    }
}

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

import java.io.*;

class Main {
    public static void main(String[] args) {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            int x = 0;
            int y = 0;
            int cnt = 0;
            boolean end = false;
            
            while(!end){
            	String temp = br.readLine();
            	String[] numbers = temp.split(" ");
            	x = Integer.parseInt(numbers[0]);
            	y = Integer.parseInt(numbers[1]);
            	
            	if((x < 0 && y > 10000) || (x == 0 && y == 0) || cnt > 3000){
            		end = true;
            	}else if(x > y || x == y){
            		System.out.println(x + " " + y);
            	}else if(x < y){
            		System.out.println(y + " " + x);
            	}
            	cnt++;
            }
            

        } catch (Exception e) {
            System.out.println(e);
        }
    }

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

import java.io.*;

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

            String[] str = br.readLine().split(" ");
            int x = Integer.parseInt(str[0]);
            int y = Integer.parseInt(str[1]);

            if(x == 0 && y == 0){
                break;
            }else{
                sb.append(Intger.toString(x<y?x:y)).append(" ").append(Intger.toString(x<y?y:x)).append("\n");
            }

        }
        System.out.println(sb);
    }
}

Compiler output:
Main.java:16: error: cannot find symbol
                sb.append(Intger.toString(x<y?x:y)).append(" ").append(Intger.toString(x<y?y:x)).append("\n");
                          ^
  symbol:   variable Intger
  location: class Main
Main.java:16: error: cannot find symbol
                sb.append(Intger.toString(x<y?x:y)).append(" ").append(Intger.toString(x<y?y:x)).append("\n");
                                                                       ^
  symbol:   variable Intger
  location: class Main
2 errors
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args){
		List<Integer, Integer> numSet = ArrayList<Integer, Integer>();
		for(;;){
			String line = new Scanner(System.in).nextLine();
			if(line.equals("0 0")){
				break;
			}
			String[] numbers = line.split("\\s");
			int x = Integer.parseInt(numbers[0]);
			int y = Integer.parseInt(numbers[1]);

			if(x > y){
				int small = y;
				numbers[1] = numbers[0];
				numbers[0] = y;
			}
			numSet.add(numbers[0], numbers[1]);
		}

		int[][] array = numSet.toArray();
		for(int i = 0; i < array.length; i++){
			System.out.printf("%d %d\n", array[i][0], array[i][1]);
		}
	}
}

Compiler output:
Main.java:5: error: ';' expected
		List<Integer, Integer> numSet = ArrayList<Integer, Integer>();
		                                                          ^
1 error
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args){
		List<Integer, Integer> numSet = new ArrayList<Integer, Integer>();
		for(;;){
			String line = new Scanner(System.in).nextLine();
			if(line.equals("0 0")){
				break;
			}
			String[] numbers = line.split("\\s");
			int x = Integer.parseInt(numbers[0]);
			int y = Integer.parseInt(numbers[1]);

			if(x > y){
				int small = y;
				numbers[1] = numbers[0];
				numbers[0] = y;
			}
			numSet.add(numbers[0], numbers[1]);
		}

		int[][] array = numSet.toArray();
		for(int i = 0; i < array.length; i++){
			System.out.printf("%d %d\n", array[i][0], array[i][1]);
		}
	}
}

Compiler output:
Main.java:5: error: wrong number of type arguments; required 1
		List<Integer, Integer> numSet = new ArrayList<Integer, Integer>();
		    ^
Main.java:5: error: wrong number of type arguments; required 1
		List<Integer, Integer> numSet = new ArrayList<Integer, Integer>();
		                                             ^
Main.java:18: error: incompatible types: int cannot be converted to String
				numbers[0] = y;
				             ^
3 errors
Language: Java

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();

		int x,y;

		while ( 0 != ( x = sc.nextInt() ) || 0 != ( y = sc.nextInt() ) ) {
			if ( x < y )
				sb.append( x + " " + y + "\n" );
			else
				sb.append( y + " " + x + "\n" );
		}

		System.out.print(sb);
	}

}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: 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 Main{
   public static void main(String[]args){



      Scanner sc = new Scanner(System.in);
      int x = sc.nextInt();
      int y = sc.nextInt();
   
      if(x==0 && y==0){
         break;   
      }else if(x<y){
         System.out.println(y+" "+x);         
      }else if(x>y){
         System.out.println(x+" "+y);
      }
   }
}

Compiler output:
Main.java:12: error: break outside switch or loop
         break;   
         ^
1 error
Language: Java

import java.util.Scanner;

public class Num {
    public static void main (String args[]){
    	Scanner str =new Scanner(System.in);
        StringBuffer buf = new StringBuffer();
    	while(true){
    	    int a = str.nextInt();
    	    int b = str.nextInt();
    	    if(a<b){
    	        buf.append(Integer.toString(a)).append(" ").append(Integer.toString(b)).append("\n");
    	    }
    	    if(a>b){
    	    	buf.append(Integer.toString(b)).append(" ").append(Integer.toString(a)).append("\n");
    	    }
    	    if(a==b){
    	    	buf.append(Integer.toString(b)).append(" ").append(Integer.toString(a)).append("\n");
    	    }
    	    if(a==0&&b==0){
    	    	break;
    	    }
    	}
    	System.out.print(buf);
    }
}

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

import java.util.Scanner;

public class Solution{
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int x = s.nextInt();
        int y = s.nextInt();

        System.out.println(y + " " + x);
    }
}

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

import java.util.Scanner;

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

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

import java.util.Scanner;

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

	

Compiler output:
Main.java:3: error: class STN is public, should be declared in a file named STN.java
public class STN{
       ^
Main.java:9: error: cannot find symbol
	    w = y;
	    ^
  symbol:   variable w
  location: class STN
Main.java:11: error: cannot find symbol
	    x = w;
	        ^
  symbol:   variable w
  location: class STN
Main.java:18: error: cannot find symbol
		w = y;
		^
  symbol:   variable w
  location: class STN
Main.java:20: error: cannot find symbol
		x = w;
		    ^
  symbol:   variable w
  location: class STN
5 errors
Language: Java

import java.util.Scanner;

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

	

Compiler output:
Main.java:9: error: cannot find symbol
	    w = y;
	    ^
  symbol:   variable w
  location: class Main
Main.java:11: error: cannot find symbol
	    x = w;
	        ^
  symbol:   variable w
  location: class Main
Main.java:18: error: cannot find symbol
		w = y;
		^
  symbol:   variable w
  location: class Main
Main.java:20: error: cannot find symbol
		x = w;
		    ^
  symbol:   variable w
  location: class Main
4 errors
Language: Java

import java.util.Scanner;
public class TwoIntegers {

	public static void main(String[] args) {
	// TODO ?????????????????????????????????????????????
		Scanner kb=new Scanner(System.in);
int[][] a=new int[10000][2];
int i=0;
int dCount=0;
		while(true){
		a[i][0]=kb.nextInt();
		a[i][1]=kb.nextInt();
	
		if(a[i][0]==0&&a[i][1]==0){
			i++;
			dCount=i;
			break;
		}
		i++;
}
		
int oneTimeNum=0;
		for(int j=0;j<=dCount;j++){
			if(a[j][0]==0&&a[j][1]==0){
				break;
			}
		else if(a[j][0]>a[j][1]){
			oneTimeNum=a[j][0];
			a[j][0]=a[j][1];
			a[j][1]=oneTimeNum;
			System.out.printf("%d %d\n"
					,a[j][0],a[j][1]);
			continue;
			}
			System.out.printf("%d %d\n"
					,a[j][0],a[j][1]);
		}
		
	}

}

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

import java.util.Scanner;
public class REN07
{
  public static void main(String[] args)
  {
    Scanner scanner = new Scanner(System.in);
    while(true)
    {
        int x = scanner.nextInt();
        int y = scanner.nextInt();
        if((x == 0) &&(y == 0)){
          break;
        }
        if(x<y)
        {
          System.out.println(x + " " + y);
        }
        if(x>y)
        {
          System.out.println(y + " " + x);
        }
        if(x == y)
        {
          System.out.println(x + " " + y);
        }
        }
    }
  }

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

import java.util.Scanner;

public class Study01 {
	
	
	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(x+" "+y);
		}else{
			System.out.println(y+" " +x);
		}
			
		}
	}

}

Compiler output:
Main.java:3: error: class Study01 is public, should be declared in a file named Study01.java
public class Study01 {
       ^
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;
			
			
		if(x>y){
			System.out.println(x+" "+y);
		}else{
			System.out.println(y+" " +x);
		}
		
		if(x ==0&& y==0){
			System.exit(0);
		}
		}
	}

}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner scan =new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: 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 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(x+" "+y);
		}else{
			System.out.println(y+" " +x);
		}

		}
	}

}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner scan =new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: 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 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(x+" "+y);
		}else{
			System.out.println(y+" " +x);
		}
	}
}

Compiler output:
Main.java:19: error: reached end of file while parsing
}
 ^
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;
			
			
		if(x<y){
			System.out.println(x+" "+y);
		}else{
			System.out.println(y+" " +x);
		}
	}
}
???

Compiler output:
Main.java:20: error: illegal start of type
???
^
Main.java:20: error: reached end of file while parsing
???
   ^
2 errors
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;
			
			
		if(x<y){
			System.out.println(x+" "+y);
		}else{
			System.out.println(y+" " +x);
}
}
}
???

Compiler output:
Main.java:20: error: illegal start of type
???
^
Main.java:20: error: reached end of file while parsing
???
   ^
2 errors
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;
			
			
		if(x<y){
			System.out.println(x+" "+y);
		}else{
			System.out.println(y+" " +x);
		}
	}
}
}

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

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	int x =0;
	int y =0;
	int t =0;
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> listx = new ArrayList<Integer>();
	ArrayList<Integer> listy = new ArrayList<Integer>();
		while(scan.hasNextInt()){
			x = scan.nextInt();			
			y = scan.nextInt();
			
			if(x>y){
				t=x;
				x=y;
				y=t;
			}
			
			listx.add(x);			
			listy.add(y);
		}
		for(int i=0;i<list.size();i++){
			System.out.println(listx.get(i)+" "+listy.get(i));
		}
	}
}

Compiler output:
Main.java:25: error: cannot find symbol
		for(int i=0;i<list.size();i++){
		              ^
  symbol:   variable list
  location: class Main
1 error
Language: Java

import java.util.Scanner;

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

        Scanner as = new Scanner(System.in);
       
        int x;
        int y;
        int tr;

       
           
           x = as.nextInt();
           y = as.nextInt();
           
           
           

        while(1){
           
           if(x==0 && y==0)
                 break;
           x = as.nextInt();
           y = as.nextInt();
           
           
           if(x<y){
              System.out.println(x+" "+y);

             }
           else{
              System.out.println(y+" "+x);

             } 
       }
   
 }
 
}

Compiler output:
Main.java:20: error: incompatible types: int cannot be converted to boolean
        while(1){
              ^
1 error
Language: Java

import java.util.Scanner;

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

        Scanner as = new Scanner(System.in);
       
        int x;
        int y;
        int tr;

       
           
           x = as.nextInt();
           y = as.nextInt();
           
           
           

        while(1){
           
           if(x==0 && y==0){
                 break;
    }
           x = as.nextInt();
           y = as.nextInt();
           
           
           if(x<y){
              System.out.println(x+" "+y);

             }
           else{
              System.out.println(y+" "+x);

             } 
       }
   
 }
 
}

Compiler output:
Main.java:20: error: incompatible types: int cannot be converted to boolean
        while(1){
              ^
1 error
Language: Java

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  int x,y;
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  String str = br.readLine();
????String[] strAry = str.split(" ");
  
  while(true){
    x = Integer.parseInt(strAry[0]);  
    y = Integer.parseInt(strAry[1]);   
    if(x==0&&y==0) break;   
    if(x<y){
      System.out.println(x + " "+ y);
    }else{    
      System.out.println(y + " "+ x);
    }
  }
 }
}

Compiler output:
Main.java:8: error: illegal start of expression
????String[] strAry = str.split(" ");
^
Main.java:8: error: illegal start of expression
????String[] strAry = str.split(" ");
 ^
Main.java:8: error: illegal start of expression
????String[] strAry = str.split(" ");
  ^
Main.java:8: error: illegal start of expression
????String[] strAry = str.split(" ");
   ^
Main.java:8: error: '.class' expected
????String[] strAry = str.split(" ");
             ^
Main.java:8: error: : expected
????String[] strAry = str.split(" ");
                                    ^
6 errors
Language: Java

import java.io.*;

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

Compiler output:
Main.java:16: error: illegal character: '\'
      System.out.println(x + " "+ y\n);
                                   ^
Main.java:16: error: not a statement
      System.out.println(x + " "+ y\n);
                                    ^
Main.java:16: error: ';' expected
      System.out.println(x + " "+ y\n);
                                     ^
Main.java:18: error: illegal character: '\'
      System.out.println(y + " "+ x\n);
                                   ^
Main.java:18: error: not a statement
      System.out.println(y + " "+ x\n);
                                    ^
Main.java:18: error: ';' expected
      System.out.println(y + " "+ x\n);
                                     ^
6 errors
Language: Java


import java.util.Scanner;
import java.util.ArrayList;

public class c3 {
	public static void main(String[] args) {
		int x, y, w, j, i = 0;
		ArrayList<Integer> X = new ArrayList<Integer>();
		ArrayList<Integer> Y = new ArrayList<Integer>();
		Scanner sc = new Scanner(System.in);
		while(i < 10000){
			x = sc.nextInt();
			y = sc.nextInt();
			if(x == 0 && y == 0)
				break;
			else if(x > y){
				w = x;
				x = y;
				y = w;
			}
			X.add(new Integer(x));
			Y.add(new Integer(y));
			i++;
		}
		j = i;
		for(i = 1; i - 1 != j; i++){
			System.out.println(X.get(new Integer(i - 1)) + " " + Y.get(new Integer(i - 1)));
		}
	
	}
}

Compiler output:
Main.java:5: error: class c3 is public, should be declared in a file named c3.java
public class c3 {
       ^
Main.java:21: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			X.add(new Integer(x));
			      ^
Main.java:22: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			Y.add(new Integer(y));
			      ^
Main.java:27: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			System.out.println(X.get(new Integer(i - 1)) + " " + Y.get(new Integer(i - 1)));
			                         ^
Main.java:27: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			System.out.println(X.get(new Integer(i - 1)) + " " + Y.get(new Integer(i - 1)));
			                                                           ^
1 error
4 warnings
Language: Java


import java.util.Scanner;
import java.util.ArrayList;

public class c3 {
	public static void main(String[] args) {
		int x, y, w, j, i = 0;
		ArrayList<Integer> X = new ArrayList<Integer>();
		ArrayList<Integer> Y = new ArrayList<Integer>();
		Scanner sc = new Scanner(System.in);
		while(i < 10000){
			x = sc.nextInt();
			y = sc.nextInt();
			if(x == 0 && y == 0)
				break;
			else if(x > y){
				w = x;
				x = y;
				y = w;
			}
			X.add(new Integer(x));
			Y.add(new Integer(y));
			i++;
		}
		j = i;
		for(i = 0; i != j; i++){
			System.out.println(X.get(new Integer(i)) + " " + Y.get(new Integer(i)));
		}
	
	}
}

Compiler output:
Main.java:5: error: class c3 is public, should be declared in a file named c3.java
public class c3 {
       ^
Main.java:21: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			X.add(new Integer(x));
			      ^
Main.java:22: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			Y.add(new Integer(y));
			      ^
Main.java:27: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			System.out.println(X.get(new Integer(i)) + " " + Y.get(new Integer(i)));
			                         ^
Main.java:27: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			System.out.println(X.get(new Integer(i)) + " " + Y.get(new Integer(i)));
			                                                       ^
1 error
4 warnings