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

import java.util.Scanner;

public class Main {
	public static void main(String [] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = 0, x, y;
		int data [][] = new int[3000][2];
		
		do {
			x = stdIn.nextInt();
			y = stdIn.nextInt();
			
			if(x == 0 && y == 0 )break;
			
			data[n][0] = x;
			data[n][1] = y;
			n++;
		}while(x < 0 || x > 10000 || y < 0 || y > 10000 );
		
		
		for(int i = 0; i < n ; i++) {
			if(data[i][0] > data[i][1]) {
				x = datay[i][1];
				y = datax[i][0];
			}else {
				x = data[i][0];
				y = data[i][1];
			}
			
			System.out.println(x + " " + y);
			
		}
	}
}


Compiler output:
Main.java:23: error: cannot find symbol
				x = datay[i][1];
				    ^
  symbol:   variable datay
  location: class Main
Main.java:24: error: cannot find symbol
				y = datax[i][0];
				    ^
  symbol:   variable datax
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class SwappingTwoNumbers {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		int count = 0;
		int x = 0;
		int y = 0;
		int setc = 0;
		int [] su = new int[3000];//3000超えない
		for (setc = 0; setc <= 3000; count  +=1) {
			Scanner scan = new Scanner(System.in);
			x = scan.nextInt();//配列に数値を代入
			y = scan.nextInt();//次の配列に数値を代入y
			if (x == 0 && y ==0) {
				break;
			}else {
				su [count] = x;
				su [count++] = y;
				System.out.println(x+" "+y);
			}


			scan.close();
		}

	}
}


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 SwappingTwoNumbers {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		boolean hantei = false;
		int x = 0;
		int y = 0;
		while (hantei != true ) {
			Scanner scan = new Scanner(System.in);
			x = scan.nextInt();//配列に数値を代入
			y = scan.nextInt();//次の配列に数値を代入y
			if (x == 0 && y ==0) {
				hantei = true;
			}else{
				if (x > y) {
					System.out.println(y+" "+x);
				}else {
					System.out.println(x+" "+y);
				}
			}
			}//if end
	}
}


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


class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int i = 1;
while(true) {
    int x = sc.nextInt();
    if(x == 0) break;
    System.out.println("Case " + (i++) + ": " + x);
}
}
}


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.io.*;

public class Main {
    public static void main (String[] args) throws java.lang.Exception {
    
    BufferedReader input = new BufferedReader (new InputStreamReader(System.in));
    String inp_x   = input.readLine();
    String inp_y   = input.readLine();
    int x = Integer.parseInt(inp_x);
    int y = Integer.parseInt(inp_y);
    String output = Math.max(x, y);
    output = output + Math.min(x, y);
    System.out.println(output);
    }
}


Compiler output:
Main.java:11: error: incompatible types: int cannot be converted to String
    String output = Math.max(x, y);
                            ^
1 error
Language: Java

import java.util.Scanner;

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


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

import java.util.Scanner;

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


Compiler output:
Main.java:3: error: class Main24 is public, should be declared in a file named Main24.java
public class Main24 {
       ^
Main.java:6: error: cannot find symbol
for(i = 0; ; i++){
    ^
  symbol:   variable i
  location: class Main24
Main.java:6: error: cannot find symbol
for(i = 0; ; i++){
             ^
  symbol:   variable i
  location: class Main24
3 errors
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:17: error: illegal character: '\u3000'
			System.out.println(x?+? "  " + y);
			                    ^
Main.java:17: error: illegal character: '\u3000'
			System.out.println(x?+? "  " + y);
			                      ^
Main.java:17: error: not a statement
			System.out.println(x?+? "  " + y);
			                               ^
Main.java:17: error: ';' expected
			System.out.println(x?+? "  " + y);
			                                ^
4 errors
Language: Java

import java.util.Scanner;

public class AOJ0103 {

	public static void main(String[] args) {
		int i,x,y;
		Scanner sc = new Scanner(System.in);
		for(i=1;;i++){
			x=sc.nextInt();
			x=sc.nextInt();
			if(x==0&&y==0){
			    sc.clode();
			    break;
			}
			if(x<y){
			    System.out.println(x+' '+y);
			}
			else{
			    System.out.println(y+' '+x);
			}
		}
		sc.close();
	}

}



Compiler output:
Main.java:3: error: class AOJ0103 is public, should be declared in a file named AOJ0103.java
public class AOJ0103 {
       ^
Main.java:12: error: cannot find symbol
			    sc.clode();
			      ^
  symbol:   method clode()
  location: variable sc of type Scanner
2 errors
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		int i,x,y;
		Scanner sc = new Scanner(System.in);
		for(i=1;;i++){
			x=sc.nextInt();
			x=sc.nextInt();
			if(x==0&&y==0){
			    sc.clode();
			    break;
			}
			if(x<y){
			    System.out.println(x+' '+y);
			}
			else{
			    System.out.println(y+' '+x);
			}
		}
		sc.close();
	}

}



Compiler output:
Main.java:12: error: cannot find symbol
			    sc.clode();
			      ^
  symbol:   method clode()
  location: variable sc of type Scanner
1 error
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		int i,x,y;
		Scanner sc = new Scanner(System.in);
		for(i=1;;i++){
			x=sc.nextInt();
			x=sc.nextInt();
			if(x==0&&y==0){
			    sc.close();
			    break;
			}
			if(x<y){
			    System.out.println(x+' '+y);
			}
			else{
			    System.out.println(y+' '+x);
			}
		}
		sc.close();
	}

}



Compiler output:
Main.java:11: error: variable y might not have been initialized
			if(x==0&&y==0){
			         ^
Main.java:15: error: variable y might not have been initialized
			if(x<y){
			     ^
2 errors
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		int i,x,y;
		Scanner sc = new Scanner(System.in);
		for(i=1;;i++){
			x=sc.nextInt();
			x=sc.nextInt();
			if(x == 0&&y == 0){
			    sc.close();
			    break;
			}
			if(x<y){
			    System.out.println(x+' '+y);
			}
			else{
			    System.out.println(y+' '+x);
			}
		}
		sc.close();
	}

}



Compiler output:
Main.java:11: error: variable y might not have been initialized
			if(x == 0&&y == 0){
			           ^
Main.java:15: error: variable y might not have been initialized
			if(x<y){
			     ^
2 errors
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		int i,x,y;
		Scanner sc = new Scanner(System.in);
		for(i=1;;i++){
			x=sc.nextInt();
			x=sc.nextInt();
			if(x == 0&&y == 0){
			    sc.close();
			    break;
			}
			if(x < y){
			    System.out.println(x+' '+y);
			}
			else{
			    System.out.println(y+' '+x);
			}
		}
		sc.close();
	}

}



Compiler output:
Main.java:11: error: variable y might not have been initialized
			if(x == 0&&y == 0){
			           ^
Main.java:15: error: variable y might not have been initialized
			if(x < y){
			       ^
2 errors
Language: Java

import java.util.Scanner;

public class ITP1_3_C {

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

		do {

			String str = sc.nextLine();
			String[] strs = str.split(" ");
			int x = Integer.parseInt( strs[0] );
			int y = Integer.parseInt( strs[1] );

	        if (x == 0 && y == 0) {
	        	break;
	        }else if (x > y || x == y) {
	        	System.out.println( x + " " + y );
	        }else {
	        	System.out.println( y + " " + x );
	        }
		}while(true);
		sc.close();

	}

}



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

public class Main {

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

		do {

			String str = sc.nextLine();
			String[] strs = str.split(" ");

			if (strs[0].equals("0") && strs[1].equals("0")) {
				break;
			}

			int[] ints = new int[] {Integer.parseInt(strs[0]), Integer.parseInt(strs[1])};
			Arrays.sort(ints);



	        System.out.println( ints[0] + " " + ints[1] );

		}while(true);
		sc.close();

	}

}


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
Main.java:16: error: cannot find symbol
			Arrays.sort(ints);
			^
  symbol:   variable Arrays
  location: class Main
3 errors
Language: Java

import java.util.Arrays;
import java.util.Scanner;

public class ITP1_3_C {

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

		do {

			String str = sc.nextLine();
			String[] strs = str.split(" ");

			if (strs[0].equals("0") && strs[1].equals("0")) {
				break;
			}

			int[] ints = new int[] {Integer.parseInt(strs[0]), Integer.parseInt(strs[1])};
			Arrays.sort(ints);



	        System.out.println( ints[0] + " " + ints[1] );

		}while(true);
		sc.close();

	}

}



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


import java.io.Bu
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

/**
 *
 * @author k16069kk
 */
public class Main{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        int a = 0;
        int b = 0;
        while ((line = br.readLine()) != null) {
            java.util.StringTokenizer st = new StringTokenizer(line, " ");

            while (st.hasMoreTokens()) {
                a = Integer.parseInt(st.nextToken());
                b = Integer.parseInt(st.nextToken());
            }
            if (a == b) {
                break;
            } else if (a < b) {
                System.out.println(a + " " + b);
            } else {
                System.out.println(b + " " + a);
            }
        }

    }

}



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

import java.util.*;
class Main{
public static void main(String[] args){

Scanner sc = new Scanner(System.in);

while(1){
 int a = sc.nextInt();
 int b = 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:19: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.*;
class Main{
public static void main(String[] args){

Scanner sc = new Scanner(System.in);

while(1){
 int a = sc.nextInt();
 int b = 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:21: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.*;
class Main{
public static void main(String[] args){

Scanner sc = new Scanner(System.in);

while(1){
 int a = sc.nextInt();
 int b = 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:7: error: incompatible types: int cannot be converted to boolean
while(1){
      ^
Main.java:11: error: cannot find symbol
if(x==0 && y==0)break;
   ^
  symbol:   variable x
  location: class Main
Main.java:11: error: cannot find symbol
if(x==0 && y==0)break;
           ^
  symbol:   variable y
  location: class Main
Main.java:13: error: cannot find symbol
if(x<=y){
   ^
  symbol:   variable x
  location: class Main
Main.java:13: error: cannot find symbol
if(x<=y){
      ^
  symbol:   variable y
  location: class Main
Main.java:14: error: cannot find symbol
System.out.println(x+" "+y);
                   ^
  symbol:   variable x
  location: class Main
Main.java:14: error: cannot find symbol
System.out.println(x+" "+y);
                         ^
  symbol:   variable y
  location: class Main
Main.java:16: error: cannot find symbol
System.out.println(y+" "+x);
                   ^
  symbol:   variable y
  location: class Main
Main.java:16: error: cannot find symbol
System.out.println(y+" "+x);
                         ^
  symbol:   variable x
  location: class Main
9 errors
Language: Java

import java.util.Scanner;
class Main{
public static void main(String[] args){

Scanner sc = new Scanner(System.in);

while(1){
 int a = sc.nextInt();
 int b = 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:7: error: incompatible types: int cannot be converted to boolean
while(1){
      ^
Main.java:11: error: cannot find symbol
if(x==0 && y==0)break;
   ^
  symbol:   variable x
  location: class Main
Main.java:11: error: cannot find symbol
if(x==0 && y==0)break;
           ^
  symbol:   variable y
  location: class Main
Main.java:13: error: cannot find symbol
if(x<=y){
   ^
  symbol:   variable x
  location: class Main
Main.java:13: error: cannot find symbol
if(x<=y){
      ^
  symbol:   variable y
  location: class Main
Main.java:14: error: cannot find symbol
System.out.println(x+" "+y);
                   ^
  symbol:   variable x
  location: class Main
Main.java:14: error: cannot find symbol
System.out.println(x+" "+y);
                         ^
  symbol:   variable y
  location: class Main
Main.java:16: error: cannot find symbol
System.out.println(y+" "+x);
                   ^
  symbol:   variable y
  location: class Main
Main.java:16: error: cannot find symbol
System.out.println(y+" "+x);
                         ^
  symbol:   variable x
  location: class Main
9 errors
Language: Java

import java.util.Scanner;
class Main{
public static void main(String[] args){

Scanner sc = new Scanner(System.in);

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

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

}

}

}


Compiler output:
Main.java:7: error: incompatible types: int cannot be converted to boolean
while(1){
      ^
Main.java:11: error: cannot find symbol
if(x==0 && y==0){
   ^
  symbol:   variable x
  location: class Main
Main.java:11: error: cannot find symbol
if(x==0 && y==0){
           ^
  symbol:   variable y
  location: class Main
Main.java:13: error: cannot find symbol
}else if(x<=y){
         ^
  symbol:   variable x
  location: class Main
Main.java:13: error: cannot find symbol
}else if(x<=y){
            ^
  symbol:   variable y
  location: class Main
Main.java:14: error: cannot find symbol
System.out.println(x+" "+y);
                   ^
  symbol:   variable x
  location: class Main
Main.java:14: error: cannot find symbol
System.out.println(x+" "+y);
                         ^
  symbol:   variable y
  location: class Main
Main.java:16: error: cannot find symbol
System.out.println(y+" "+x);
                   ^
  symbol:   variable y
  location: class Main
Main.java:16: error: cannot find symbol
System.out.println(y+" "+x);
                         ^
  symbol:   variable x
  location: class Main
9 errors
Language: Java

import java.util.Scanner;
class Main{
public static void main(String[] args){

Scanner sc = new Scanner(System.in);

while(1){
 int x = sc.nextInt();
 int y = sc.nextInt();

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

}

}

}


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

mport java.util.*;
public class Main{
 public static void main(String[] args){
for(int i =0;i<200000; i++){
 Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if(x ==0 && y == 0) break;
if(x != 0 || y !=0){
int c = Math.max(x,y);
int d = Math.min(x,y);
System.out.println(c + " " + d);}}
}
}


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

mport java.util.*;
public class Main{
 public static void main(String[] args){
for(int i = 0 ;i <200000; i++){
 Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if(x ==0 && y == 0) break;
else{
int c = Math.max(x,y);
int d = Math.min(x,y);
System.out.println(d + " " + c);}}
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.*;
^
Main.java:13: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

mport java.util.*;
public class Main{
 public static void main(String[] args){
for(int i = 0 ;i <3000; i++){
 Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if(x ==0 && y == 0) break;
else{
int c = Math.max(x,y);
int d = Math.min(x,y);
System.out.println(d + " " + c);}}
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.*;
^
Main.java:13: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.util.*;
public class Main{
 public static void main(String[] args){
for(int i = 0 ;i <200000; i++){
 Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if(x ==0 && y == 0) break;
else{
int c = Math.max(x,y);
int d = Math.min(x,y);
System.out.println(d + " " + c);}}
}


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

import java.util.Scanner;

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

    int x = 0;
    int y = 0;
    while( ( (x = sin.nextInt()) + (y = sin.nextInt()) ) != 0 ) {
      if ( x <= y ) { System.out.println(x + " " + y); }
      else { System.out.println(y + " " + x);}
    }

    sin.close();
  }
}


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

import java.io.*;
import java.util.Scanner;
 
public class Main {
    public static String swap(int a, int b) {
        return b + " " + a;
    }
 
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        // int x = sc.nextInt();
        // int y = sc.nextInt();
        // int r = sc.nextInt();
        System.out.println(swap());
    }
}


Compiler output:
Main.java:16: error: method swap in class Main cannot be applied to given types;
        System.out.println(swap());
                           ^
  required: int,int
  found:    no arguments
  reason: actual and formal argument lists differ in length
1 error
Language: Java

import java.io.*;
import java.util.Scanner;
 
public class Main {
    public static void print() {
        Scanner sc = new Scanner(System.in);
        int a, b
        while (true) {
            a = sc.nextInt();
            b = sc.nextInt();
 
            if(a == 0 && b == 0)break;
            System.out.println("" + Math.min(a,b), + " " + Math.max(a,b));
        }
    }
 
    public static void main (String[] args) {
        // Scanner sc = new Scanner(System.in);
        // int W = sc.nextInt();
        // int H = sc.nextInt();
        // int x = sc.nextInt();
        // int y = sc.nextInt();
        // int r = sc.nextInt();
        print();
    }
}


Compiler output:
Main.java:7: error: ';' expected
        int a, b
                ^
1 error
Language: Java

import java.io.*;
import java.util.Scanner;
 
public class Main {
    public static void print() {
        Scanner sc = new Scanner(System.in);
        int a, b;
        while (true) {
            a = sc.nextInt();
            b = sc.nextInt();
 
            if(a == 0 && b == 0)break;
            System.out.println("" + Math.min(a,b), + " " + Math.max(a,b));
        }
    }
 
    public static void main (String[] args) {
        // Scanner sc = new Scanner(System.in);
        // int W = sc.nextInt();
        // int H = sc.nextInt();
        // int x = sc.nextInt();
        // int y = sc.nextInt();
        // int r = sc.nextInt();
        print();
    }
}


Compiler output:
Main.java:13: error: bad operand type String for unary operator '+'
            System.out.println("" + Math.min(a,b), + " " + Math.max(a,b));
                                                   ^
1 error
Language: Java

import java.util.Scanner;

public class Main { 
  public static void main(String[] args){
	  
	  for(;;) {
	  Scanner sc = new Scanner(System.in);
	  int a = sc.nextInt();
	  int b = sc.nextInt();
	  if(a>=b) {
		  System.out.printf("%d %d\n",b,a);
	  }
	  else if(a<b){
		  System.out.printf("%d %d\n",a,b);
	  }
	  else if(a == b == 0){
		  break;
	  }

 
	  }
  }
}


Compiler output:
Main.java:16: error: incomparable types: boolean and int
	  else if(a == b == 0){
	                 ^
1 error
Language: Java

mport java.util.Scanner;

public class Main { 
  public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  for(int i = 0;i < 3000;i++) {
	  int a = sc.nextInt();
	  int b = sc.nextInt();
         if(a ==0 && b == 0){
		  break;
	  }
	  else if(a>=b) {
		  System.out.printf("%d %d\n",b,a);
	  }
	  else if(a<b){
		  System.out.printf("%d %d\n",a,b);
	  }
	 

 
	  }
  }
}



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

package icpc;

import java.util.Scanner;

public class icpc {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()) {
		int a = sc.nextInt();
		int b = sc.nextInt();
		if(a==0&&b==0)break;
		if(a>b) {
			int temp = a;
			a = b;
			b = temp;
		}
		System.out.printf("%d %d\n",a,b);
		}
}
}


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

package icpc;

import java.util.Scanner;

public class icpc {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()) {
		int a = sc.nextInt();
		int b = sc.nextInt();
		if(a==0&&b==0)break;
		System.out.printf("%d %d\n",Math.min(a, b),Math.max(a, b));
		}
}
}


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


import java.util.Scanner;

public class icpc {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()) {
		int a = sc.nextInt();
		int b = sc.nextInt();
		if(a==0&&b==0)break;
		System.out.printf("%d %d\n",Math.min(a, b),Math.max(a, b));
		}
}
}


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

import java.util.Scanner;

public class main {

	public static void main(String[] args) {
	
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()) {
		int a = sc.nextInt();
		int b = sc.nextInt();
		if(a==0&&b==0)break;
		System.out.printf("%d %d\n",Math.min(a, b),Math.max(a, b));
		}
}
}


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;
class Main
{
 public static void main(String args[])
 {
  int a,b;
  Scanner sc = new Scanner(System.in);
  while (True){
  a=sc.nextInt();
  b=sc.nestInt();
  if(a==0 && b==0)
    break;
  else if(a<b)
    System.out.println(a +b);
  else
    System.out.println(b +a);}
 }
}


Compiler output:
Main.java:8: error: cannot find symbol
  while (True){
         ^
  symbol:   variable True
  location: class Main
Main.java:10: error: cannot find symbol
  b=sc.nestInt();
      ^
  symbol:   method nestInt()
  location: variable sc of type Scanner
2 errors
Language: Java

mport java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		for (int i = 1; i < 3000; i++) {
			Scanner sc = new Scanner(System.in);
			String line = sc.nextLine();
			String[] n = line.split(" ");

			Arrays.sort(n);
			int a = Integer.parseInt(n[0]);
			int b = Integer.parseInt(n[1]);
			if (a == 0 && b == 0) {
				break;

			}
			System.out.println(a + " " + b);

		}
	}

}



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

import java.util.Arrays;
import java.util.Scanner;

public class ITP1_3_C {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		for (int i = 1; i < 3000; i++) {

			String[] n = line.split(" ");

			Arrays.sort(n);
			System.out.println(n[0] + " " + n[1]);

			if (n[0] == "0" && n[1] == "0") {
				break;

			}


		}
	}

}



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

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

        int[][] array = new int[3000][2];
        int x, y;
        int counter = 0;
        while((x=scanner.nextInt())!=0 || (y=scanner.nextInt())!=0){
            array[counter][0] = x;
            array[counter][1] = y;
            counter++;
        }
        for(int i = 0; i < counter; i++){
            if(array[i][0]>array[i][1])
                System.out.println(array[i][1]+" "+array[i][0]);
            else
                System.out.println(array[i][0]+" "+array[i][1]);
        }
    }
}



Compiler output:
Main.java:11: error: variable y might not have been initialized
            array[counter][1] = y;
                                ^
1 error
Language: Java

import java.util.*;

public class Main{

    public static void main(String[] ards){
        while(true){
            Scanner sc = new Scanner(System.in);
            int x = sc.nextInt();
            int y = sc.nextInt();

            if(x==0 && y==0){break;}

            if(x>y){
                int[] a = new int[];
                int[] b = new int[];
                int temp;
                a[0]=x;b[0]=y;
        
                temp = a[0];
                a[0] = b[0];
                b[0] = temp;

                x=a[0];y=b[0];

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



Compiler output:
Main.java:14: error: array dimension missing
                int[] a = new int[];
                                   ^
Main.java:15: error: array dimension missing
                int[] b = new int[];
                                   ^
2 errors
Language: Java

import java.util.Scanner;

public class ITP1_3C {
    public static void main(String args[]){
	Scanner in= new Scanner(System.in);
	short a = 0;
	short b = 0;
	short c = 0;
	while (true){
		a = in.nextShort();
		b = in.nextShort();
		if (a == 0 && b == 0){
			break;
		}else if (a > b){
			c = a;
			a = b;
			b = c;
		}
	        System.out.printf("%d %d%n", a, b);
	} 
    }   
}

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

public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		while (s.hasNextInt()) {
			int a = s.nextInt();
			int b = s.nextInt();
			if (a == 0 && b == 0) break;
			if (a > b) {
				int t = a;
				a = b;
				b = t;
			}
			System.out.printf("%d %d\n", a, b);
		}
	}
}

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

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

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

public class Main {
    public static void main(String... args) {
        final Scanner scanner = new Scanner(System.in);
        String str;
        while (!(str = scanner.nextLine()).equals("0 0")) {
            final int x = Integer.parseInt(str.split(" ")[0]);
            final int y = Integer.parseInt(str.split(" ")[1]);
            System.out.println(x < y ? x + " " + y : y + " " + x);
        }
    }
}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
/**
 * @author penguin_410
 *         Date: 2014/03/06
 */
public class Main {
    public static void main(String... args) throws IOException {
        final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        final StringBuilder sb = new StringBuilder();
        while (true) {
            final String line = br.readLine();
            final int index = line.indexOf(" ");
            final int x = Integer.parseInt(line.substring(0, index)));
            final int y = Integer.parseInt(line.substring(index+1, line.length()));
            if (x == 0 && y == 0) break;
            sb.append(x < y ? x + " " + y : y + " " + x).append("\n");
        }
        System.out.print(sb);
    }
}

Compiler output:
Main.java:16: error: ';' expected
            final int x = Integer.parseInt(line.substring(0, index)));
                                                                    ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
  
/**
 * @author penguin_410
 *         Date: 2014/03/06
 */
public class Main {
    public static void main(String... args) throws IOException {
        final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        final StringBuilder sb = new StringBuilder();
        while (true) {
            final String line = br.readLine();
            final int index = line.indexOf(" ");
            final int x = Integer.parseInt(line.substring(0, index)));
            final int y = Integer.parseInt(line.substring(index+1));
            if (x == 0 && y == 0) break;
            sb.append(x < y ? x + " " + y : y + " " + x).append("\n");
        }
        System.out.print(sb);
    }
}

Compiler output:
Main.java:16: error: ';' expected
            final int x = Integer.parseInt(line.substring(0, index)));
                                                                    ^
1 error
Language: Java

import java.util.Scanner

public class Main{

	public static void main(String[] args){

		int big = 0;
		int small = 0;

		//テキスト入力
		Scanner sc = new Scanner(System.in);
		//入力文字を取得
		int first = sc.nextInt();
		int second = sc.nextInt();

		//小さい順に並べる
		if(first => second){
			//
			big = first;
			small = second;
		}else{
			big = second;
			small = first;
		}

		//出力
		System.out.println(small+" "+big);
	}
}

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
Main.java:17: error: illegal start of expression
		if(first => second){
		          ^
2 errors
Language: Java

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

public class Main {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		while(true){
			String input = br.readLine();
			String[] str = input.split(" ");
			int a = Integer.parseInt(str[0]);
			int b = Integer.parseInt(str[0]);
			if ((a == 0) && (b == 0)){
				break;
			} else {
				if (a > b){
					int temp;
					temp = a;
					a = b;
					b = temp;
				}
				System.out.println(a + " " + b);
			}
		}
	}
}

Compiler output:
Main.java:9: error: unreported exception IOException; must be caught or declared to be thrown
			String input = br.readLine();
			                          ^
1 error
Language: C

#include <stdio.h>

int main() {
	int a, b;
	while (1) {
		scanf_s("%d, %d", &a, &b);
		if (a == 0 && b == 0) break;
		if (a > b) printf("%d %d\n", b, a);
		else{
			printf("%d %d\n", a, b);
		}
	}
}


Compiler output:
main.c: In function 'main':
main.c:6:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |                 scanf_s("%d, %d", &a, &b);
      |                 ^~~~~~~
      |                 scanf
Language: C

#include <stdio.h>

int main() {
	int a, b;
	while (1) {
		scanf_s("%d %d", &a, &b);
		if (a == 0 && b == 0) break;
		if (a > b) printf("%d %d\n", b, a);
		else{
			printf("%d %d\n", a, b);
		}
	}
}


Compiler output:
main.c: In function 'main':
main.c:6:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |                 scanf_s("%d %d", &a, &b);
      |                 ^~~~~~~
      |                 scanf
Language: C

#include<stdio.h>
int main()
{
int a,b,c;
c=b;
b=a;
a=c;
while (scanf("%d %d",&a,&b)!=EOF);
{0
printf("%d %d",b,a);
}
return 0
}


Compiler output:
main.c: In function 'main':
main.c:9:3: error: expected ';' before 'printf'
    9 | {0
      |   ^
      |   ;
   10 | printf("%d %d",b,a);
      | ~~~~~~
main.c:12:9: error: expected ';' before '}' token
   12 | return 0
      |         ^
      |         ;
   13 | }
      | ~
Language: C

#include<stdio.h>
int main()
{
int a,b,c;
c=b;
b=a;
a=c;
while (scanf("%d %d",&a,&b)!=EOF);
{0
printf("%d %d",b,a);
}
return ;
}


Compiler output:
main.c: In function 'main':
main.c:9:3: error: expected ';' before 'printf'
    9 | {0
      |   ^
      |   ;
   10 | printf("%d %d",b,a);
      | ~~~~~~
main.c:12:1: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   12 | return ;
      | ^~~~~~
main.c:2:5: note: declared here
    2 | int main()
      |     ^~~~
Language: C

#include<stdio.h>
int main(void)
{
  int x,y;
  int flag=1;
  while(flag=1){
    scanf("%d %d",&a,&b);
    if((x==0)&&(y==0)){
      flag=0;
      break;
    }else if(x>y){
      int num;
      num=a;
      a=b;
      b=num;
    }else if(x<=y){
      continue;
    }
  }
  return 0;
}
    


Compiler output:
main.c: In function 'main':
main.c:7:20: error: 'a' undeclared (first use in this function)
    7 |     scanf("%d %d",&a,&b);
      |                    ^
main.c:7:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:23: error: 'b' undeclared (first use in this function)
    7 |     scanf("%d %d",&a,&b);
      |                       ^
Language: C

#include<stdio.h>
int main(void)
{
  int x,y;
  int flag=1;
  while(flag=1){
    scanf("%d %d",&x,&y);
    if((x==0)&&(y==0)){
      flag=0;
      break;
    }else if(x>y){
      int num;
      num=a;
      a=b;
      b=num;
    }else if(x<=y){
      continue;
    }
  }
  return 0;
}
    


Compiler output:
main.c: In function 'main':
main.c:13:11: error: 'a' undeclared (first use in this function)
   13 |       num=a;
      |           ^
main.c:13:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:9: error: 'b' undeclared (first use in this function)
   14 |       a=b;
      |         ^
Language: C

#include<stdio.h>
int main(){
	int x=1,y=1,X,Y;
	while(x!=0 && y!=0){
		scanf("%d %d",&x,&y);
		X=x;
		Y=y
		if(x>y){
			x=Y;
			y=X;
		}
		if(x!=0 && y!=0){
			printf("%d %d\n",x,y);
		}
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:20: error: expected ';' before 'if'
    7 |                 Y=y
      |                    ^
      |                    ;
    8 |                 if(x>y){
      |                 ~~
Language: C

#include <stdio.h>

int main(){
	int x,y;
	
	while(1){
		scanf("%d%d\n",&x,&y);
		if(x == 0 && y == 0){
			break;
		}else if(x>y){
			printf("%d %d\n",x,y);
		}else(x<y){
			printf("%d %d\n",y,x);
		}
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:27: error: expected ';' before '{' token
   12 |                 }else(x<y){
      |                           ^
      |                           ;
Language: C

#include<stdio.h>

int main(){

  int x,y;
  while(1){
    scanf("%d %d".&x,&y);
    if(x==0&&y==0) break;
    printf("%d %d\n",&x,&y);
    }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:19: error: expected identifier before '&' token
    7 |     scanf("%d %d".&x,&y);
      |                   ^
Language: C

#include<stdio.h>

int main(){

  int x,y;
  while(1){
    scanf("%d %d".&x,&y);
    if(x==0&&y==0) break;
    printf("%d %d\n",x,y);
    }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:19: error: expected identifier before '&' token
    7 |     scanf("%d %d".&x,&y);
      |                   ^
Language: C

#incldue <stdio.h>

int main()
{
    for(int i = 0; i < 3000; ++i){
        int X, Y;
        scanf("%d%d", &X, &Y);
        if(X == 0 && Y == 0) return 0;
        if(X > Y) swap(X, Y);
        printf("%d %d\n", X, Y);
    }
    return 0;
}


Compiler output:
main.c:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue <stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |         scanf("%d%d", &X, &Y);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #incldue <stdio.h>
main.c:7:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |         scanf("%d%d", &X, &Y);
      |         ^~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:19: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
    9 |         if(X > Y) swap(X, Y);
      |                   ^~~~
main.c:10:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |         printf("%d %d\n", X, Y);
      |         ^~~~~~
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

int main()
{
  int x, y;
       
  while(1){
           scanf("%d %d",&x,&y);
           if(x == 0 || y == 0)
              break;
           else if(x > y)
              printf("%d %d\n", y, x)
           else
              printf("%d %d\n", x, y)
}

  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:12:38: error: expected ';' before 'else'
   12 |               printf("%d %d\n", y, x)
      |                                      ^
      |                                      ;
   13 |            else
      |            ~~~~
Language: C

#incldue <stdio.h>

void swap(int& X, int& Y)
{
    int Temp = X;
    X = Y;
    Y = Temp;
}

int main()
{
    for(int i = 0; i < 3000; ++i){
        int X, Y;
        scanf("%d%d", &X, &Y);
        if(X == 0 && Y == 0) return 0;
        if(X > Y) swap(X, Y);
        printf("%d %d\n", X, Y);
    }
    return 0;
}


Compiler output:
main.c:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue <stdio.h>
      |  ^~~~~~~
      |  include
main.c:3:14: error: expected ';', ',' or ')' before '&' token
    3 | void swap(int& X, int& Y)
      |              ^
main.c: In function 'main':
main.c:14:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   14 |         scanf("%d%d", &X, &Y);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #incldue <stdio.h>
main.c:14:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   14 |         scanf("%d%d", &X, &Y);
      |         ^~~~~
main.c:14:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:16:19: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
   16 |         if(X > Y) swap(X, Y);
      |                   ^~~~
main.c:17:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   17 |         printf("%d %d\n", X, Y);
      |         ^~~~~~
main.c:17:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:17:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#incldue <stdio.h>

void swap(int* X, int* Y)
{
    int Temp = *X;
    *X = *Y;
    *Y = Temp;
}

int main()
{
    for(int i = 0; i < 3000; ++i){
        int X, Y;
        scanf("%d%d", &X, &Y);
        if(X == 0 && Y == 0) return 0;
        if(X > Y) swap(&X, &Y);
        printf("%d %d\n", X, Y);
    }
    return 0;
}


Compiler output:
main.c:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue <stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:14:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   14 |         scanf("%d%d", &X, &Y);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #incldue <stdio.h>
main.c:14:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   14 |         scanf("%d%d", &X, &Y);
      |         ^~~~~
main.c:14:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:17:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   17 |         printf("%d %d\n", X, Y);
      |         ^~~~~~
main.c:17:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:17:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

void swap(int& X, int& Y)
{
    int Temp = X;
    X = Y;
    Y = Temp;
}

int main()
{
    for(int i = 0; i < 3000; ++i){
        int X, Y;
        scanf("%d%d", &X, &Y);
        if(X == 0 && Y == 0) return 0;
        if(X > Y) swap(X, Y);
        printf("%d %d\n", X, Y);
    }
    return 0;
}


Compiler output:
main.c:3:14: error: expected ';', ',' or ')' before '&' token
    3 | void swap(int& X, int& Y)
      |              ^
main.c: In function 'main':
main.c:16:19: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
   16 |         if(X > Y) swap(X, Y);
      |                   ^~~~
Language: C

#include<stdio.h>
int main(void)
{
	int x,y;

	while()   {
		scanf("%d",&x);
		scanf("%d",&y);
		if(x<y) {
			printf("%d %d\n",x,y);
		}
		if(x>y) {
			printf("%d %d\n",y,x);
		}
		if(x==y==0){
				break;
		}
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected expression before ')' token
    6 |         while()   {
      |               ^
Language: C

#include<stdio.h>
int main(void)
{
	int x,y;

	while()   {
		scanf("%d",&x);
		scanf("%d",&y);
		if(x<y) {
			printf("%d %d",x,y);
		}
		if(x>y) {
			printf("%d %d",y,x);
		}
		if(x==y==0){
				break;
		}
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected expression before ')' token
    6 |         while()   {
      |               ^
Language: C

#include<stdio.h>
int main(){
int i,a,b;
while(1){
scanf("%d %d",&a,&b);
if(a == 0&&b == 0){
break;
}
if(a < b){
printf("%d %d",a,b\n);
}
if(b < a){
printf("%d %d",b,a\n);
}
if(a==b){
printf("%d %d",a,b\n);
}
}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:19: error: stray '\' in program
   10 | printf("%d %d",a,b\n);
      |                   ^
main.c:10:19: error: expected ')' before 'n'
   10 | printf("%d %d",a,b\n);
      |       ~           ^~
      |                   )
main.c:13:19: error: stray '\' in program
   13 | printf("%d %d",b,a\n);
      |                   ^
main.c:13:19: error: expected ')' before 'n'
   13 | printf("%d %d",b,a\n);
      |       ~           ^~
      |                   )
main.c:16:19: error: stray '\' in program
   16 | printf("%d %d",a,b\n);
      |                   ^
main.c:16:19: error: expected ')' before 'n'
   16 | printf("%d %d",a,b\n);
      |       ~           ^~
      |                   )
Language: C

#include<stdio.h>
int main(){
int i,a,b;
while(1){
scanf("%d %d",&a,&b);
if(a == 0&&b == 0)break;
else if(a < b){
printf("%d %d",a,b\n);
}
else if (b < a){
printf("%d %d",b,a\n);
}
else if (a == b){
printf("%d %d",a,b\n);
}
}
return 0;
}



Compiler output:
main.c: In function 'main':
main.c:8:19: error: stray '\' in program
    8 | printf("%d %d",a,b\n);
      |                   ^
main.c:8:19: error: expected ')' before 'n'
    8 | printf("%d %d",a,b\n);
      |       ~           ^~
      |                   )
main.c:11:19: error: stray '\' in program
   11 | printf("%d %d",b,a\n);
      |                   ^
main.c:11:19: error: expected ')' before 'n'
   11 | printf("%d %d",b,a\n);
      |       ~           ^~
      |                   )
main.c:14:19: error: stray '\' in program
   14 | printf("%d %d",a,b\n);
      |                   ^
main.c:14:19: error: expected ')' before 'n'
   14 | printf("%d %d",a,b\n);
      |       ~           ^~
      |                   )