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

import java.util.Scanner;

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

        int b = scan.nextInt();

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



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

java.util.Scanner;

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

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

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


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

import java.util.*;

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

	If num1 < num2{
		System.out.println(num1 + "<" + num2);
	}else If num1 > num2{
		System.out.println(num1 + ">" + num2);
	}else
		System.out.println(num1 + "==" + num2);
	}
}


Compiler output:
Main.java:9: error: ';' expected
	If num1 < num2{
	       ^
Main.java:9: error: > or ',' expected
	If num1 < num2{
	              ^
Main.java:11: error: ';' expected
	}else If num1 > num2{
	             ^
Main.java:11: error: variable declaration not allowed here
	}else If num1 > num2{
	         ^
Main.java:11: error: 'else' without 'if'
	}else If num1 > num2{
	 ^
Main.java:11: error: not a statement
	}else If num1 > num2{
	                ^
Main.java:11: error: ';' expected
	}else If num1 > num2{
	                    ^
Main.java:13: error: 'else' without 'if'
	}else
	 ^
8 errors
Language: Java

import java.util.*;

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

	If (num1 < num2){
		System.out.println(num1 + "<" + num2);
	}else If (num1 > num2){
		System.out.println(num1 + ">" + num2);
	}else
		System.out.println(num1 + "==" + num2);
	}
}


Compiler output:
Main.java:9: error: ';' expected
	If (num1 < num2){
	                ^
Main.java:11: error: ';' expected
	}else If (num1 > num2){
	                      ^
Main.java:11: error: 'else' without 'if'
	}else If (num1 > num2){
	 ^
Main.java:13: error: 'else' without 'if'
	}else
	 ^
4 errors
Language: Java

import java.util.Scanner;

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

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


Compiler output:
Main.java:11: error: ';' expected
if(a<b){System.out.println("a<b")
                                 ^
Main.java:12: error: '(' expected
}if else(a>b){System.out.println("a>b")}
   ^
Main.java:12: error: illegal start of expression
}if else(a>b){System.out.println("a>b")}
    ^
Main.java:12: error: not a statement
}if else(a>b){System.out.println("a>b")}
        ^
Main.java:12: error: ';' expected
}if else(a>b){System.out.println("a>b")}
             ^
Main.java:12: error: ';' expected
}if else(a>b){System.out.println("a>b")}
                                       ^
Main.java:13: error: '(' expected
if else(a=b){System.out.println("a=b")}
  ^
Main.java:13: error: illegal start of expression
if else(a=b){System.out.println("a=b")}
   ^
Main.java:13: error: not a statement
if else(a=b){System.out.println("a=b")}
       ^
Main.java:13: error: ';' expected
if else(a=b){System.out.println("a=b")}
            ^
Main.java:13: error: ';' expected
if else(a=b){System.out.println("a=b")}
                                      ^
Main.java:13: error: reached end of file while parsing
if else(a=b){System.out.println("a=b")}
                                       ^
12 errors
Language: Java

import java.util.Scanner;

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

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


Compiler output:
Main.java:12: error: '(' expected
}if else(a>b){System.out.println("a>b");}
   ^
Main.java:12: error: illegal start of expression
}if else(a>b){System.out.println("a>b");}
    ^
Main.java:12: error: not a statement
}if else(a>b){System.out.println("a>b");}
        ^
Main.java:12: error: ';' expected
}if else(a>b){System.out.println("a>b");}
             ^
Main.java:13: error: '(' expected
if else(a=b){System.out.println("a=b");}
  ^
Main.java:13: error: illegal start of expression
if else(a=b){System.out.println("a=b");}
   ^
Main.java:13: error: not a statement
if else(a=b){System.out.println("a=b");}
       ^
Main.java:13: error: ';' expected
if else(a=b){System.out.println("a=b");}
            ^
Main.java:13: error: reached end of file while parsing
if else(a=b){System.out.println("a=b");}
                                        ^
9 errors
Language: Java

import java.util.Scanner;

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

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


Compiler output:
Main.java:12: error: '(' expected
}if else(a>b){System.out.println("a"+">"+"b");}
   ^
Main.java:12: error: illegal start of expression
}if else(a>b){System.out.println("a"+">"+"b");}
    ^
Main.java:12: error: not a statement
}if else(a>b){System.out.println("a"+">"+"b");}
        ^
Main.java:12: error: ';' expected
}if else(a>b){System.out.println("a"+">"+"b");}
             ^
Main.java:13: error: '(' expected
if else(a=b){System.out.println("a"+"="+"b");}
  ^
Main.java:13: error: illegal start of expression
if else(a=b){System.out.println("a"+"="+"b");}
   ^
Main.java:13: error: not a statement
if else(a=b){System.out.println("a"+"="+"b");}
       ^
Main.java:13: error: ';' expected
if else(a=b){System.out.println("a"+"="+"b");}
            ^
Main.java:14: error: reached end of file while parsing
}
 ^
9 errors
Language: Java

import java.util.Scanner;

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

 int a;
 int b;
Scanner s = new Scanner(System.in());
a=s.nextInt();
b=s.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:13: error: reached end of file while parsing
 else if(a=b){System.out.println("a"+"="+"b");}}
                                                ^
1 error
Language: Java

import java.util.Scanner;

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

 int a;
 int b;
Scanner s = new Scanner(System.in);
a=s.nextInt();
b=s.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:13: error: reached end of file while parsing
 else if(a=b){System.out.println("a"+"="+"b");}}
                                                ^
1 error
Language: Java

import java.util.Scanner;

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

 int a;
 int b;
Scanner s = new Scanner(System.in);
a=s.nextInt();
b=s.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:13: error: reached end of file while parsing
 else if(a=b){System.out.println("a"+"="+"b");}
                                               ^
1 error
Language: Java

import java.util.Scanner;

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

 int a;
 int b;
Scanner s = new Scanner(System.in);
a=s.nextInt();
b=s.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:10: error: cannot find symbol
b=s.nextint();
   ^
  symbol:   method nextint()
  location: variable s of type Scanner
Main.java:14: error: incompatible types: int cannot be converted to boolean
else if(a=b){System.out.println("a"+"="+"b");}
         ^
2 errors
Language: Java

import java.util.Scanner;

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

 int e;
 int d;
Scanner s = new Scanner(System.in);
a=s.nextInt();
b=s.nextint();
if(e.empty()<d.empty()){System.out.println("a"+"<"+"b");
} 
else if(e.empty()>d.empty()){){System.out.println("a"+">"+"b");}
else if(e.empty()=d.empty()){){System.out.println("a"+"="+"b");}
}
}


Compiler output:
Main.java:13: error: illegal start of expression
else if(e.empty()>d.empty()){){System.out.println("a"+">"+"b");}
                             ^
Main.java:14: error: illegal start of expression
else if(e.empty()=d.empty()){){System.out.println("a"+"="+"b");}
                             ^
Main.java:14: error: 'else' without 'if'
else if(e.empty()=d.empty()){){System.out.println("a"+"="+"b");}
^
Main.java:16: error: reached end of file while parsing
}
 ^
4 errors
Language: Java

import java.util.Scanner;

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

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


Compiler output:
Main.java:12: error: ';' expected
int d=b
       ^
Main.java:15: error: '(' expected
if else if(c=d){System.out.println("a=b");}
  ^
Main.java:15: error: illegal start of expression
if else if(c=d){System.out.println("a=b");}
   ^
3 errors
Language: Java

import java.util.Scanner;

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

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


Compiler output:
Main.java:11: error: cannot find symbol
b=s.nextint();
   ^
  symbol:   method nextint()
  location: variable s of type Scanner
Main.java:15: error: incompatible types: int cannot be converted to boolean
 else if(c=d){System.out.println("a=b");}
          ^
2 errors
Language: Java

import java.util.Scanner;

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

 int a;
 int b;
Scanner s = new Scanner(System.in);
Scanner o = new Scanner(System.in);
a=s.nextInt();
int c=a;
b=o.nextint();
int d=b;
if(c<d){System.out.println("a<b");
} else if(c>d){System.out.println("a>b");}
 else if(c=d){System.out.println("a=b");}
}
}


Compiler output:
Main.java:12: error: cannot find symbol
b=o.nextint();
   ^
  symbol:   method nextint()
  location: variable o of type Scanner
Main.java:16: error: incompatible types: int cannot be converted to boolean
 else if(c=d){System.out.println("a=b");}
          ^
2 errors
Language: Java

import java.util.Scanner;

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

 int a;
 int b;
Scanner s = new Scanner(System.in);

a=s.nextInt();

b=s.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:16: error: incompatible types: int cannot be converted to boolean
 else if(a=b){System.out.println("a=b");}
          ^
1 error
Language: Java

import java.util.Scanner;

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

 int a;
 int b;
Scanner s = new Scanner(System.in);

a=s.nextInt();

b=s.nextInt();

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


Compiler output:
Main.java:16: error: int cannot be dereferenced
 else if(a.equals()==b.equals()){System.out.println("a=b");}
          ^
Main.java:16: error: int cannot be dereferenced
 else if(a.equals()==b.equals()){System.out.println("a=b");}
                      ^
2 errors
Language: Java

import java.util.Scanner;

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

 int a;
 int b;
Scanner s = new Scanner(System.in);

a=s.nextInt();

b=s.nextInt();

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


Compiler output:
Main.java:16: error: int cannot be dereferenced
 else if(a.equals(a)==b.equals(b)){System.out.println("a=b");}
          ^
Main.java:16: error: int cannot be dereferenced
 else if(a.equals(a)==b.equals(b)){System.out.println("a=b");}
                       ^
2 errors
Language: Java

import java.util.Scanner;

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

 int a;
 int b;
Scanner s = new Scanner(System.in);

a=s.nextInt();

b=s.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:16: error: not a statement
 else (a==b){System.out.println("a=b");}
      ^
Main.java:16: error: ';' expected
 else (a==b){System.out.println("a=b");}
            ^
2 errors
Language: Java

import java.util.Scanner;

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

 int a;
 int b;
Scanner s = new Scanner(System.in());
a=s.nextInt();
b=s.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:13: error: not a statement
else(a=b){System.out.println("a=b");}
    ^
Main.java:13: error: ';' expected
else(a=b){System.out.println("a=b");}
         ^
Main.java:13: error: reached end of file while parsing
else(a=b){System.out.println("a=b");}
                                     ^
3 errors
Language: Java

import java.util.Scanner;

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

 int a;
 int b;
Scanner s = new Scanner(System.in);
a=s.nextInt();
b=s.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:13: error: not a statement
else(a=b){System.out.println("a=b");}
    ^
Main.java:13: error: ';' expected
else(a=b){System.out.println("a=b");}
         ^
2 errors
Language: Java

import java.util.Scanner;

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

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


}}



Compiler output:
Main.java:10: error: unclosed string literal
b=s.nextInt();"
              ^
Main.java:11: error: ';' expected
if(a<b){System.out.println("a<b")}else if(a>b){System.out.println("a>b")}else{System.out.println("a=b")}
                                 ^
Main.java:11: error: ';' expected
if(a<b){System.out.println("a<b")}else if(a>b){System.out.println("a>b")}else{System.out.println("a=b")}
                                                                        ^
Main.java:11: error: ';' expected
if(a<b){System.out.println("a<b")}else if(a>b){System.out.println("a>b")}else{System.out.println("a=b")}
                                                                                                       ^
4 errors
Language: Java

import java.util.Scanner;

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

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


}}



Compiler output:
Main.java:11: error: ';' expected
if(a<b){System.out.println("a<b")}else if(a>b){System.out.println("a>b")}else{System.out.println("a=b")}
                                 ^
Main.java:11: error: ';' expected
if(a<b){System.out.println("a<b")}else if(a>b){System.out.println("a>b")}else{System.out.println("a=b")}
                                                                        ^
Main.java:11: error: ';' expected
if(a<b){System.out.println("a<b")}else if(a>b){System.out.println("a>b")}else{System.out.println("a=b")}
                                                                                                       ^
3 errors
Language: Java

import java.util.Scanner;

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

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


Compiler output:
Main.java:11: error: ';' expected
if(a>b){System.out.println("a>b")}
                                 ^
Main.java:12: error: ';' expected
else if(a<b){System.out.println("a<b")}
                                      ^
Main.java:13: error: ')' expected
else(System.out.println("a==b");)
                               ^
Main.java:13: error: not a statement
else(System.out.println("a==b");)
    ^
Main.java:13: error: illegal start of expression
else(System.out.println("a==b");)
                                ^
5 errors
Language: Java

import java.util.Scanner;

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

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


Compiler output:
Main.java:13: error: ')' expected
else(System.out.println("a==b");)
                               ^
Main.java:13: error: not a statement
else(System.out.println("a==b");)
    ^
Main.java:13: error: illegal start of expression
else(System.out.println("a==b");)
                                ^
3 errors
Language: Java

import java.util.Scanner;

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

 int a;
 int b;
Scanner s =new Scanner(System.in);
a=s.nextInt();
b=s.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:13: error: ')' expected
else if(a==b)(System.out.println("a==b");)
                                        ^
Main.java:13: error: not a statement
else if(a==b)(System.out.println("a==b");)
             ^
Main.java:13: error: illegal start of expression
else if(a==b)(System.out.println("a==b");)
                                         ^
3 errors
Language: Java

import java.util.Scanner;

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

 int a;
 int b;
Scanner s =new Scanner(System.in);
a=s.nextInt();
b=s.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:13: error: ')' expected
else if(a=b)(System.out.println("a==b");)
                                       ^
Main.java:13: error: not a statement
else if(a=b)(System.out.println("a==b");)
            ^
Main.java:13: error: illegal start of expression
else if(a=b)(System.out.println("a==b");)
                                        ^
3 errors
Language: Java

import java.util.Scanner;

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

 int a;
 int b;
Scanner s =new Scanner(System.in);
a=s.nextInt();
b=s.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:11: error: ')' or ',' expected
if(a<b){System.out.println("a"+" "<"+" "+b");}
                                      ^
Main.java:12: error: ')' or ',' expected
else if(a>b){System.out.println("a"+" ">"+" "+b");}
                                           ^
Main.java:13: error: ')' or ',' expected
else if(a==b){System.out.println("a"+" "=="+" "+b");}
                                             ^
3 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:14: error: package Ssytem does not exist
            Ssytem.out.print("==");
                  ^
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:14: error: package Sytem does not exist
            Sytem.out.print("==");
                 ^
1 error
Language: Java

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


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

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

		int value[] = new int[2];
		int count = 0;

		String mark = null;

		String s = br.readLine();
		String[] strArray = s.split(" ");

		try{
			for(int i=0;i<strArray.length;i++){
				if(strArray[i] != " "){
					value[count] = Integer.parseInt(strArray[i]);
					count++;
				}
			}

			if(value[0] < value[1]){
				mark = "<";
			}else if(value[0] > value[1]){
				mark = ">";
			}else if(value[0] == value[1]){
				mark = "==";
			}

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

		}catch(ArrayIndexOutOfBoundsException e){
		}
	}
}

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

import java.util.Scanner;

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

		Stirng c;
		if(a>b)c=">";
		if(a<b)c="<";
		if(a==b)c="==";
		System.out.println("a"+c+"b");
	}
}

Compiler output:
Main.java:9: error: cannot find symbol
		Stirng c;
		^
  symbol:   class Stirng
  location: class Main
1 error
Language: Java

import java.util.Scanner;

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

		String c;
		if(a>b)c=">";
		if(a<b)c="<";
		if(a==b)c="==";
		System.out.println("a"+c+"b");
	}
}

Compiler output:
Main.java:13: error: variable c might not have been initialized
		System.out.println("a"+c+"b");
		                       ^
1 error
Language: Java

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

class Main{
  public static void main(String [] args){
    Scanner scan = new Scanner(System.in);
    int a = Integer.parseInt(scan.next());
    int b = Integer.parseInt(scan.next());
    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: 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.Scanner;

class Main{
  public static void main(String [] args){
    Scanner scan = new Scanner(System.in);
    int a = Integer.parseInt(scan.next());
    int b = Integer.parseInt(scan.next());
    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: '.' expected
import java util.Scanner;
           ^
1 error
Language: Java

public class Main{
	
	public static void main(String[] args){
		
		//テキスト入力クラス
		Scanner sc = new Scanner(System.in);
		
		//入力された値を取ってくる
		int first = sc.nextInt();
		int second = sc.nextInt();
		
		//入力された値を並び替え、大きいほうと小さいほうに分ける
		int big = 0;
		int small = 0;
		
		//最初の入力値が、２番目の入力値以下だった場合
		if(first >= second){
			big = first;
			small = second;
		//逆だった場合
		}else{			
			big = second;
			small = first;			
		}
		
		System.out.println(big+" "+small);	
	}
}

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

import java.util.Scanner;

public class Small_Large_Or_Equal {
	
	public static void main(String[] args){
		
		//テキスト入力クラス
		Scanner sc = new Scanner(System.in);
		
		//入力された値を取ってくる
		int first = sc.nextInt();
		int second = sc.nextInt();
		
		//最初の入力値が、２番目の入力値以下だった場合
		if(first > second){
			System.out.println("a > b");	
		//２番目の入力値のほうが大きかった場合
		}else if(first < second){			
			System.out.println("a < b");
		//等しい場合
		}else{
			System.out.println("a == b");
		}	
	}
}

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

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




Compiler output:
main.c:2:1: error: expected identifier or '(' before '{' token
    2 | {
      | ^
Language: C

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




Compiler output:
main.c:2:1: error: expected identifier or '(' before '{' token
    2 | {
      | ^
Language: C

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




Compiler output:
main.c:2:1: error: expected identifier or '(' before '{' token
    2 | {
      | ^
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:5:23: error: expected ';' before 'if'
    5 |   scanf("%d %d",&a,&b)
      |                       ^
      |                       ;
    6 |   if(a>b)
      |   ~~
Language: C

#include<stdio.h>
int main(void){
int a,b;
scanf("%d %d",&a,&b);
if(a-b<0){
printf("a<b\n");
}
else if(a-b>0){
printf("a>b\n"):
}
else if("a-b=0"){
printf("a==b\n"):
}
}


Compiler output:
main.c: In function 'main':
main.c:9:16: error: expected ';' before ':' token
    9 | printf("a>b\n"):
      |                ^
      |                ;
main.c:12:17: error: expected ';' before ':' token
   12 | printf("a==b\n"):
      |                 ^
      |                 ;
Language: C

#include<stdio.h>
int main(void){
int a,b;
scanf("%d %d",&a,&b);
if(a-b<0){
printf("a<b\n");
} else if(a-b>0){
printf("a>b\n"):
} else if("a-b=0"){
printf("a==b\n"):
}
}


Compiler output:
main.c: In function 'main':
main.c:8:16: error: expected ';' before ':' token
    8 | printf("a>b\n"):
      |                ^
      |                ;
main.c:10:17: error: expected ';' before ':' token
   10 | printf("a==b\n"):
      |                 ^
      |                 ;
Language: C

#include<stdio.h>
int main(void){
int a,b;
scanf("%d%d",&a,&b);
if(a-b<0){
printf("a<b\n");
}
else if(a-b>0){
printf("a>b\n"):
}
else if("a-b=0"){
printf("a==b\n"):
}
}


Compiler output:
main.c: In function 'main':
main.c:9:16: error: expected ';' before ':' token
    9 | printf("a>b\n"):
      |                ^
      |                ;
main.c:12:17: error: expected ';' before ':' token
   12 | printf("a==b\n"):
      |                 ^
      |                 ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:9:16: error: expected ';' before ':' token
    9 | printf("a>b\n"):
      |                ^
      |                ;
main.c:12:17: error: expected ';' before ':' token
   12 | printf("a==b\n"):
      |                 ^
      |                 ;
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:7:8: error: expected '(' before 'else'
    7 |     if else(a>b)printf("a > b\n",a,b);
      |        ^~~~
      |        (
main.c:8:14: error: expected ';' before 'printf'
    8 |     else(a<b)printf("a < b\n",a,b);
      |              ^~~~~~
      |              ;
Language: C

#inlude <stdio.h>

int main(void)
{
    int a, b;

    scanf("%d", &a);
    scanf("%d", &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.c:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude <stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:7:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |     scanf("%d", &a);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inlude <stdio.h>
main.c:7:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |     scanf("%d", &a);
      |     ^~~~~
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |         printf("a == b\n");
      |         ^~~~~~
main.c:11:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |         printf("a < b\n");
      |         ^~~~~~
main.c:13:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   15 |         printf("a > b\n");
      |         ^~~~~~
main.c:15:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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




Compiler output:
main.c: In function 'main':
main.c:3:2: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |  scanf("%d%d",a,b);
      |  ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |  scanf("%d%d",a,b);
      |  ^~~~~
main.c:3:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:7: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |       printf("a=b");
      |       ^~~~~~
main.c:5:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:2: error: expected '}' before 'else'
    6 |  else if(a<b){
      |  ^~~~
main.c:7:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 |       printf("a<b");
      |       ^~~~~~
main.c:7:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:2: error: expected '}' before 'else'
    8 |  else
      |  ^~~~
main.c:9:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    9 |       printf("a>b");
      |       ^~~~~~
main.c:9:7: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>
int main(void)
{
    int a, b;
    
    scanf("&d",%a);
    scanf("&d",%b);
    
    if(a<b){
        printf("a<b&d");
    }
    if(a>b){
        printf("a>b&d");
    ]
    if("a==b"){
        printf("a==b&d");
    }
    
}


Compiler output:
main.c: In function 'main':
main.c:6:16: error: expected expression before '%' token
    6 |     scanf("&d",%a);
      |                ^
main.c:7:16: error: expected expression before '%' token
    7 |     scanf("&d",%b);
      |                ^
main.c:14:5: error: expected statement before ']' token
   14 |     ]
      |     ^
main.c:19:1: error: expected declaration or statement at end of input
   19 | }
      | ^
Language: C

#include<stdio.h>
int main(void)
{
    int a, b;
    
    scanf("&d",%a);
    scanf("&d",%b);
    
    if(a<b){
        printf("a<b&d");
    }
    else if(a>b){
        printf("a>b&d");
    ]
    else if("a==b"){
        printf("a==b&d");
    }
    
}


Compiler output:
main.c: In function 'main':
main.c:6:16: error: expected expression before '%' token
    6 |     scanf("&d",%a);
      |                ^
main.c:7:16: error: expected expression before '%' token
    7 |     scanf("&d",%b);
      |                ^
main.c:14:5: error: expected statement before ']' token
   14 |     ]
      |     ^
main.c:15:5: error: expected '}' before 'else'
   15 |     else if("a==b"){
      |     ^~~~
Language: C

#include<stdio.h>
int main(void)
{
    int a, b;
    
    scanf("&d",%a);
    scanf("&d",%b);
    
    if(a<b){
        printf("a<b");
    }
    else if(a>b){
        printf("a>b");
    ]
    else if("a==b"){
        printf("a==b");
    }
    
}


Compiler output:
main.c: In function 'main':
main.c:6:16: error: expected expression before '%' token
    6 |     scanf("&d",%a);
      |                ^
main.c:7:16: error: expected expression before '%' token
    7 |     scanf("&d",%b);
      |                ^
main.c:14:5: error: expected statement before ']' token
   14 |     ]
      |     ^
main.c:15:5: error: expected '}' before 'else'
   15 |     else if("a==b"){
      |     ^~~~
Language: C

#include<stdio.h>
int main(void)
{
    int a, b;
    
    scanf("&d",%a);
    scanf("&d",%b);
    
    if(a<b){
        printf("a<b");
    }
    else if(a>b){
        printf("a>b");
    ]
    else if("a==b"){
        printf("a==b");
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:16: error: expected expression before '%' token
    6 |     scanf("&d",%a);
      |                ^
main.c:7:16: error: expected expression before '%' token
    7 |     scanf("&d",%b);
      |                ^
main.c:14:5: error: expected statement before ']' token
   14 |     ]
      |     ^
main.c:15:5: error: expected '}' before 'else'
   15 |     else if("a==b"){
      |     ^~~~
Language: C

#include<stdio.h>
int main(void)
{
    int a,b;
    scanf("%d",&a);
    scanf("%d",&b);
    
    if(a>b){
        printf("%f>%f",a,b);
    }
    if else(a==b){
        printf("%f=%f",a,b);
    }
    (a<b){
        printf("%f<%f",a,b);
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:8: error: expected '(' before 'else'
   11 |     if else(a==b){
      |        ^~~~
      |        (
Language: C

#include<stdio.h>
int main(void)
{
    int a, b;
    
    scanf("&d",%a);
    scanf("&d",%b);
    
    if(a<b){
        printf("a < b");
    }
    else if(a>b){
        printf("a > b");
    ]
    else if("a==b"){
        printf("a == b");
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:16: error: expected expression before '%' token
    6 |     scanf("&d",%a);
      |                ^
main.c:7:16: error: expected expression before '%' token
    7 |     scanf("&d",%b);
      |                ^
main.c:14:5: error: expected statement before ']' token
   14 |     ]
      |     ^
main.c:15:5: error: expected '}' before 'else'
   15 |     else if("a==b"){
      |     ^~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:16: error: expected expression before '%' token
    6 |     scanf("&d",%a);
      |                ^
main.c:7:16: error: expected expression before '%' token
    7 |     scanf("&d",%b);
      |                ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:16: error: expected expression before '%' token
    6 |     scanf("&d",%a);
      |                ^
main.c:7:16: error: expected expression before '%' token
    7 |     scanf("&d",%b);
      |                ^
main.c:14:5: error: expected statement before ']' token
   14 |     ]
      |     ^
main.c:15:5: error: expected '}' before 'else'
   15 |     else if("a==b"){
      |     ^~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:16: error: expected expression before '%' token
    6 |     scanf("&d",%a);
      |                ^
main.c:7:16: error: expected expression before '%' token
    7 |     scanf("&d",%b);
      |                ^
main.c:12:14: error: expected ';' before '{' token
   12 |     else(a>b){
      |              ^
      |              ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:12:14: error: expected ';' before '{' token
   12 |     else(a>b){
      |              ^
      |              ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:11:14: error: expected ';' before 'printf'
   11 |     else(a>b)
      |              ^
      |              ;
   12 |         printf("a>b\n");
      |         ~~~~~~
main.c:13:5: error: 'else' without a previous 'if'
   13 |     else("a==b")
      |     ^~~~
main.c:13:17: error: expected ';' before 'printf'
   13 |     else("a==b")
      |                 ^
      |                 ;
   14 |         printf("a==b\n");
      |         ~~~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:11:14: error: expected ';' before 'printf'
   11 |     else(a>b)
      |              ^
      |              ;
   12 |         printf("a>b\n");
      |         ~~~~~~
main.c:13:5: error: 'else' without a previous 'if'
   13 |     else(a==b)
      |     ^~~~
main.c:13:15: error: expected ';' before 'printf'
   13 |     else(a==b)
      |               ^
      |               ;
   14 |         printf("a==b\n");
      |         ~~~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:13:15: error: expected ';' before 'printf'
   13 |     else(a==b)
      |               ^
      |               ;
   14 |         printf("a==b\n");
      |         ~~~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:15:15: error: expected ';' before '{' token
   15 |     else(a==b){
      |               ^
      |               ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:16: error: expected expression before '%' token
    6 |     scanf("&d",%a);
      |                ^
main.c:7:16: error: expected expression before '%' token
    7 |     scanf("&d",%b);
      |                ^
Language: C

#include<stdio.h>

int main(void)

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


Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'
    6 |     int main a,s,d,f;
      |              ^
main.c:6:14: error: 'a' undeclared (first use in this function)
main.c:6:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:16: error: 's' undeclared (first use in this function)
    6 |     int main a,s,d,f;
      |                ^
main.c:6:18: error: 'd' undeclared (first use in this function)
    6 |     int main a,s,d,f;
      |                  ^
main.c:6:20: error: 'f' undeclared (first use in this function)
    6 |     int main a,s,d,f;
      |                    ^
Language: C

#include<stdio.h>

int main(void)

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


Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'
    6 |     int main a,s,d,f;
      |              ^
main.c:6:14: error: 'a' undeclared (first use in this function)
main.c:6:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:16: error: 's' undeclared (first use in this function)
    6 |     int main a,s,d,f;
      |                ^
main.c:6:18: error: 'd' undeclared (first use in this function)
    6 |     int main a,s,d,f;
      |                  ^
main.c:6:20: error: 'f' undeclared (first use in this function)
    6 |     int main a,s,d,f;
      |                    ^
Language: C

#include<stdio.h>

int main(void)

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

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'
    6 |     int main a,s;
      |              ^
main.c:6:14: error: 'a' undeclared (first use in this function)
main.c:6:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:16: error: 's' undeclared (first use in this function)
    6 |     int main a,s;
      |                ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:14:15: error: expected ';' before '{' token
   14 |     else(a==b){
      |               ^
      |               ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:14:15: error: expected ';' before '{' token
   14 |     else(a==b){
      |               ^
      |               ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:25: error: expected ';' before 'if'
    5 |     scanf("%d %d",&a,&b)
      |                         ^
      |                         ;
    6 |     if(a<b){
      |     ~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:7:26: error: expected ';' before 'else'
    7 |         printf("%d<%d",a)
      |                          ^
      |                          ;
    8 |         else if(a>b)
      |         ~~~~              
main.c: At top level:
main.c:13:1: error: expected identifier or '(' before '}' token
   13 | }
      | ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:11:14: error: expected ';' before '{' token
   11 |     else(a>b){
      |              ^
      |              ;