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

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

Compiler output:
Main.java:5: error: cannot find symbol
int a = scanner1.nextInt();
        ^
  symbol:   variable scanner1
  location: class Main
Main.java:6: error: cannot find symbol
int b = scanner2.nextInt();
        ^
  symbol:   variable scanner2
  location: class Main
2 errors
Language: Java

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

Compiler output:
Main.java:1: error: cannot find symbol
import java.util.sccaner;
                ^
  symbol:   class sccaner
  location: package java.util
Main.java:6: error: cannot find symbol
int a = scanner1.nextInt();
        ^
  symbol:   variable scanner1
  location: class Main
Main.java:7: error: cannot find symbol
int b = scanner2.nextInt();
        ^
  symbol:   variable scanner2
  location: class Main
3 errors
Language: Java

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

Compiler output:
Main.java:1: error: cannot find symbol
import java.util.sccaner;
                ^
  symbol:   class sccaner
  location: package java.util
1 error
Language: Java

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

Compiler output:
Main.java:1: error: cannot find symbol
import java.util.sccaner;
                ^
  symbol:   class sccaner
  location: package java.util
Main.java:4: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
                      ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

public class SmallLargeorEqual {
	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 SmallLargeorEqual is public, should be declared in a file named SmallLargeorEqual.java
public class SmallLargeorEqual {
       ^
1 error
Language: Java

import java.io.*;
class Main {
    public static void main( String[] args ) throws IOException {
        BufferedReader br = new BufferedReader( new InputStreamReader( System.in ) );
        String line = br.readLine();
        String[] p = line.split( " " );
        int p1 = Integer.parseInt( p[ 0 ] );
        int p2 = Integer.parseInt( p[ 1 ] );
        String ans = "";
        if( p1 < p2 ) {
            ans = "a < b";
        else if( p1 > p2 ) {
            ans = "a > b";
        else
            ans = "a == b";
        }
        System.out.println( ans );
    }
}

        

Compiler output:
Main.java:14: error: 'else' without 'if'
        else
        ^
Main.java:12: error: 'else' without 'if'
        else if( p1 > p2 ) {
        ^
Main.java:19: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

import java.io.*;
class Main {
    public static void main( String[] args ) throws IOException {
        BufferedReader br = new BufferedReader( new InputStreamReader( System.in ) );
        String line = br.readLine();
        String[] p = line.split( " " );
        int p1 = Integer.parseInt( p[ 0 ] );
        int p2 = Integer.parseInt( p[ 1 ] );
        String ans = "";
        if( p1 < p2 ) {
            ans = "a < b";
        ) else if( p1 > p2 ) {
            ans = "a > b";
        ) else {
            ans = "a == b";
        }
        System.out.println( ans );
    }
}

        

Compiler output:
Main.java:12: error: illegal start of expression
        ) else if( p1 > p2 ) {
        ^
Main.java:14: error: illegal start of expression
        ) else {
        ^
Main.java:14: error: 'else' without 'if'
        ) else {
          ^
Main.java:12: error: 'else' without 'if'
        ) else if( p1 > p2 ) {
          ^
Main.java:19: 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 = new java.util.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 if(a == b){
        System.out.println("a == b);
    }
  }
}

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

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

public class Main{
  public static void main(String[] args) {
    try {
      BufferedReader stdReader =
        new BufferedReader(new InputStreamReader(System.in));
      String line0;
      line0 = stdReader.readLine();
      String Array[]=line0.split(" ");
      if(Array[0]>Array[1]){
          System.out.println(Array[0]+">"+Array[1]);
	  }
	  
	  if(Array[1]<Array[0]){
          System.out.println(Array[0]+"<"+Array[1]);
	  }
	  
	  if(Array[0]==Array[1]){
          System.out.println(Array[0]+"=="+Array[1]);
	  }
	  
	  
      stdReader.close();
    } catch (Exception e) {
      e.getStackTrace();
      /*?????´??????0??????*/
      System.exit(0); 
    }
  }
}

Compiler output:
Main.java:12: error: bad operand types for binary operator '>'
      if(Array[0]>Array[1]){
                 ^
  first type:  String
  second type: String
Main.java:16: error: bad operand types for binary operator '<'
	  if(Array[1]<Array[0]){
	             ^
  first type:  String
  second type: String
2 errors
Language: Java

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

public class Main{
  public static void main(String[] args) {
    try {
      BufferedReader stdReader =
        new BufferedReader(new InputStreamReader(System.in));
      String line0;
      line0 = stdReader.readLine();

      int Array[]=Integer.parseInt(line0.split(" "));
      if(Array[0]>Array[1]){
          System.out.println(Array[0]+">"+Array[1]);
	  }
	  
	  if(Array[1]<Array[0]){
          System.out.println(Array[0]+"<"+Array[1]);
	  }
	  
	  if(Array[0]==Array[1]){
          System.out.println(Array[0]+"=="+Array[1]);
	  }
	  
	  
      stdReader.close();
    } catch (Exception e) {
      e.getStackTrace();
      /*?????´??????0??????*/
      System.exit(0); 
    }
  }
}

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

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

public class Main{
  public static void main(String[] args) {
    try {
      BufferedReader stdReader =
        new BufferedReader(new InputStreamReader(System.in));
      String line0;
      line0 = stdReader.readLine();

      String Array[]=line0.split(" ");
      if(         Integer.parseInt(Array[0])>Integer.parseInt(Array[1])     ){
          System.out.println(Array[0]+">"+Array[1]);
	  }
	  
	  if(Array[1]<Array[0]){
          System.out.println(Array[0]+"<"+Array[1]);
	  }
	  
	  if(Array[0]==Array[1]){
          System.out.println(Array[0]+"=="+Array[1]);
	  }
	  
	  
      stdReader.close();
    } catch (Exception e) {
      e.getStackTrace();
      /*?????´??????0??????*/
      System.exit(0); 
    }
  }
}

Compiler output:
Main.java:17: error: bad operand types for binary operator '<'
	  if(Array[1]<Array[0]){
	             ^
  first type:  String
  second type: String
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();
int c=a-b;
switch(c){
case c>0: System.out.println("a > b");
          break;
case c==0: System.out.println("a == b");
          break;
case c<0: System.out.println("a < b ");
          break;
default:  break;
}
}
}

Compiler output:
Main.java:9: error: incompatible types: boolean cannot be converted to int
case c>0: System.out.println("a > b");
      ^
Main.java:11: error: incompatible types: boolean cannot be converted to int
case c==0: System.out.println("a == b");
      ^
Main.java:13: error: incompatible types: boolean cannot be converted to int
case c<0: System.out.println("a < b ");
      ^
3 errors
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();

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

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

Compiler output:
Main.java:15: error: ';' expected
    else{ x = " == "}
                    ^
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();

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

    print(a);
}

Compiler output:
Main.java:18: 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();

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

    System.out.print(a);
}

Compiler output:
Main.java:18: 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();

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

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

Compiler output:
Main.java:18: 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();

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

    System.out.println(a);
  
}

Compiler output:
Main.java:19: 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 InData = new Scanner(System.in);
    int a = InData.nextInt();
    int b = InData.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:10: error: cannot find symbol
        System.out.Println("a > b");
                  ^
  symbol:   method Println(String)
  location: variable out of type PrintStream
Main.java:12: error: cannot find symbol
        System.out.Println("a < b");
                  ^
  symbol:   method Println(String)
  location: variable out of type PrintStream
2 errors
Language: Java

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

 
  int a = 5;
  int b = 12;

  if(a > b) {
   Systemout.println(a + ">" b);
  } 
  else if(a < b) {
   Systemout.println(a + "<" b);
  }
  else {
   Systemout.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:2: error: illegal start of expression
  public class sample {
  ^
Main.java:8: error: illegal start of type
  if(a > b) {
  ^
Main.java:8: error: <identifier> expected
  if(a > b) {
      ^
Main.java:8: error: <identifier> expected
  if(a > b) {
          ^
Main.java:9: error: ')' or ',' expected
   Systemout.println(a + ">" b);
                            ^
Main.java:9: error: not a statement
   Systemout.println(a + ">" b);
                             ^
Main.java:9: error: ';' expected
   Systemout.println(a + ">" b);
                              ^
Main.java:11: error: illegal start of type
  else if(a < b) {
  ^
Main.java:11: error: > or ',' expected
  else if(a < b) {
               ^
Main.java:12: error: ')' or ',' expected
   Systemout.println(a + "<" b);
                            ^
Main.java:12: error: not a statement
   Systemout.println(a + "<" b);
                             ^
Main.java:12: error: ';' expected
   Systemout.println(a + "<" b);
                              ^
Main.java:14: error: illegal start of type
  else {
  ^
Main.java:15: error: ')' or ',' expected
   Systemout.println(a + "==" b);
                             ^
Main.java:15: error: not a statement
   Systemout.println(a + "==" b);
                              ^
Main.java:15: error: ';' expected
   Systemout.println(a + "==" b);
                               ^
Main.java:19: error: class, interface, enum, or record expected
}
^
18 errors
Language: Java


public class Main {
    public static void main(String[] args) throws Exception {
      //????????¬?????°?????????????????????????????????
     Scanner reader = new Scanner(System.in);
     
     //???????????????????????\?????????????¬??????°???????????°???????´?
     int a = reader.nextInt();
     int b = reader.nextInt();
    reader.close();

    //a??????b?????°????????§????????´???
    if(a<b){
        System.out.println("a<b");
    }
    //b??????a?????°????????§????????´???
    else if (a>b){
         System.out.println("a>b");
     }
     //a??¨b?????°?????????????????´???
    else if(a==b){
         System.out.println("a==b");
     }
    }
}

Compiler output:
Main.java:5: error: cannot find symbol
     Scanner reader = new Scanner(System.in);
     ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
     Scanner reader = 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) throws java.lang.Exception {
       //????????¬?????°?????????????????????????????????
     Scanner reader = new Scanner(System.in);
     
     //???????????????????????\?????????????¬??????°???????????°???????´?
     int a = reader.nextInt();
     int b = reader.nextInt();
     reader.close();

    //a??????b?????°????????§????????´???
    if(a<b){
        System.out.println("a<b");
    }
    //b??????a?????°????????§????????´???
    else if (a>b){
         System.out.println("a>b");
     }
     //a??¨b?????°?????????????????´???
    else if(a==b){
         System.out.println("a==b");
     }
    }

Compiler output:
Main.java:25: 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 stdin = new Scanner(System.in);		
		nt a = scan.nextInt();
		int b = scan.nextInt();
		if(a <= -1000 || b <= 1000){
			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:6: error: cannot find symbol
		nt a = scan.nextInt();
		^
  symbol:   class nt
  location: class Main
Main.java:6: error: cannot find symbol
		nt a = scan.nextInt();
		       ^
  symbol:   variable scan
  location: class Main
Main.java:7: error: cannot find symbol
		int b = scan.nextInt();
		        ^
  symbol:   variable scan
  location: class Main
3 errors
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 <= -1000 && b <= 1000){
			
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:26: error: incompatible types: int cannot be converted to boolean
if(a = b){
     ^
1 error
Language: Java

import java.util.Scanner;

public class Testtype {
	public static void main(String[] args) {
		// ??\???
		Scanner sc = new Scanner(System.in);
		int a, b;
		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 Testtype is public, should be declared in a file named Testtype.java
public class Testtype {
       ^
1 error
Language: Java

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

public class Main2A {

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int a = Integer.parseInt(br.readLine());
		int b = Integer.parseInt(br.readLine());

		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:5: error: class Main2A is public, should be declared in a file named Main2A.java
public class Main2A {
       ^
1 error
Language: Java

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

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

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

Compiler output:
Main.java:9: error: ';' expected
			comparison = " == "
			                   ^
Main.java:11: error: ';' expected
			comparison = " > "
			                  ^
Main.java:13: error: ';' expected
			comparison = " < "
			                  ^
3 errors
Language: Java

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

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

		System.out.println(a + comparison + 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

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

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

		System.out.println(a + comparison + 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

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

	}

}

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

import java.util.Scanner;
public class aizu {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	     int a = sc.nextInt();
	     System.out.println("a=" + a);
	     int b = sc.nextInt();
	     System.out.println("b=" + b);
	     
	     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 aizu is public, should be declared in a file named aizu.java
public class aizu {
       ^
1 error
Language: Java

import java.util.Scanner;
	public class lesson1 {
		
		public static void main(String[] args) {
			Scanner sc = new Scanner(System.in);
		     int a = sc.nextInt();
		     System.out.println("a=" + a);
		     int b = sc.nextInt();
		     System.out.println("b=" + b);
		     sc.close();
		     
		     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 lesson1 is public, should be declared in a file named lesson1.java
	public class lesson1 {
	       ^
1 error
Language: Java

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

public class Hello {
	public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String integers = br.readLine();
			System.out.println(compare(integers));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	private static String compare(String integers) {
		String[] integerss = integers.split(" ");
		int a = Integer.parseInt(integerss[0]);
		int b = Integer.parseInt(integerss[1]);
		if (a < b) {
			return "a < b";
		} else if (a > b) {
			return "a > b";
		}
		return "a == b";
	}
}


Compiler output:
Main.java:4: 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;

class Main{

public static void larger(int a, int b){
if (a > b) {
System.out.println("a > b");
} else if (b > a) {
System.out.println("b > a");
} else {
System.out.println("a == b");
}
}
	
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int p = scanner.nextInt();
larger(p);

}
}



Compiler output:
Main.java:18: error: method larger in class Main cannot be applied to given types;
larger(p);
^
  required: int,int
  found:    int
  reason: actual and formal argument lists differ in length
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
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:17: error: reached end of file while parsing
    }
     ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
  public void static 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:4: error: <identifier> expected
  public void static main(String[] args){
             ^
Main.java:4: error: '(' expected
  public void static main(String[] args){
              ^
Main.java:4: error: invalid method declaration; return type required
  public void static main(String[] args){
                     ^
Main.java:15: error: 'else' without 'if'
      else {
      ^
Main.java:19: error: reached end of file while parsing
}
 ^
5 errors
Language: Java

import java.util.Scanner;

public class Main{
  public void static 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:4: error: <identifier> expected
  public void static main(String[] args){
             ^
Main.java:4: error: '(' expected
  public void static main(String[] args){
              ^
Main.java:4: error: invalid method declaration; return type required
  public void static main(String[] args){
                     ^
Main.java:15: error: 'else' without 'if'
      else {
      ^
Main.java:19: 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 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: 'else' without 'if'
      else {
      ^
Main.java:19: error: reached end of file while parsing
}
 ^
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:19: 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 = scanner.nextint();
	int b = scanner.nextint();
	
	if(a > b){
		System.out.println("a > b");
	}
	else if (a < b){
		System.out.println("a < b");
	}
	else{
		System.out.plintln("a == b");
		}
	}
}		


Compiler output:
Main.java:6: error: cannot find symbol
	int a = scanner.nextint();
	        ^
  symbol:   variable scanner
  location: class Main
Main.java:7: error: cannot find symbol
	int b = scanner.nextint();
	        ^
  symbol:   variable scanner
  location: class Main
Main.java:16: error: cannot find symbol
		System.out.plintln("a == b");
		          ^
  symbol:   method plintln(String)
  location: variable out of type PrintStream
3 errors
Language: Java

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

public class ITP1_2_A {

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		StringTokenizer st = new StringTokenizer(str, " ");
		int a = Integer.parseInt(st.nextToken());
		int b = Integer.parseInt(st.nextToken());

		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:6: error: class ITP1_2_A is public, should be declared in a file named ITP1_2_A.java
public class ITP1_2_A {
       ^
1 error
Language: Java

#include <stdio.h>

int main(){
    int a, b;
    
    scanf("%d %d", &a, &b);
    
    if(a < b){
        printf("a < b\n");
    }
    
    else if(a > b){
        printf("a > b\n");
    }
    
    else {
        printf("a == b\n");
    }
    
    return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:6: error: class, interface, enum, or record expected
    scanf("%d %d", &a, &b);
    ^
Main.java:8: error: class, interface, enum, or record expected
    if(a < b){
    ^
Main.java:10: error: class, interface, enum, or record expected
    }
    ^
Main.java:14: error: class, interface, enum, or record expected
    }
    ^
Main.java:18: error: class, interface, enum, or record expected
    }
    ^
Main.java:21: error: class, interface, enum, or record expected
}
^
8 errors
Language: Java

int main(){
    int a, b;
    
    scanf("%d %d", &a, &b);
    
    if(a < b){
        printf("a < b\n");
    }
    
    else if(a > b){
        printf("a > b\n");
    }
    
    else {
        printf("a == b\n");
    }
    
    return 0;
}


Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: illegal start of expression
    scanf("%d %d", &a, &b);
                   ^
Main.java:4: error: illegal start of expression
    scanf("%d %d", &a, &b);
                       ^
3 errors
Language: Java

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");
        }
        
        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 scan = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner scan = new Scanner(System.in);
                           ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

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

class text {
    public static void main (String[] args) throws java.lang.Exception {
        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:17: error: reached end of file while parsing
    }
     ^
1 error
Language: Java

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

class Main {
    public static void main (String[] args) throws java.lang.Exception {
        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:17: error: reached end of file while parsing
    }
     ^
1 error
Language: Java

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

class Main {
    public static void main (String[] args) throws java.lang.Exception {
        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:17: error: reached end of file while parsing
    }
     ^
1 error
Language: Java

package sample;

import java.util.Scanner;

public class T {

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

	}

}



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



import java.util.Scanner;

public class T {

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

	}

}



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

import java.util.Scanner;

public class T {

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

	}

}



Compiler output:
Main.java:3: error: class T is public, should be declared in a file named T.java
public class T {
       ^
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){
syste.out.println("a>b");
}else if(a<b){
system.out.println("a<b");
}
else system.out.println("==<b");
}
}


Compiler output:
Main.java:10: error: package syste does not exist
syste.out.println("a>b");
     ^
Main.java:12: error: package system does not exist
system.out.println("a<b");
      ^
Main.java:14: error: package system does not exist
else system.out.println("==<b");
           ^
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){
syste.out.println("a>b");
}else if(a<b){
system.out.println("a<b");
}
else system.out.println("==<b");
}
}
}


Compiler output:
Main.java:17: error: class, interface, enum, or record expected
}
^
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");
    }elseif(a>b){ System.out.println("a > b");
    }else{ System.out.println("a == b");}

  }
}


Compiler output:
Main.java:11: error: ';' expected
    }elseif(a>b){ System.out.println("a > b");
                ^
Main.java:12: error: 'else' without 'if'
    }else{ System.out.println("a == b");}
     ^
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");
    } elseif(a>b) {
      System.out.println("a > b");
    } else {
      System.out.println("a == b");
    }

  }
}


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

import java.util.Scanner;

class Main{

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:10: error: illegal start of type
if(a>b){
^
Main.java:10: error: <identifier> expected
if(a>b){
    ^
Main.java:10: error: <identifier> expected
if(a>b){
      ^
Main.java:12: error: illegal start of type
}else if(a<b){
 ^
Main.java:12: error: > or ',' expected
}else if(a<b){
            ^
Main.java:14: error: illegal start of type
}else{
 ^
Main.java:18: error: <identifier> expected
sc.close();
        ^
7 errors
Language: Java

import java.util.Scanner;

class Main{

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:10: error: illegal start of type
if(a > b){
^
Main.java:10: error: <identifier> expected
if(a > b){
    ^
Main.java:10: error: <identifier> expected
if(a > b){
        ^
Main.java:12: error: illegal start of type
}else if(a < b){
 ^
Main.java:12: error: > or ',' expected
}else if(a < b){
              ^
Main.java:14: error: illegal start of type
}else{
 ^
Main.java:18: error: <identifier> expected
sc.close();
        ^
7 errors
Language: Java

import java.util.Scanner;

class Main{

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:10: error: illegal start of type
if(a>b)
^
Main.java:10: error: <identifier> expected
if(a>b)
    ^
Main.java:10: error: <identifier> expected
if(a>b)
      ^
Main.java:13: error: illegal start of type
}else if(a<b)
 ^
Main.java:13: error: > or ',' expected
}else if(a<b)
            ^
Main.java:16: error: illegal start of type
}else
 ^
Main.java:21: error: <identifier> expected
sc.close();
        ^
7 errors
Language: Java

import java.util.Scanner;

class Main {
  public static void main(String args[]) {
	  	Scanner scanner = new Scanner(System.in);
	  	int  x = scanner.nextInt();			//入力
	  	int  y = scanner.nextInt();
	  	int J;
	  	if(x == y)			//比較
	  		J = 1;
	  	else{
	  		if(x > y)
	  			J = 2;
	  		else
	  			J = 3;
	  	}
	  	
	  	switch(J){
	  	case 1:
	  		System.out.println("a = b");
	  	case 2:
	  		System.out.println("a > b"):
	  	case 3:
	  		System.out.println("a < b");
	  	}
	  	
        scanner.close();
  }
}


Compiler output:
Main.java:22: error: ';' expected
	  		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");
      if(a==b)  System.out.println("a==b");
      if(a<b) System.out.println("a<b");
}



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

import java.util.Scanner;

public class Main{
    public static void main(){
        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:16: error: ';' expected
            relation = "=="
                           ^
Main.java:19: error: <identifier> expected
    System.out.printf("a %s b\n", relation);
                     ^
Main.java:19: error: illegal start of type
    System.out.printf("a %s b\n", relation);
                      ^
3 errors
Language: Java

import java.util.Scanner;

public class main{
    public static void main(){
        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:16: error: ';' expected
            relation = "=="
                           ^
Main.java:19: error: <identifier> expected
    System.out.printf("a %s b\n", relation);
                     ^
Main.java:19: error: illegal start of type
    System.out.printf("a %s b\n", relation);
                      ^
3 errors
Language: Java

import java.util.Scanner;

public class Main{
    public static void main(){
        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:19: error: <identifier> expected
    System.out.printf("a %s b\n", relation);
                     ^
Main.java:19: error: illegal start of type
    System.out.printf("a %s b\n", relation);
                      ^
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();

        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:19: error: <identifier> expected
    System.out.printf("a %s b\n", relation);
                     ^
Main.java:19: error: illegal start of type
    System.out.printf("a %s b\n", relation);
                      ^
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();

        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:21: error: reached end of file while parsing
}
 ^
1 error
Language: Java

iimport 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:1: error: class, interface, enum, or record expected
iimport java.util.Scanner;
^
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.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

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: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
Main.java:16: 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)
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();

        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: illegal start of expression
    System.out.println("a" + %s + "b\n", relation);
                             ^
1 error