criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include<iostream>
using namezpace std;
int main(){
int a,b;
cin>>a;
cin>>b;
cout<<a*b<<endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namezpace'
    2 | using namezpace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin>>a;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | cout<<a*b<<endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:12: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 | cout<<a*b<<endl;
      |            ^~~~
      |            std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;
int main () {
    int a,b,s,l;
    cin >> a >> b;
    s=a*b
    l=a+a+b+b;
    cout <<s+" "+l<<endl;
    return 0;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected ';' before 'l'
    6 |     s=a*b
      |          ^
      |          ;
    7 |     l=a+a+b+b;
      |     ~
Language: C++

#include <iostream>
using namespace std;

int main()
{
     int a, b;
　　　cin >> a >> b;
　　 cout << a*b << " " << 2*(a+b) << endl;
}

Compiler output:
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　　　cin >> a >> b;
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
a.cc:7:1: error: extended character 　 is not valid in an identifier
a.cc:8:1: error: extended character 　 is not valid in an identifier
    8 | 　　 cout << a*b << " " << 2*(a+b) << endl;
      | ^
a.cc:8:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:1: error: '\U00003000\U00003000\U00003000cin' was not declared in this scope
    7 | 　　　cin >> a >> b;
      | ^~~~~~~~~
a.cc:8:1: error: '\U00003000\U00003000' was not declared in this scope
    8 | 　　 cout << a*b << " " << 2*(a+b) << endl;
      | ^~~~
Language: C++

#include <iostream> using namespace std; int main(){ int a,b; cin>>a>>b; cout<<a*b<<a*2+b*2<<endl;}

Compiler output:
a.cc:1:21: warning: extra tokens at end of #include directive
    1 | #include <iostream> using namespace std; int main(){ int a,b; cin>>a>>b; cout<<a*b<<a*2+b*2<<endl;}
      |                     ^~~~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream> using namespace std; int main(){ int a,b; cin>>a>>b; cout<<a*b<<a*2+b*2<<endl; return 0;}

Compiler output:
a.cc:1:21: warning: extra tokens at end of #include directive
    1 | #include <iostream> using namespace std; int main(){ int a,b; cin>>a>>b; cout<<a*b<<a*2+b*2<<endl; return 0;}
      |                     ^~~~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream> using namespace std int main(){ int a,b; cin>>a>>b; cout<<a*b<<a*2+b*2<<endl; return 0;}
	

Compiler output:
a.cc:1:21: warning: extra tokens at end of #include directive
    1 | #include <iostream> using namespace std int main(){ int a,b; cin>>a>>b; cout<<a*b<<a*2+b*2<<endl; return 0;}
      |                     ^~~~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream> 
using namespace std
 int main(){ int a,b; cin>>a>>b; cout<<a*b<<a*2+b*2<<endl; return 0;}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 |  int main(){ int a,b; cin>>a>>b; cout<<a*b<<a*2+b*2<<endl; return 0;}
      |  ~~~
Language: C++

#include <iostream>

int main()
{
  int a, b;
  int area, length;

  std::cin >> a >> b;

  area = a * b;
  length = a * 2 + b * 2;

  std::cout << area << " " << length << std::endl;

  return 0;
}
mur

Compiler output:
a.cc:17:1: error: 'mur' does not name a type
   17 | mur
      | ^~~
Language: C++

#include <cstdio>

int main(){

scanf("%d %d",int a,int b);
printf("%d %d",a*b,2*a+2*b);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: expected primary-expression before 'int'
    5 | scanf("%d %d",int a,int b);
      |               ^~~
a.cc:5:21: error: expected primary-expression before 'int'
    5 | scanf("%d %d",int a,int b);
      |                     ^~~
a.cc:6:16: error: 'a' was not declared in this scope
    6 | printf("%d %d",a*b,2*a+2*b);
      |                ^
a.cc:6:18: error: 'b' was not declared in this scope
    6 | printf("%d %d",a*b,2*a+2*b);
      |                  ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	cin >> a >> b
        cout << (a+b)*2 << a*b <<endl
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: 'a' was not declared in this scope
    5 |         cin >> a >> b
      |                ^
a.cc:5:21: error: 'b' was not declared in this scope
    5 |         cin >> a >> b
      |                     ^
Language: C++

#include <stdio.h>

int main(){

     int a,b;

     scanf("%d %d", &a, %b);

     printf("%d\n" a * b);

     return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: expected primary-expression before '%' token
    7 |      scanf("%d %d", &a, %b);
      |                         ^
a.cc:9:19: error: expected ')' before 'a'
    9 |      printf("%d\n" a * b);
      |            ~      ^~
      |                   )
Language: C++

#include <stdio.h>

int main(){

     int a , b;

     scanf("%d %d", &a, %b);

     printf("%d\n" a * b);

     return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: expected primary-expression before '%' token
    7 |      scanf("%d %d", &a, %b);
      |                         ^
a.cc:9:19: error: expected ')' before 'a'
    9 |      printf("%d\n" a * b);
      |            ~      ^~
      |                   )
Language: C++

#include <stdio.h>

int main(){

     int a,b;

     scanf("%d %d", &a, %b);

     printf("%d\n"a * b);

     return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: expected primary-expression before '%' token
    7 |      scanf("%d %d", &a, %b);
      |                         ^
a.cc:9:13: error: unable to find string literal operator 'operator""a' with 'const char [4]', 'long unsigned int' arguments
    9 |      printf("%d\n"a * b);
      |             ^~~~~~~
Language: C++

#include <stdio.h>
int main(){
int a,b;
scanf("%d%d",&a,&b);
printf("%d %d",a＊b,(a＋b)＊2);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: 'a\U0000ff0ab' was not declared in this scope
    5 | printf("%d %d",a＊b,(a＋b)＊2);
      |                ^~~~
a.cc:5:22: error: 'a\U0000ff0bb' was not declared in this scope
    5 | printf("%d %d",a＊b,(a＋b)＊2);
      |                      ^~~~
Language: C++

#include <stdio.h>

int main(){

     int a,b;

     scanf("%d%d",&a,&b);

     printf("%d %d",a＊b,(a＋b)＊2);

     return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'a\U0000ff0ab' was not declared in this scope
    9 |      printf("%d %d",a＊b,(a＋b)＊2);
      |                     ^~~~
a.cc:9:27: error: 'a\U0000ff0bb' was not declared in this scope
    9 |      printf("%d %d",a＊b,(a＋b)＊2);
      |                           ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
int a,b;
cin >> a >> b;
cou << a*b << 2*(a+b);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'cou' was not declared in this scope
    7 | cou << a*b << 2*(a+b);
      | ^~~
Language: Java

import java.io.*
public class Main {
	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] s = br.readLine().split(" ");
		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		System.out.println((a>b)?"a > b":
			(a<b)?"a < b" :"a == b");
	}
}

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

import java.io.*;
public class Main {
	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] s = br.readLine().split(" ");
		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		System.out.println((a>b)?"a > b":
			(a<b)?"a < b" :"a == b");
	}
}

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

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

Compiler output:
Main.java:7: error: cannot find symbol
        if     (is[0]==is[1]) System.out.println(a + " == " + b);
                                                 ^
  symbol:   variable a
  location: class Main
Main.java:7: error: cannot find symbol
        if     (is[0]==is[1]) System.out.println(a + " == " + b);
                                                              ^
  symbol:   variable b
  location: class Main
Main.java:8: error: cannot find symbol
        else if(is[0]>is[1])  System.out.println(a + " > "  + b);
                                                 ^
  symbol:   variable a
  location: class Main
Main.java:8: error: cannot find symbol
        else if(is[0]>is[1])  System.out.println(a + " > "  + b);
                                                              ^
  symbol:   variable b
  location: class Main
Main.java:9: error: cannot find symbol
        else                  System.out.println(a + " < "  + b);
                                                 ^
  symbol:   variable a
  location: class Main
Main.java:9: error: cannot find symbol
        else                  System.out.println(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);
  	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();
		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 main is public, should be declared in a file named main.java
public class main{
       ^
1 error
Language: Java

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

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

import java.util.Scanner;

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

import java.util.Scanner;
public classMain {
public static voidmain(String[] args) {
// ?¨??????\???????????????????????????????????????
Scanner sc= newScanner(System.in);
// 2?????????????????????????????´??°?????¨????????????????????????
inta = sc.nextInt();
intb = 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, interface, enum, or record expected
public classMain {
       ^
Main.java:3: error: class, interface, enum, or record expected
public static voidmain(String[] args) {
              ^
Main.java:7: error: class, interface, enum, or record expected
inta = sc.nextInt();
^
Main.java:8: error: class, interface, enum, or record expected
intb = sc.nextInt();
^
Main.java:9: error: class, interface, enum, or record expected
if(a < b) {
^
Main.java:11: error: class, interface, enum, or record expected
} else if(a < b){
^
Main.java:13: error: class, interface, enum, or record expected
}
^
Main.java:15: error: class, interface, enum, or record expected
}
^
8 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 if(a<b)System.out.println("a < b");
	
	elseSystem.out.println("a = b");
	
}
}

Compiler output:
Main.java:12: error: package elseSystem does not exist
	elseSystem.out.println("a = b");
	          ^
1 error
Language: Java

import java.io.*;

class Main
{
	public static void main(String []args)
	{
	System.out.println("???????????´??°?????\?????????");

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

	 String str =br.readLine();
	 	 int a=Integer.parseInt(str);
	 	 int b=Integer.parseInt(str);
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:7: error: illegal escape character
	System.out.println("????????????????????\?????????");
	                                         ^
Main.java:20: error: 'else' without 'if'
  else if(a==b){
  ^
2 errors
Language: Java

import java.io.*;

class Main
{
	public static void main(String []args)
	{
	System.out.println("???????????´??°?????\?????????");

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

	 String str =br.readLine();
	 	 int a=Integer.parseInt(str);
	 	 int b=Integer.parseInt(str);
	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:7: error: illegal escape character
	System.out.println("????????????????????\?????????");
	                                         ^
1 error
Language: Java

import java.util.Scanner;


public class Main{
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:17: error: ';' expected
		System.out.println("a = b")
		                           ^
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 if (a == b){
	 System.out.println("a==b");
	 }
	 }
	 }

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

import java.util.Scanner;
public class Small{
	public static void main(String[]args){
	//Scan data from input
		Scanner sc = new Scanner(System.in);
	//Imput two number as Real number;
		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 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){
	//Scan data from input
		Scanner sc = new Scanner(System.in);
	//Imput two number as Real number;
		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){
		            ^
Main.java:13: error: 'else' without 'if'
		}else{
		 ^
2 errors
Language: Java

import java.util.Scanner;
public class Small{
	public static void main(String[]args){
	//Scan data from input
		Scanner sc = new Scanner(System.in);
	//Imput two number as Real number;
		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 Small is public, should be declared in a file named Small.java
public class Small{
       ^
1 error
Language: Java

package sample1;
import java.util.Scanner;
public class Sample1 {	
	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 Sample1 is public, should be declared in a file named Sample1.java
public class Sample1 {	
       ^
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: 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 {
System.out.println("a > b");
}
}

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

import java.io.*;

public class Sle{
  public static void main(String[] args){
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String s;
    int a,b;

    s=reader.readLine();
    a=Integer.parseInt(line);

    s=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")
    }
  }
}

Compiler output:
Main.java:20: error: ';' expected
      System.out.println("a==b")
                                ^
1 error
Language: Java

import java.io.*;

public class Sle{
  public static void main(String[] args){
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String s;
    int a,b;

    s=reader.readLine();
    a=Integer.parseInt(line);

    s=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");
    }
  }
}

Compiler output:
Main.java:3: error: class Sle is public, should be declared in a file named Sle.java
public class Sle{
       ^
Main.java:10: error: cannot find symbol
    a=Integer.parseInt(line);
                       ^
  symbol:   variable line
  location: class Sle
Main.java:13: error: cannot find symbol
    b=Integer.parseInt(line);
                       ^
  symbol:   variable line
  location: class Sle
3 errors
Language: Java

	package test;
	
	
	import java.util.Scanner;
	public class Test{
	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 if(a > b){
	System.out.println("a > b");
	}
	else if(a == b){
	System.out.println("a = b");
	}
	
	}
}
	

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

import java.io.*;

public class Main{
  public static void main(String[] args){
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String s;
    int a,b;

    s=reader.readLine();
    a=Integer.parseInt(line);

    s=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");
    }
  }
}

Compiler output:
Main.java:10: error: cannot find symbol
    a=Integer.parseInt(line);
                       ^
  symbol:   variable line
  location: class Main
Main.java:13: error: cannot find symbol
    b=Integer.parseInt(line);
                       ^
  symbol:   variable line
  location: class Main
2 errors
Language: Java

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

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

import java.io.*;

public class Main{
  public static void main(String[] args){
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String s;
    int a,b;

    s=reader.readLine();
    a=Integer.parseInt(s);

    s=reader.readLine();
    b=Integer.parseInt(s);

    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:9: error: unreported exception IOException; must be caught or declared to be thrown
    s=reader.readLine();
                     ^
Main.java:12: error: unreported exception IOException; must be caught or declared to be thrown
    s=reader.readLine();
                     ^
2 errors
Language: Java

import java.io.*;

public class Sle{
  public static void main(String[] args){
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

    String s=reader.readLine();
    int a=Integer.parseInt(s);

    String s=reader.readLine();
    int b=Integer.parseInt(s);

    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 Sle is public, should be declared in a file named Sle.java
public class Sle{
       ^
Main.java:10: error: variable s is already defined in method main(String[])
    String s=reader.readLine();
           ^
2 errors
Language: Java

import java.io.*;

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

    String s=reader.readLine();
    int a=Integer.parseInt(s);

    s=reader.readLine();
    int b=Integer.parseInt(s);

    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:7: error: unreported exception IOException; must be caught or declared to be thrown
    String s=reader.readLine();
                            ^
Main.java:10: error: unreported exception IOException; must be caught or declared to be thrown
    s=reader.readLine();
                     ^
2 errors
Language: Java

import java.io.*;

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

    String line=reader.readLine();
    int a=Integer.parseInt(s);

    line=reader.readLine();
    int b=Integer.parseInt(s);

    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:8: error: cannot find symbol
    int a=Integer.parseInt(s);
                           ^
  symbol:   variable s
  location: class Main
Main.java:11: error: cannot find symbol
    int b=Integer.parseInt(s);
                           ^
  symbol:   variable s
  location: class Main
2 errors
Language: Java

import java.io.*;

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

    String line=reader.readLine();
    int a=Integer.parseInt(line);

    line=reader.readLine();
    int 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");
    }
  }
}

Compiler output:
Main.java:7: error: unreported exception IOException; must be caught or declared to be thrown
    String line=reader.readLine();
                               ^
Main.java:10: error: unreported exception IOException; must be caught or declared to be thrown
    line=reader.readLine();
                        ^
2 errors
Language: Java


import java.util.Scanner;

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

	}
}

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


public class Main {
    public static void main(String[] args) throws Exception{
    
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        int b = in.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: cannot find symbol
        Scanner in = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
        Scanner in = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

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

	
	}
}

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

input = gets

str = input.split(" ")

a = str[0].to_i
b = str[1].to_i

if a < b
    puts "a < b"
elsif a > b
    puts "a > b"
else
    puts "a == b"
end

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
input = gets
^
1 error
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int a = in.nextInt;
		int b = in.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: cannot find symbol
		int a = in.nextInt;
		          ^
  symbol:   variable nextInt
  location: variable in of type Scanner
Main.java:6: error: cannot find symbol
		int b = in.nextInt;
		          ^
  symbol:   variable nextInt
  location: variable in of type Scanner
2 errors
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 if (a==b) {
			System.out.println("a==b");
		}
	}
}

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

mport java.io.*;
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:1: error: class, interface, enum, or record expected
mport java.io.*;
^
Main.java:2: error: class, interface, enum, or record expected
import java.util.Scanner;
^
2 errors
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:3: 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 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:3: 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 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:16: error: class, interface, enum, or record expected
}}
 ^
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:11: error: not a statement
		}else(a==b){
		     ^
Main.java:11: error: ';' expected
		}else(a==b){
		           ^
2 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void mian(String[] args){
		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: cannot find symbol
		int a = sc.nextInt();
		        ^
  symbol:   variable sc
  location: class Main
Main.java:6: error: cannot find symbol
		int b = sc.nextInt();
		        ^
  symbol:   variable sc
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void mian(String[] args){
		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(a==b){
			System.out.println("a == b");
		}
	}
}

Compiler output:
Main.java:11: error: not a statement
		}else(a==b){
		     ^
Main.java:11: error: ';' expected
		}else(a==b){
		           ^
2 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void mian(String[] args){
		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: cannot find symbol
		int a = sc.nextInt();
		        ^
  symbol:   variable sc
  location: class Main
Main.java:6: error: cannot find symbol
		int b = sc.nextInt();
		        ^
  symbol:   variable sc
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void mian(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(a==b){
			System.out.println("a == b");
		}
	}
}

Compiler output:
Main.java:12: error: not a statement
		}else(a==b){
		     ^
Main.java:12: error: ';' expected
		}else(a==b){
		           ^
2 errors
Language: Java

import java.util.Scanner;

public class SLE {
	public static void mian(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 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 Untitled {
	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:2: error: class Untitled is public, should be declared in a file named Untitled.java
public class Untitled {
       ^
1 error
Language: Java

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

Compiler output:
Main.java:7: error: illegal start of expression
      ???if(a>b){
      ^
Main.java:7: error: illegal start of expression
      ???if(a>b){
       ^
Main.java:7: error: illegal start of expression
      ???if(a>b){
        ^
Main.java:7: error: illegal start of expression
      ???if(a>b){
         ^
Main.java:14: error: reached end of file while parsing
}
 ^
5 errors
Language: Java

import java.util.*;
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.printIn("a > b");
        }else if(a==b){
          System.out.printIn("a = b");
        }else if(a<b){
          System.out.printIn("a < b");
        }
 }
}
       

Compiler output:
Main.java:8: error: cannot find symbol
          System.out.printIn("a > b");
                    ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
Main.java:10: error: cannot find symbol
          System.out.printIn("a = b");
                    ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
Main.java:12: error: cannot find symbol
          System.out.printIn("a < b");
                    ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
3 errors
Language: Java

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

Compiler output:
Main.java:8: error: cannot find symbol
          System.out.printIn("a > b");
                    ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
Main.java:10: error: cannot find symbol
          System.out.printIn("a = b");
                    ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
Main.java:12: error: cannot find symbol
          System.out.printIn("a < b");
                    ^
  symbol:   method printIn(String)
  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);

// 2?????????????????????????????´??°?????¨????????????????????????

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

import java.util.Scanner;

public class Main{
    public static void main(String args[]){
	String 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: incompatible types: Scanner cannot be converted to String
	String sc = new Scanner(System.in);
	            ^
Main.java:6: error: cannot find symbol
	int a = sc.nextInt();
	          ^
  symbol:   method nextInt()
  location: variable sc of type String
Main.java:7: error: cannot find symbol
	int b = sc.nextInt();
	          ^
  symbol:   method nextInt()
  location: variable sc of type String
3 errors
Language: Java

import java.util.Scanner;

public class class1 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		//double pi = Math.PI;
		//double a = r * r * pi;
		//double b = r * 2 * pi;
		if (a==b) System.out.println("a == b");
		else if(a>b) System.out.println("a > b");
		else System.out.println("a < b");
		//System.out.printf("%f %f", a, b);
		sc.close();
	}
}

Compiler output:
Main.java:3: error: class class1 is public, should be declared in a file named class1.java
public class class1 {
       ^
1 error
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 if (a > b){

System.out.println("a > b");

} else if (a = b){

System.out.println("a = b");

}

}

}

Compiler output:
Main.java:25: error: incompatible types: int cannot be converted to boolean
} else if (a = b){
             ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
    public static void main(String args[]){
	String 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: incompatible types: Scanner cannot be converted to String
	String sc = new Scanner(System.in);
	            ^
Main.java:6: error: cannot find symbol
	int a = sc.nextInt();
	          ^
  symbol:   method nextInt()
  location: variable sc of type String
Main.java:7: error: cannot find symbol
	int b = sc.nextInt();
	          ^
  symbol:   method nextInt()
  location: variable sc of type String
3 errors
Language: Java

import java.util.Scanner;

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

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

import java.util.Scanner;

public class practice{
    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 practice is public, should be declared in a file named practice.java
public class practice{
       ^
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:4: error: cannot find symbol
	public static void main(string[] args){
	                        ^
  symbol:   class string
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Equal {
	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 \n");
		} else if (a > b) {
			System.out.println(" a > b \n");
		} else if (a == b) {
			System.out.println(" a == b \n");
		}
	}
}

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

import java.util.Scanner;

public class Equal {
	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\n");
		} else if (a > b) {
			System.out.println(" a > b\n");
		} else if (a == b) {
			System.out.println(" a == b\n");
		}
	}
}

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

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

        return;
    }
}

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.utl.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:1: error: package java.utl does not exist
import java.utl.Scanner;
               ^
Main.java:5: error: cannot find symbol
          Scanner sc=new Scanner(System.in);
          ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
          Scanner sc=new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
3 errors