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

import java.util.Scanner;

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

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

        String relation;
        if (a < b){
            relation = "<";
        } else if (a > b){
            relation = ">";
        } else{
            relation = "==";
        }
    System.out.println("a %s b\n", relation);
    }
}



Compiler output:
Main.java:18: error: no suitable method found for println(String,String)
    System.out.println("a %s b\n", relation);
              ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import.java.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        int b = s.nextInt();
        if(a > b){
            System.out.println("a > b");
        }else if(a < b){
            System.out.println("a < b");
        }else{
            System.out.println("a == b");
        }
    }
}



Compiler output:
Main.java:1: error: <identifier> expected
import.java.Scanner;
      ^
1 error
Language: Java

import java.util.Scanner;

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

		a = sc.nextInt();
		b = sc.nextInt();

		if(a > b) System.out.println("a > b");
		else if(a < b) System.out.println("a < b");
		else System.out.println("a == b");
	}
}


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

import java.util.Scanner;

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

        if(a<b){
            System.out.println(a+"<"+b);
        }else{
            if(a>b){
                System.out.println(a+">"+b);
            }else{
                System.out.println(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  ;
public class SLE{
public static void main(String[]args){

Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if(a<b){
System.out.println("a < b");
} 
else{if(a>b){
    System.out.println("a > b");
} 
    else{System.out.println("a == b");}
}
}
}


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

import java.util.Scanner;

public class Disan {
    public static void main(String[] args) {
        Scanner momoko= new Scanner(System.in);
        int num1 = momoko.nextInt();
        int num2 = momoko.nextInt();

        if(num1>num2)
            System.out.println("a > b");
        else if(num1<num2)
            System.out.println("a < b");
        else
            System.out.println("a == b");
    }
}


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

import java.util.Scanner;

public class Helloworld {
    public static void main(String[] args) {
        Scanner momoko= new Scanner(System.in);
        int num1 = momoko.nextInt();
        int num2 = momoko.nextInt();

        if(num1>num2)
            System.out.println("a > b");
        else if(num1<num2)
            System.out.println("a < b");
        else
            System.out.println("a == b");
    }
}


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

import java.util.Scanner;

public class Hello {
    public static void main(String[] args) {
        Scanner momoko= new Scanner(System.in);
        int num1 = momoko.nextInt();
        int num2 = momoko.nextInt();

        if(num1>num2)
            System.out.println("a > b");
        else if(num1<num2)
            System.out.println("a < b");
        else
            System.out.println("a == b");
    }
}


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

import java.util.Scanner;

public class Small {
    public static void main( String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if( a < b ) {
            System.out.println("a < b");
        }else if( a > b ){
            System.out.println("a > b");
        }else{
            System.out.println("a == b");
        }
    }
}



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

import java.util.Scanner;

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

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

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

public class main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a<b){
            System.out.println("a < b");
        }else if(a>b){
        	System.out.println("a > b");
        }else{
        	System.out.println("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;
 
public class Main {
 
    public static void main(String[] args) {
 
 
        Scanner sc = new Scanner(System.in);
 
        int a = sc.nextInt();
        int b = sc.nextInt();
 
        String relation;
 
        if(a > b){
            relation = ">";
        }else if(a < b){
            relation = "<";
        }else{
            relation = "==";
        }
 
        System.out.printf("a %s b\n", relation);
    }


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

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

public class template {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int[] intArray = Arrays.stream(sc.nextLine().split(" "))
                           .mapToInt(Integer::parseInt)
                           .toArray();
    int x = intArray[0];
    int y = intArray[1];

    if(x == y)
    {
      System.out.printf("%d == %d", a, b);
    }
    else if(x < y)
    {
      System.out.printf("%d < %d", a, b);
    }
    else
    {
      System.out.printf("%d > %d", a, b);
    }
  }
}


Compiler output:
Main.java:4: error: class template is public, should be declared in a file named template.java
public class template {
       ^
Main.java:15: error: cannot find symbol
      System.out.printf("%d == %d", a, b);
                                    ^
  symbol:   variable a
  location: class template
Main.java:15: error: cannot find symbol
      System.out.printf("%d == %d", a, b);
                                       ^
  symbol:   variable b
  location: class template
Main.java:19: error: cannot find symbol
      System.out.printf("%d < %d", a, b);
                                   ^
  symbol:   variable a
  location: class template
Main.java:19: error: cannot find symbol
      System.out.printf("%d < %d", a, b);
                                      ^
  symbol:   variable b
  location: class template
Main.java:23: error: cannot find symbol
      System.out.printf("%d > %d", a, b);
                                   ^
  symbol:   variable a
  location: class template
Main.java:23: error: cannot find symbol
      System.out.printf("%d > %d", a, b);
                                      ^
  symbol:   variable b
  location: class template
7 errors
Language: Java

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

public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int[] intArray = Arrays.stream(sc.nextLine().split(" "))
                           .mapToInt(Integer::parseInt)
                           .toArray();
    int x = intArray[0];
    int y = intArray[1];

    if(x == y)
    {
      System.out.printf("%d == %d", a, b);
    }
    else if(x < y)
    {
      System.out.printf("%d < %d", a, b);
    }
    else
    {
      System.out.printf("%d > %d", a, b);
    }
  }
}


Compiler output:
Main.java:15: error: cannot find symbol
      System.out.printf("%d == %d", a, b);
                                    ^
  symbol:   variable a
  location: class Main
Main.java:15: error: cannot find symbol
      System.out.printf("%d == %d", a, b);
                                       ^
  symbol:   variable b
  location: class Main
Main.java:19: error: cannot find symbol
      System.out.printf("%d < %d", a, b);
                                   ^
  symbol:   variable a
  location: class Main
Main.java:19: error: cannot find symbol
      System.out.printf("%d < %d", a, b);
                                      ^
  symbol:   variable b
  location: class Main
Main.java:23: error: cannot find symbol
      System.out.printf("%d > %d", a, b);
                                   ^
  symbol:   variable a
  location: class Main
Main.java:23: error: cannot find symbol
      System.out.printf("%d > %d", a, b);
                                      ^
  symbol:   variable b
  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);
// 2つの文字の固まりを整数値と想定して読み込む int a = sc.nextInt();
int b = sc.nextInt();
if (a < b) {
System.out.println("a < b"); } else // ... 以降を書き足そう!
} }


Compiler output:
Main.java:10: error: illegal start of statement
} }
^
1 error
Language: Java

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

public class Conpare {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int[] intArray = Arrays.stream(sc.nextLine().split(" "))
                           .mapToInt(Integer::parseInt)
                           .toArray();
    int a = intArray[0];
    int b = intArray[1];

    if(a == b)
    {
      System.out.printf("a == b\n");
    }
    else if(a < b)
    {
      System.out.printf("a < b\n");
    }
    else
    {
      System.out.printf("a > b\n");
    }
  }
}


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

import java.util.Scanner;

public class main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		if (a<b) {
			System.out.println("a < b");
		} else if (a > b) {
			System.out.println("a > b");
		} else if (a == b) {
			System.out.println("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;

public class Main{
     public static void main(String[] args){
     Scanner sc = new Scanner(System.in);
     int a = sc.nextInt();
     int b = sc.nextInt();
     if(a < b){
          System.out.println("a < b");
     }else if(a > b){
          System.out.println("a > b");
     }else{
          System.out.println("a = b");
     }
}


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

public class Main{
    public static void main(String[]argc){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a<b){
            System.out.println("a < b");
        }else if(a>b){
            System.out.println("a > b");
        }else{
            System.out.println("a == b");
        }
    }
}



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

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  int a = sc.nextInt();
  int b = sc.nextInt();
  if(a < b){
    System.out.println("a < b");
  }else if(a > b){
    System.out.println("a > b");
  }else{
    System.out.println("a == b");
  }
}


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

import java.io.*;
public class  {
public static void main(String[] args) {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
try {
System.out.println("数字を入力してください。");
String line = reader.readline();
int a = Integer.parseInt(line);
int b = Integer.paeseInt(line);
if(a < b){
  System.out.println("a < b");
}else if(a = b){
  System.out.println("a = b");
}else{
  System.out.println("a > b");
}catch(IOException e) {
System.out.println(e);
} catch (NumberFormatException e) {
System.out.println("数字の形式が正しくありません。");
}
}
}


Compiler output:
Main.java:2: error: <identifier> expected
public class  {
            ^
Main.java:16: error: 'catch' without 'try'
}catch(IOException e) {
 ^
Main.java:18: error: 'catch' without 'try'
} catch (NumberFormatException e) {
  ^
Main.java:5: error: 'try' without 'catch', 'finally' or resource declarations
try {
^
Main.java:22: error: reached end of file while parsing
}
 ^
5 errors
Language: Java

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner scan = Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        if(a > b) System.out.println("a>b");
        else if(a < b) System.out.println("a<b");
        else System.out.println("a==b");
        scan.close();
    }
}


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

	import java.util.Scanner;
	public class Main{
			  public static void main(String[]args){
			    Scanner sc = new Scanner(System.in);
			    int a = sc.nextInt();
			    int b = sc.nextInt();
			    try{
		              if(a < b){
                                System.out.println("a < b");
                             } else if(a == b){
                                 System.out.println("a == b");
                             } else(a > b){
                               System.out.println("a > b");
                             }catch(Exception e){
			     }
                            }
			    	sc.close();   
			  }
			}



Compiler output:
Main.java:12: error: not a statement
                             } else(a > b){
                                   ^
Main.java:12: error: ';' expected
                             } else(a > b){
                                          ^
Main.java:14: error: 'catch' without 'try'
                             }catch(Exception e){
                              ^
Main.java:7: error: 'try' without 'catch', 'finally' or resource declarations
			    try{
			    ^
4 errors
Language: Java

	public static void main(String[] args){
	int a,b;
	a=2;
	b=2;
	
	if(a>b){
        System.out.println("a");
    

     }else if (a<b){
     System.out.println("b");

     }else{
     System.out.println("a==b");
}
	}
}


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

	public static void main(String[] args){
	int a,b;
	a=2;
	b=2;
	
	if(a>b){
        System.out.println("a>b");
    

     }else if (a<b){
     System.out.println("a<b");

     }else{
     System.out.println("a==b");
}
	}
}


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

import java.util.Scanner;
public class Ex1 {
	public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	
	int a =sc.nextInt();
	int b =sc.nextInt();
	
	if(a>b){
        System.out.println("a > b");
    
     }else if (a<b){
     System.out.println("a < b");

     }else{
     System.out.println("a==b");
}
	sc.close();
	}
}


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

import java.util.Scanner;

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

		if(a<b){
			System.out.println("a<b");
		}
		if(b<a){
			System.out.println("b<a");
		}
		if(a==b){
			System.out.println("a==b");
		}
	}

}


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

import java.util.Scanner;

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

		if(a<b){
			System.out.println("a<b");
		}
		if(a>b){
			System.out.println("a>b");
		}
		if(a==b){
			System.out.println("a==b");
		}
	}

}


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

import java.util.Scanner;

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

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



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

import java.util.Scanner;

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

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



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

import java.util.Scanner;

public class Main05 {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		if(a<b){
			System.out.println("a<b");
		}else if(a>b){
			System.out.println("a>b");
		}else if(a==b){
			System.out.println("a==b");
		}
	}

}


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

import java.util.Scanner;
public class Ex {
	 public static void main(String[] args){
         Scanner sc = new Scanner(System.in);
    
        
         int a = sc.nextInt();
         int b = sc.nextInt();
         if(a<b){
        	 System.out.println(a+"<"+b);
         }else if(a>b){
        	 System.out.println(a+">"+b);
         }else{
        	 System.out.println(a+"="+b);
         }
         sc.close();
	 }
	 
}



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

import java.util.Scanner;

public class Main01 {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		if(a<b){
			System.out.print("a<b");
		}else if(a>b){
			System.out.print("a>b");
		}else {
			System.out.print("a==b");
		}
	}
}


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

import java.util.Scanner;

public class main{
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		
		if(a<b) {
			System.out.print("a<b");
			} else if(a>b) {
			System.out.print("a>b");
			} else { 
			System.out.print("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

package java2018;

import java.util.Scanner;

public class Ex11 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		if (a < b){
		System.out.println("a < b");
		}
		else if(a > b){
		System.out.println("a>b");
		}
		else
		System.out.println("a = b");
	}
}



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

import java.io.*;

public class Compare {
	public static void main(String[] args) {
		String line;
		int a,b;
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try {
			System.out.println("input a:");
			line = reader.readLine();
			a = Integer.parseInt(line);
			System.out.println("input b:");
			line = reader.readLine();
			b = Integer.parseInt(line);
			if(a==b) {
				System.out.println("a == b");
			}else if(a>b){
				System.out.println("a > b");
			}else {
				System.out.println("a < b");
			}
		}catch(NumberFormatException e) {
			System.out.println(e);
		}catch(IOException e) {
			System.out.println(e);
		}
	}
}


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

import java.util.Scanner;


public class SmallLarge {

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

		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();


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



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

import java.util.Scanner;


public class SmallLarge {

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

		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();


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



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

import java.util.Scanner;

public class AOJ0103 {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
        int x,y;
        x = sc.nextInt();
        y = sc.nextInt();
        
        if(x<y){
            System.out.println("a<b");
        }
        else if(x>y){
            System.out.println("a>b");
        }
        else{
            System.out.println("a==b");
        }
        
        sc.close();

	}

}


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

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc = new scanner(system.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        if(a<b){
            system.out.println("a < b");
        }else if(a>b){
            system.out.println("a > b");
        }else{
            system.out.println("a == b");
        }
        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:   variable system
  location: class Main
Main.java:9: error: package system does not exist
            system.out.println("a < b");
                  ^
Main.java:11: error: package system does not exist
            system.out.println("a > b");
                  ^
Main.java:13: error: package system does not exist
            system.out.println("a == b");
                  ^
5 errors
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc = new scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        if(a<b){
            system.out.println("a < b");
        }else if(a>b){
            system.out.println("a > b");
        }else{
            system.out.println("a == b");
        }
        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:9: error: package system does not exist
            system.out.println("a < b");
                  ^
Main.java:11: error: package system does not exist
            system.out.println("a > b");
                  ^
Main.java:13: error: package system does not exist
            system.out.println("a == b");
                  ^
4 errors
Language: Java

import java.util.scanner;
public class Main{
    		public static void main(String[] args) {
	        Scanner sc = new Scanner(System.in);
	        int a = sc.nextInt();
	        int b = sc.nextInt();
	        if(a==b){
	            System.out.println("a == b");
	        }else if(a<b){
	            System.out.println("a < b");
	        }else{
	            System.out.println("a > b");
	        }
	        sc.close();
	}
    
}


Compiler output:
Main.java:1: error: cannot find symbol
import java.util.scanner;
                ^
  symbol:   class scanner
  location: package java.util
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
3 errors
Language: Java

import java.util.scanner;
public class Main{
    public static void main(String[] args) {
	   Scanner sc = new Scanner(System.in);
	   int a = sc.nextInt();
	   int b = sc.nextInt();
	   if(a==b){
	       System.out.println("a == b");
	   }else if(a<b){
	       System.out.println("a < b");
	   }else{
	        System.out.println("a > b");
	   }
	   sc.close();
	}
    
}


Compiler output:
Main.java:1: error: cannot find symbol
import java.util.scanner;
                ^
  symbol:   class scanner
  location: package java.util
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
3 errors
Language: Java

import java.util.Scanner;

public class SmallorLargeorEqual {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		if(a<b) {
			System.out.println("a < b");
		} else if(a==b) {
			System.out.println("a == b");
		}else {
			System.out.println("a > b");
		}
		

	}

}



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

import java.util.Scanner;

class Main{

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

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

String shutsuryoku;

if(a < b){
shutsuryoku = "a < b";
}else if(a > b){
shutsuryoku = "a > b";
}else{
shutsuryoku = "a == b";

System.out.println(shutsuryoku);

}
}



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

import java.util.Scanner;

class Main{

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

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

String shutsuryoku;

if(a < b){
shutsuryoku = "a < b";
}else if(a > b){
shutsuryoku = "a > b";
}else if(a == b){
shutsuryoku = "a == b";

System.out.println(shutsuryoku);

}
}



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

import java.util.Scanner;

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

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

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


Compiler output:
Main.java:4: error: ';' expected
    public static void main(String[] args)[
                                          ^
Main.java:10: error: illegal start of type
 if (a < b){
 ^
Main.java:10: error: > or ',' expected
 if (a < b){
          ^
Main.java:12: error: illegal start of type
}else if (a > b){
 ^
Main.java:12: error: <identifier> expected
}else if (a > b){
           ^
Main.java:12: error: <identifier> expected
}else if (a > b){
               ^
Main.java:14: error: illegal start of type
}else if (a == b){
 ^
Main.java:14: error: <identifier> expected
}else if (a == b){
           ^
Main.java:14: error: <identifier> expected
}else if (a == b){
                ^
Main.java:18: error: class, interface, enum, or record expected
}
^
10 errors
Language: Java

import java.util.Scanner;

class Main{

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

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

String shutsuryoku;

if(a < b){
shutsuryoku = "a < b";

}else if(a > b){
shutsuryoku = "a > b";
}else if(a == b){
shutsuryoku = "a == b";
}
System.out.println(shutsuryoku);

}
}



Compiler output:
Main.java:22: error: variable shutsuryoku might not have been initialized
System.out.println(shutsuryoku);
                   ^
1 error
Language: Java

import java.io.*;

public class ren00_24{
public static void main(String args[])throws IOException{
int a,b;

BufferedReader br=new BufferedReader(new InputStreamReader(System.in));

System.out.print("A=");
a=Integer.parseInt(br.readLine());
System.out.print("B=");
b=Integer.parseInt(br.readLine());

if(a>b){
System.out.printIn("A>B");
}

if(b<a){
System.out.printIn("B<A");
}

else{
System.out.printIn("B=A");
}
}
}


Compiler output:
Main.java:3: error: class ren00_24 is public, should be declared in a file named ren00_24.java
public class ren00_24{
       ^
Main.java:15: error: cannot find symbol
System.out.printIn("A>B");
          ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
Main.java:19: error: cannot find symbol
System.out.printIn("B<A");
          ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
Main.java:23: error: cannot find symbol
System.out.printIn("B=A");
          ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
4 errors
Language: Java

import java.io.*;

public class {
public static void main(String args[])throws IOException{
int a,b;

BufferedReader br=new BufferedReader(new InputStreamReader(System.in));

System.out.print("A=");
a=Integer.parseInt(br.readLine());
System.out.print("B=");
b=Integer.parseInt(br.readLine());

if(a>b){
System.out.printIn("A>B");
}

if(b<a){
System.out.printIn("B<A");
}

else{
System.out.printIn("B=A");
}
}
}


Compiler output:
Main.java:3: error: <identifier> expected
public class {
            ^
1 error
Language: Java

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

int a=5,b=10;

if(a>b){
System.out.printIn(a>b)
}
if(a<b){
System.out.printIn(a<b)
}
else{
System.out.printIn(a=b)
}
}
}



Compiler output:
Main.java:7: error: ';' expected
System.out.printIn(a>b)
                       ^
Main.java:10: error: ';' expected
System.out.printIn(a<b)
                       ^
Main.java:13: error: ';' expected
System.out.printIn(a=b)
                       ^
3 errors
Language: Java

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

int a=5,b=10;

if(a>b){
System.out.printIn(a>b);
}
if(a<b){
System.out.printIn(a<b);
}
else{
System.out.printIn(a=b);
}
}
}



Compiler output:
Main.java:1: error: class main is public, should be declared in a file named main.java
public class main{
       ^
Main.java:7: error: cannot find symbol
System.out.printIn(a>b);
          ^
  symbol:   method printIn(boolean)
  location: variable out of type PrintStream
Main.java:10: error: cannot find symbol
System.out.printIn(a<b);
          ^
  symbol:   method printIn(boolean)
  location: variable out of type PrintStream
Main.java:13: error: cannot find symbol
System.out.printIn(a=b);
          ^
  symbol:   method printIn(int)
  location: variable out of type PrintStream
4 errors
Language: Java

import java.util.Scanner;

class Main{
	public static void main(String[] args){
		
		Scanner sc = new Scanner(System.in);
		int sec, min, hour;
		a = sc.nextInt();
		b = sc.nextInt();
		
		
		if(a==b){
			System.out.println("a==b");
		}else of(a<b){
			System.out.println("a<b");
		}else{
			System.out.println("a>b");
	}
}


Compiler output:
Main.java:14: error: ';' expected
		}else of(a<b){
		             ^
Main.java:16: error: 'else' without 'if'
		}else{
		 ^
Main.java:19: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

import java.util.Scanner;

class Main{
	public static void main(String[] args){
		
		Scanner sc = new Scanner(System.in);
		int sec, min, hour;
		a = sc.nextInt();
		b = sc.nextInt();
		
		
		if(a==b){
			System.out.println("a==b");
		}else of(a<b){
			System.out.println("a<b");
		}else{
			System.out.println("a>b");
		}
	}
}


Compiler output:
Main.java:14: error: ';' expected
		}else of(a<b){
		             ^
Main.java:16: error: 'else' without 'if'
		}else{
		 ^
2 errors
Language: Java

import java.util.Scanner;

class Main{
	public static void main(String[] args){
		
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		
		if(a==b){
			System.out.println("a==b");
		}else of(a<b){
			System.out.println("a<b");
		}else{
			System.out.println("a>b");
		}
	}
}


Compiler output:
Main.java:14: error: ';' expected
		}else of(a<b){
		             ^
Main.java:16: error: 'else' without 'if'
		}else{
		 ^
2 errors
Language: Java


public class Main {
	private static Scanner sc;
	public static void main(String[] args) throws java.lang.Exception {
		
		sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		if (a < b) {
			System.out.println("a < b");
		} else if (a == b){
			System.out.println("a == b");
		} else {
			System.out.println("a > b");
		}
	}
}



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

import java.util.Scanner;

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

		if(a<b) {
			System.out.print("a<b");
			} else if(a>b) {
			System.out.print("a>b");
			} else {
			System.out.print("a==b");
			}
		stdIn.close();
	}

}



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

import java.util.Scanner;

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

		if(a<b) {
			System.out.print("a<b");
			} else if(a>b) {
			System.out.print("a>b");
			} else {
			System.out.print("a==b");
			}
		stdIn.close();
	}

}


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

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		if(a>b)
			System.out.println("a > b");
		else if(a<b)
			System.out.println("a < b");
		else
			System.out.println("a == b);
	}
}




Compiler output:
Main.java:13: error: unclosed string literal
			System.out.println("a == b);
			                   ^
1 error
Language: Java


import java.util.Scanner;
 
class Main{
 public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
 
  int a = sc.nextInt();
  int b = sc.nextInt();
 
  if(a < b) System.out.println("a < b");
  else if(a == b) System.out.println("a == b");
  else System.out.println("a > b");
 }



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

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

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



Compiler output:
Main.java:6: error: cannot find symbol
       Scanner sc = new Scanner(System.in);
       ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
       Scanner sc = new Scanner(System.in);
                        ^
  symbol:   class Scanner
  location: class Main
Main.java:20: error: cannot find symbol
        System.out.printIn();
                  ^
  symbol:   method printIn()
  location: variable out of type PrintStream
3 errors
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a,b;
        a = sc.nextLine();
        b = sc.nextLine();
        if(a<b);
        System.out.println("a > b");
        else if(a<b);
        System.out.println("a < b");
        else(a == b)
        System.out.println("a == b");
        sc.close();
        }
	}




Compiler output:
Main.java:10: error: 'else' without 'if'
        else if(a<b);
        ^
Main.java:12: error: not a statement
        else(a == b)
            ^
Main.java:12: error: ';' expected
        else(a == b)
                    ^
Main.java:12: error: 'else' without 'if'
        else(a == b)
        ^
4 errors
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a,b;
        a = sc.nextLine();
        b = sc.nextLine();
        if(a<b);
        System.out.println("a > b");
        else if(a<b);
        System.out.println("a < b");
        else(a == b)
        System.out.println("a == b");
        sc.close();
        }
}




Compiler output:
Main.java:10: error: 'else' without 'if'
        else if(a<b);
        ^
Main.java:12: error: not a statement
        else(a == b)
            ^
Main.java:12: error: ';' expected
        else(a == b)
                    ^
Main.java:12: error: 'else' without 'if'
        else(a == b)
        ^
4 errors
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
	int a,b;
        a = sc.nextLine();
        b = sc.nextLine();
        if(a<b);
        System.out.println("a > b");
        else if(a<b);
        System.out.println("a < b");
        else(a == b)
        System.out.println("a == b");
        sc.close();
        }
}




Compiler output:
Main.java:10: error: 'else' without 'if'
        else if(a<b);
        ^
Main.java:12: error: not a statement
        else(a == b)
            ^
Main.java:12: error: ';' expected
        else(a == b)
                    ^
Main.java:12: error: 'else' without 'if'
        else(a == b)
        ^
4 errors
Language: Java

public class Small {
    public static void main(String args[]) {
        int a =	Integer.parseInt(args[0]);
        int b =	Integer.parseInt(args[1]);
        if(a > b) {
            System.out.println("a"+ ">" + b);
        }else if(a == b) {
            System.out.println("a" + "==" + "b");
        }else {
            System.out.println("a" + "<" + "b");
        }
    }
}



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

import java.util.Scanner;

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

        int a = scan.nextInt();
        int b = scan.nextInt();
        
        
        if(a < b) {
            System.out.print(" a < b" );
        if(a > b) {
            System.out.print(" a > b ");
        if(a == b) {
            System.out.println( " a == b " );
        
        }
    }
}


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

import java.util.Scanner;

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

        int a = scan.nextInt();
        int b = scan.nextInt();
        
        
        if(a < b) {
            System.out.print(" a < b" );
        if(a > b) {
            System.out.print(" a > b ");
        if(a == b) {
            System.out.print( " a == b " );
        
        }
    }
}


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

import java.util.Scanner;

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

        int a = scan.nextInt();
        int b = scan.nextInt();
        
        
        if(a < b) {
            System.out.print(" a < b");
        if(a > b) {
            System.out.print(" a > b ");
        if(a == b) {
            System.out.print(" a == b ");
        
        }
    }
        


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

import java.util.Scanner;

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

        int a = scan.nextInt();
        int b = scan.nextInt();
        
        
        if(a < b) {
            System.out.print(" a < b");
        if(a > b) {
            System.out.print(" a > b ");
        if(a == b) {
            System.out.print(" a == b ");
        
        }
    }
}     


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

import java.util.Scanner;

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

        int b = scan.nextInt();

        if(a<b){
            System.out.print("a < b");
        
        if(a>b){
            System.out.print("a > b");
        
        if(a==b){
            System.out.print("a == b");
       

        }    
    }



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

import java.util.Scanner;

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

        int b = scan.nextInt();

        if(a<b){
            System.out.print("a < b");
        
        if(a>b){
            System.out.print("a > b");
        
        if(a==b){
            System.out.print("a == b");
        }    
 }



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

import java.util.Scanner;

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

        int a = scan.nextInt();
        int b = scan.nextInt();
        
        
        if(a<b) {
            System.out.print("a<b");
        if(a>b) {
            System.out.print("a>b");
        if(a==b) {
            System.out.print("a==b");
        
        }
    }
        
}        
        


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

import java.util.Scanner;

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

        int b = scan.nextInt();

        if(a<b){
            System.out.print("a < b");
        
        if(a>b){
            System.out.print("a > b");
        
        if(a==b){
            System.out.println("a == b");
        }    
 }



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

import java.util.Scanner;

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

        int a = scan.nextInt();
        int b = scan.nextInt();
        
        
        if(a < b) {
            System.out.println("a < b");
        if(a > b) {
            System.out.println("a > b");
        if(a == b) {
            System.out.println ("a == b");
        
        }
    }
        
}        
        


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

import java.util.Scanner;

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

        int b = scan.nextInt();

        if(a<b){
            System.out.println("a < b");
        
        if(a>b){
            System.out.println("a > b");
        
        if(a==b){
            System.out.println("a == b");
        }    
 }



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