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

import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
      while (true) {
        int a = 0, b = 0;
        int ans = 0;
        String op;
        try {
          a = Integer.parseInt(sc.next());
          op = temp;
          b = Integer.parseInt(sc.next());
          if( op.equals("+") ){
            ans = a + b;
          } else if ( op.equals("-") ){
            ans = a - b;
          } else if ( op.equals("*") ){
            ans = a * b;
          } else if ( op.equals("/") ){
            ans = a / b;
          } else if ( op.equals("?") ){
            break;
          } else {
            continue;
          }
          System.out.println(ans);
        } catch ( IllegalStateException e ){
          System.out.println(e);
        }
      }
  return;
  }
}

Compiler output:
Main.java:12: error: cannot find symbol
          op = temp;
               ^
  symbol:   variable temp
  location: class Main
1 error
Language: Java

import java.util.Scanner;
 
class Main{
  public static void main(String[] args){
    while(op != '?'){
      Scanner obj = new Scanner(System.in);
      int a = obj.nextInt();
      char op = obj.next().charAt(0);
      int b = obj.nextInt();
     
      if(op == '+'){
        System.out.println(a + b);}
      else if(op == '-'){
        System.out.println(a - b);}
      else if(op == '*'){
        System.out.println(a * b);}
      else if(op == '/'){
        System.out.println(a / b);}
    }
    System.out.println();
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    while(op != '?'){
          ^
  symbol:   variable op
  location: class Main
1 error
Language: Java

import java.util.Scanner;
 
class Main{
  public static void main(String[] args){
    Scanner obj = new Scanner(System.in);
    int a = obj.nextInt();
    char op = obj.next().charAt(0);
    int b = obj.nextInt();
    
    do{
      if(op == '+'){
        System.out.println(a + b);}
      else if(op == '-'){
        System.out.println(a - b);}
      else if(op == '*'){
        System.out.println(a * b);}
      else if(op == '/'){
        System.out.println(a / b);}
      else if(op == '?'){
        break;}
    }while(1);
  }
}

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

import java.util.Scanner;
 
class Main{
  public static void main(String[] args){
    Scanner obj = new Scanner(System.in);
    int a = obj.nextInt();
    char op = obj.next().charAt(0);
    int b = obj.nextInt();
    
    do{
      if(op == '+'){
        System.out.println(a + b);}
      else if(op == '-'){
        System.out.println(a - b);}
      else if(op == '*'){
        System.out.println(a * b);}
      else if(op == '/'){
        System.out.println(a / b);}
      else if(op == '?'){
        break;}
    }while();
  }
}

Compiler output:
Main.java:21: error: illegal start of expression
    }while();
           ^
1 error
Language: Java

import java.util.Scanner;

class Main{
  public class main(String[] args){
    do{
      Scanner obj = new Scanner(System.in);
      int a = obj.nextInt();
      char op = obj.next().charAt(0);
      int b = obj.nextInt();
    
      if(op == '+'){
        System.out.println(a+b);}
      else if(op == '-'){
        System.out.println(a - b);}
      else if(op == '*'){
        System.out.println(a * b);}
      else if(op == '/'){
        System.out.println(a / b);}
      else if(op == '?'){
        System.exit();}
    }while(op != '?');
  }
}

Compiler output:
Main.java:4: error: '{' expected
  public class main(String[] args){
                   ^
Main.java:5: error: illegal start of type
    do{
    ^
Main.java:21: error: illegal start of type
    }while(op != '?');
     ^
Main.java:21: error: <identifier> expected
    }while(op != '?');
             ^
4 errors
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[] args){
    do{
      Scanner obj = new Scanner(System.in);
      int a = obj.nextInt();
      char op = obj.next().charAt(0);
      int b = obj.nextInt();
    
      if(op == '+'){
        System.out.println(a+b);}
      else if(op == '-'){
        System.out.println(a - b);}
      else if(op == '*'){
        System.out.println(a * b);}
      else if(op == '/'){
        System.out.println(a / b);}
      else if(op == '?'){
        System.exit();}
    }while(op != '?');
  }
}

Compiler output:
Main.java:20: error: method exit in class System cannot be applied to given types;
        System.exit();}
              ^
  required: int
  found:    no arguments
  reason: actual and formal argument lists differ in length
Main.java:21: error: cannot find symbol
    }while(op != '?');
           ^
  symbol:   variable op
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[] args){
    do{
      Scanner obj = new Scanner(System.in);
      int a = obj.nextInt();
      char op = obj.next().charAt(0);
      int b = obj.nextInt();
    
      if(op == '+'){
        System.out.println(a+b);}
      else if(op == '-'){
        System.out.println(a - b);}
      else if(op == '*'){
        System.out.println(a * b);}
      else if(op == '/'){
        System.out.println(a / b);}
      else if(op == '?'){
        System.exit();}
    } while(op != '?');
  }
}

Compiler output:
Main.java:20: error: method exit in class System cannot be applied to given types;
        System.exit();}
              ^
  required: int
  found:    no arguments
  reason: actual and formal argument lists differ in length
Main.java:21: error: cannot find symbol
    } while(op != '?');
            ^
  symbol:   variable op
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[] args){
    do{
      Scanner obj = new Scanner(System.in);
      int a = obj.nextInt();
      char op = obj.next().charAt(0);
      int b = obj.nextInt();
    
      if(op == '+'){
        System.out.println(a+b);}
      else if(op == '-'){
        System.out.println(a - b);}
      else if(op == '*'){
        System.out.println(a * b);}
      else if(op == '/'){
        System.out.println(a / b);}
      else if(op == '?'){
        System.out.println();}
    } while(op != '?');
  }
}

Compiler output:
Main.java:21: error: cannot find symbol
    } while(op != '?');
            ^
  symbol:   variable op
  location: class Main
1 error
Language: Java

import java.util.Scanner;
 
public class Main{
  public static void main(String[] args) throuws IOException{
    while(true){
      Scanner obj = new Scanner(System.in);
      int a = obj.nextInt();
      char op = obj.next().charAt(0);
      int b = obj.nextInt();
     
      if(op == '+'){
        System.out.println(a+b);}
      else if(op == '-'){
        System.out.println(a - b);}
      else if(op == '*'){
        System.out.println(a * b);}
      else if(op == '/'){
        System.out.println(a / b);}
      else{
        break;}
    }
  }
}

Compiler output:
Main.java:4: error: ';' expected
  public static void main(String[] args) throuws IOException{
                                        ^
1 error
Language: Java

import java.util.Scanner;
 
public class Main{
  public static void main(String[] args) throuws IOException{
    while(true){
      Scanner obj = new Scanner(System.in);
      int a = obj.nextInt();
      char op = obj.next().charAt(0);
      int b = obj.nextInt();
     
      if(op == '+'){
        System.out.println(a + b);}
      else if(op == '-'){
        System.out.println(a - b);}
      else if(op == '*'){
        System.out.println(a * b);}
      else if(op == '/'){
        System.out.println(a / b);}
      else{
        break;}
    }
  }
}

Compiler output:
Main.java:4: error: ';' expected
  public static void main(String[] args) throuws IOException{
                                        ^
1 error
Language: Java

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

public class calc {
	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try {
			while (true) {
				String[] s = reader.readLine().split(" ");
				int a = Integer.parseInt(s[0]);
				String op = s[1];
				int b = Integer.parseInt(s[2]);
				if (op.equals("+"))
					System.out.println(a + b);
				if (op.equals("-"))
					System.out.println(a - b);
				if (op.equals("*"))
					System.out.println(a * b);
				if (op.equals("/"))
					System.out.println(a / b);
				if (op.equals("?"))
					break;
			}
		} catch (IOException e) {
			System.out.println(e);
		}
	}
}

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

import java.io.*;
import java.util.Scanner;
public class SimpleCal {
	public static void main(String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		Scanner br =new Scanner(System.in);
		int a,b,num=0;
		String op="a";
		while(true){
		a=br.nextInt();
		op=reader.readLine();
		b=br.nextInt();
			if(op.equals("+")){
				num=a+b;
				System.out.println(num);
			}else if(op.equals("-")){
				num=a-b;
				System.out.println(num);
			}else if(op.equals("*")){
				num=a*b;
				System.out.println(num);
			}else if(op.equals("/")){
				num=a/b;
				System.out.println(num);
			}else{
				break;
			}
			}
		}
	}

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

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
while(true){
int a = sc.nextInt();
int b = sc.nextInt();
char op = sc.nextChar();

if(op == "?"){break;}

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

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

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

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

Compiler output:
Main.java:6: error: cannot find symbol
int a = sc.nextInt();
        ^
  symbol:   variable sc
  location: class Main
Main.java:7: error: cannot find symbol
int b = sc.nextInt();
        ^
  symbol:   variable sc
  location: class Main
Main.java:8: error: cannot find symbol
char op = sc.nextChar();
          ^
  symbol:   variable sc
  location: class Main
Main.java:10: error: bad operand types for binary operator '=='
if(op == "?"){break;}
      ^
  first type:  char
  second type: String
Main.java:12: error: bad operand types for binary operator '=='
if(op == "+"){System.out.println(a + b);}
      ^
  first type:  char
  second type: String
Main.java:14: error: bad operand types for binary operator '=='
if(op == "-"){System.out.println(a - b);}
      ^
  first type:  char
  second type: String
Main.java:16: error: bad operand types for binary operator '=='
if(op == "*"){System.out.println(a * b);}
      ^
  first type:  char
  second type: String
Main.java:18: error: bad operand types for binary operator '=='
if(op == "/"){System.out.println(a / b);}
      ^
  first type:  char
  second type: String
8 errors
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
while(true){
int a = scan.nextInt();
int b = scan.nextInt();
char op = scan.nextChar();

if(op == '?'){break;}

if(op == '+'){System.out.println(a + b);}

if(op == '-'){System.out.println(a - b);}

if(op == '*'){System.out.println(a * b);}

if(op == '/'){System.out.println(a / b);}
}}}

Compiler output:
Main.java:8: error: cannot find symbol
char op = scan.nextChar();
              ^
  symbol:   method nextChar()
  location: variable scan of type Scanner
1 error
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
while(true){
int a = scan.nextInt();
int b = scan.nextInt();
char op = new javautil.Scanner(System.in).nextChar();

if(op == '?'){break;}

if(op == '+'){System.out.println(a + b);}

if(op == '-'){System.out.println(a - b);}

if(op == '*'){System.out.println(a * b);}

if(op == '/'){System.out.println(a / b);}
}}}

Compiler output:
Main.java:8: error: package javautil does not exist
char op = new javautil.Scanner(System.in).nextChar();
                      ^
1 error
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
while(true){
int a = scan.nextInt();
int b = scan.nextInt();
char op = new javautil.Scanner().nextChar();

if(op == '?'){break;}

if(op == '+'){System.out.println(a + b);}

if(op == '-'){System.out.println(a - b);}

if(op == '*'){System.out.println(a * b);}

if(op == '/'){System.out.println(a / b);}
}}}

Compiler output:
Main.java:8: error: package javautil does not exist
char op = new javautil.Scanner().nextChar();
                      ^
1 error
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
while(true){
int a = scan.nextInt();
int b = scan.nextInt();
char op;

if(op == '?'){break;}

if(op == '+'){System.out.println(a + b);}

if(op == '-'){System.out.println(a - b);}

if(op == '*'){System.out.println(a * b);}

if(op == '/'){System.out.println(a / b);}
}}}

Compiler output:
Main.java:10: error: variable op might not have been initialized
if(op == '?'){break;}
   ^
1 error
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
while(true){
int a = scan.nextInt();
int b = scan.nextInt();
char op = scan.next().char();

if(op == '?'){break;}

if(op == '+'){System.out.println(a + b);}

if(op == '-'){System.out.println(a - b);}

if(op == '*'){System.out.println(a * b);}

if(op == '/'){System.out.println(a / b);}
}}}

Compiler output:
Main.java:8: error: <identifier> expected
char op = scan.next().char();
                      ^
Main.java:8: error: ';' expected
char op = scan.next().char();
                          ^
2 errors
Language: Java

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

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

  char op = scan.nextChar();
  int a = scan.nextInt();
  int b = scan.nextInt();

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

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

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

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

}
}

Compiler output:
Main.java:5: error: cannot find symbol
public static void main(string[] args){
                        ^
  symbol:   class string
  location: class Main
Main.java:8: error: cannot find symbol
  char op = scan.nextChar();
                ^
  symbol:   method nextChar()
  location: variable scan of type Scanner
Main.java:12: error: bad operand types for binary operator '=='
  if (op == "+"){
         ^
  first type:  char
  second type: String
Main.java:16: error: bad operand types for binary operator '=='
  if (op == "+"){
         ^
  first type:  char
  second type: String
Main.java:20: error: bad operand types for binary operator '=='
  if (op == "+"){
         ^
  first type:  char
  second type: String
Main.java:24: error: bad operand types for binary operator '=='
  if (op == "+"){
         ^
  first type:  char
  second type: String
6 errors
Language: Java

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

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

  char op = scan.next()charAT;
  int a = scan.nextInt();
  int b = scan.nextInt();

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

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

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

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

}
}

Compiler output:
Main.java:8: error: ';' expected
  char op = scan.next()charAT;
                       ^
1 error
Language: Java

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

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

  char op = scan.next.charAT();
  int a = scan.nextInt();
  int b = scan.nextInt();

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

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

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

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

}
}

Compiler output:
Main.java:5: error: cannot find symbol
public static void main(string[] args){
                        ^
  symbol:   class string
  location: class Main
Main.java:8: error: cannot find symbol
  char op = scan.next.charAT();
                ^
  symbol:   variable next
  location: variable scan of type Scanner
Main.java:12: error: bad operand types for binary operator '=='
  if (op == "+"){
         ^
  first type:  char
  second type: String
Main.java:16: error: bad operand types for binary operator '=='
  if (op == "-"){
         ^
  first type:  char
  second type: String
Main.java:20: error: bad operand types for binary operator '=='
  if (op == "*"){
         ^
  first type:  char
  second type: String
Main.java:24: error: bad operand types for binary operator '=='
  if (op == "/"){
         ^
  first type:  char
  second type: String
6 errors
Language: Java

import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
while(true){
int a = scan.nextInt();
char op = scan.next().charAt(0);
int b = scan.nextInt();

if(op == "?"){break;}

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

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

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

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

Compiler output:
Main.java:10: error: bad operand types for binary operator '=='
if(op == "?"){break;}
      ^
  first type:  char
  second type: String
Main.java:12: error: bad operand types for binary operator '=='
if(op == "+"){System.out.println(a + b);}
      ^
  first type:  char
  second type: String
Main.java:14: error: bad operand types for binary operator '=='
if(op == "-"){System.out.println(a - b);}
      ^
  first type:  char
  second type: String
Main.java:16: error: bad operand types for binary operator '=='
if(op == "*"){System.out.println(a * b);}
      ^
  first type:  char
  second type: String
Main.java:18: error: bad operand types for binary operator '=='
if(op == "/"){System.out.println(a / b);}
      ^
  first type:  char
  second type: String
5 errors
Language: Java

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

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

  int a = scan.nextInt();
  char op = scan.next().charAt(0);
  int b = scan.nextint();

  if (op =  '?'){
  } else if (op =  '+'){
    System.out.println(a + b);
  } else  if (op =  '-'){
    System.out.println(a - b);
  } else  if (op =  '*'){
    System.out.println(a * b);
  } else  if (op =  '/'){
    System.out.println(a / b);
  }
  }
}

Compiler output:
Main.java:10: error: cannot find symbol
  int b = scan.nextint();
              ^
  symbol:   method nextint()
  location: variable scan of type Scanner
Main.java:12: error: incompatible types: char cannot be converted to boolean
  if (op =  '?'){
         ^
Main.java:13: error: incompatible types: char cannot be converted to boolean
  } else if (op =  '+'){
                ^
Main.java:15: error: incompatible types: char cannot be converted to boolean
  } else  if (op =  '-'){
                 ^
Main.java:17: error: incompatible types: char cannot be converted to boolean
  } else  if (op =  '*'){
                 ^
Main.java:19: error: incompatible types: char cannot be converted to boolean
  } else  if (op =  '/'){
                 ^
6 errors
Language: Java

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

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

  int a = scan.nextInt();
  char op = scan.next().charAt(0);
  int b = scan.nextInt();

  if (op =  '?'){
  } else if (op =  '+'){
    System.out.println(a + b);
  } else  if (op =  '-'){
    System.out.println(a - b);
  } else  if (op =  '*'){
    System.out.println(a * b);
  } else  if (op =  '/'){
    System.out.println(a / b);
  }
  }
}

Compiler output:
Main.java:12: error: incompatible types: char cannot be converted to boolean
  if (op =  '?'){
         ^
Main.java:13: error: incompatible types: char cannot be converted to boolean
  } else if (op =  '+'){
                ^
Main.java:15: error: incompatible types: char cannot be converted to boolean
  } else  if (op =  '-'){
                 ^
Main.java:17: error: incompatible types: char cannot be converted to boolean
  } else  if (op =  '*'){
                 ^
Main.java:19: error: incompatible types: char cannot be converted to boolean
  } else  if (op =  '/'){
                 ^
5 errors
Language: Java

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

public class ITP1_4_C {

	public static void main(String[] args) {

		//?????£?????????
		int numA = 0;
		int numB = 0;

		int Anser = 0;

		String op = null;

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

			//???????????????
			while(true){
				String line = br.readLine();

				if (line != null) {
					String[] InputList = line.split(" ", 0);

					numA = Integer.parseInt(InputList[0]);
					numB = Integer.parseInt(InputList[2]);
					op = InputList[1];

					if (op != null) {
						switch (op) {
							case "+":
								System.out.println(numA + numB);
								break;

							case "-":
								System.out.println(numA - numB);
								break;

							case "*":
								System.out.println(numA * numB);
								break;

							case "/":
								System.out.println(numA / numB);
								break;

							default:
								break;
						}
					}else{
						System.out.println("E");
						break;
					}
				}else{
					System.err.println("R");
					break;
				}
			}

		}catch (NumberFormatException e) {
			System.out.println(e);
		} catch (IOException e) {
			System.out.println(e);
		}

	}

}

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

import java.io.*;
public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
        
      while(true){
      String[] num=buf.readLine().split(" ");
      int  x=Integer.parseInt(num[0]);
      int y=Integer.parseInt(num[2]);
      
          if(num[1].equals("+"))
              System.out.println(x+y);
          else if(num[1].equals("-"))
              System.out.println(x-y);
          else if(num[1].equals("*"))
              System.out.println(x*y);
          else if(num[1].equals("/"))
              System.out.println(x/y);
          else 
              break;
      }
    }

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

import java.util.Scanner;

public class simple_calculator {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		String op = scan.next();
		int b = scan.nextInt();
				
			if(op.equals("+")){
				System.out.println(a + op + b );
			}else if(op.equals("-")){
				System.out.println(a + op + b );
			}else if(op.equals("*")){
				System.out.println(a + op + b );
			}else if(op.equals("/")){
				System.out.println(a + op + b );
			}else{
				System.out.println("error");
			}
	}
}

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

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

public Main {
	public static void main(String[] args) throws IOException{
	      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	        while(true) {
	            String[] line = br.readLine().split(" ");
	            int a = Integer.parseInt(line[0]);
	            int b = Integer.parseInt(line[2]);
	             
	            if(line[1].equals("+")) System.out.println(a + b);
	            else if(line[1].equals("-")) System.out.println(a - b);
	            else if(line[1].equals("*")) System.out.println(a * b);
	            else if(line[1].equals("/")) System.out.println(a / b);
	            else break;
	        }
	         
	    }
}

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

import java.util.*;
public class Main {
	public static void main(String[] args) throws IOException{
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		String[] st = s.split(" ");
		while (true){
			int x = Integer.parseInt(st[0]);
			s = st[1];
			int y = Integer.parseInt(st[2]);
			if(s.equals("+")){
				System.out.println(x+y);
			}else if(s.equals("-")){
				System.out.println(x-y);
			}else if(s.equals("*")){
				System.out.println(x*y);
			}else if(s.equals("/")){
				System.out.println(x/y);
			}else{
				break;
			}
		}
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
	public static void main(String[] args) throws IOException{
	                                              ^
  symbol:   class IOException
  location: class Main
1 error
Language: Java

import java.io.*;

class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));		
		
		while(true){
		String input = br.readLine();
		String[] cut = input.split(" ");
		int a = Integer.parseInt(cut[0]);
		int b = Integer.parseInt(cut[2]);
		String op = cut[1];
		if(op.equals("?"))	break;
		
		if(op.equals("+"))System.out.println(a+b);
		if(op.equals("-"))System.out.println(a-b);
		if(op.equals("*"))System.out.println(a*b);
		if(op.equals("/"))System.out.println(a/b);
		}
	
		
	}

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

import java.util.*;

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

            if(op == "?") break;
            
            if(op == "+" ) 
                  System.out.println(a+b);
            else if (op == "-")
                  System.out.println(a-b);
            else if (op == "*")
                  System.out.println(a*b);
            else if (op == "/")
                  System.out.println(a/b);
            else;
        }
     }
}

Compiler output:
Main.java:10: error: cannot find symbol
            int b = scan.next.Int();
                        ^
  symbol:   variable next
  location: variable scan of type Scanner
1 error
Language: Java

class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        
        while(true) {
            int a = scan.nextInt();
            String op = scan.next();
            int b = scan.nextInt();
            
            if(op == "+" ) 
                  System.out.println(a+b);
            else if (op == "-")
                  System.out.println(a-b);
            else if (op == "*")
                  System.out.println(a*b);
            else if (op == "/")
                  System.out.println(a/b);
            else break;
        }
     }
}

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;
public class Main {
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int a = scan.nextInt();
        int op = scan.nextInt();
        int b = scan.nextInt();
        int x;
        for(int i = 0; i <- 20000; i++){
            if(op.equals("+")){
                x = a + b;
            }else if(op.equals("-")){
                x = a - b;
            }else if(op.equals("*")){
                x = a * b;
            }else if(op.equals("/")){
                x = a / b;
            }else if(op.equals("?")){
                break;
            }
            System.out.println(x);
        }
    }
}

Compiler output:
Main.java:10: error: int cannot be dereferenced
            if(op.equals("+")){
                 ^
Main.java:12: error: int cannot be dereferenced
            }else if(op.equals("-")){
                       ^
Main.java:14: error: int cannot be dereferenced
            }else if(op.equals("*")){
                       ^
Main.java:16: error: int cannot be dereferenced
            }else if(op.equals("/")){
                       ^
Main.java:18: error: int cannot be dereferenced
            }else if(op.equals("?")){
                       ^
5 errors
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int a = scan.nextInt();
        String op = scan.nextInt();
        int b = scan.nextInt();
        int x;
        for(int i = 0; i <- 20000; i++){
            if(op == "+"){
                x = a + b;
            }else if(op == "-"){
                x = a - b;
            }else if(op == "*"){
                x = a * b;
            }else if(op == "/"){
                x = a / b;
            }else if(op == "?"){
                break;
            }
            System.out.println(x);
        }
    }
}

Compiler output:
Main.java:6: error: incompatible types: int cannot be converted to String
        String op = scan.nextInt();
                                ^
1 error
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int a = scan.nextInt();
        String op = scan.toString();
        int b = scan.nextInt();
        int x;
        for(int i = 0; i <- 20000; i++){
            if(op == "+"){
                x = a + b;
            }else if(op == "-"){
                x = a - b;
            }else if(op == "*"){
                x = a * b;
            }else if(op == "/"){
                x = a / b;
            }else if(op == "?"){
                break;
            }
            System.out.println(x);
        }
    }
}

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

import java.util.*;
import java.io.*;
 
public class Main {
    public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        StringTokenizer st = new StringTokenizer(str, " ");
        
        int a = Integer.parseInt(st.nextToken());
        String b = st.nextToken();
        int c = Integer.parseInt(st.nextToken());
       
            while (true) {
            if (b=="+"){
                System.out.println(a + b);
            }
            else if (b=="-") {
                System.out.println(a - b);
            }
            else if (b=="*"){
                System.out.println(a * b);
            }
            else if (b=="/"){
                System.out.println(a / b);
            }
            else{
                break;
            }
            }
        
        
        
    }
    
}

Compiler output:
Main.java:8: error: cannot find symbol
        StringTokenizer st = new StringTokenizer(str, " ");
                                                 ^
  symbol:   variable str
  location: class Main
Main.java:19: error: bad operand types for binary operator '-'
                System.out.println(a - b);
                                     ^
  first type:  int
  second type: String
Main.java:22: error: bad operand types for binary operator '*'
                System.out.println(a * b);
                                     ^
  first type:  int
  second type: String
Main.java:25: error: bad operand types for binary operator '/'
                System.out.println(a / b);
                                     ^
  first type:  int
  second type: String
4 errors
Language: Java

import java.util.*;
import java.io.*;
 
public class Main {
    public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        StringTokenizer st = new StringTokenizer(br.readLine(), " ");
        
        int a = Integer.parseInt(st.nextToken());
        String b = st.nextToken();
        int c = Integer.parseInt(st.nextToken());
       
            while (true) {
            if (b=="+"){
                System.out.println(a + b);
            }
            else if (b=="-") {
                System.out.println(a - b);
            }
            else if (b=="*"){
                System.out.println(a * b);
            }
            else if (b=="/"){
                System.out.println(a / b);
            }
            else{
                break;
            }
            }
        
        
        
    }
    
}

Compiler output:
Main.java:19: error: bad operand types for binary operator '-'
                System.out.println(a - b);
                                     ^
  first type:  int
  second type: String
Main.java:22: error: bad operand types for binary operator '*'
                System.out.println(a * b);
                                     ^
  first type:  int
  second type: String
Main.java:25: error: bad operand types for binary operator '/'
                System.out.println(a / b);
                                     ^
  first type:  int
  second type: String
3 errors
Language: Java

import java.io.*;
class Main{
public static void main(String[] args){
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int x;
boolean i=true;
while(i){
String str=br.nextLine();
String[] arr=str.split(" ");
int a=Integer.parseInt(arr[0]);
int b=Integer.parseInt(arr[2]);
switch(arr[1]){
case "+": x=a+b; break;
case "-": x=a-b; break;
case "*": x=a*b; break;
case "/": x=a/b; break;
case "?": i=false; break;
default: break;
}
if(i==true) System.out.println(x);
}
br.close();
}
}

Compiler output:
Main.java:8: error: cannot find symbol
String str=br.nextLine();
             ^
  symbol:   method nextLine()
  location: variable br of type BufferedReader
1 error
Language: Java

import java.io.*;
class Main{
public static void main(String[] args)throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int x;
boolean i=true;
while(i){
String str=br.nextLine();
String[] arr=str.split(" ");
int a=Integer.parseInt(arr[0]);
int b=Integer.parseInt(arr[2]);
switch(arr[1]){
case "+": x=a+b; break;
case "-": x=a-b; break;
case "*": x=a*b; break;
case "/": x=a/b; break;
case "?": i=false; break;
default: break;
}
if(i==true) System.out.println(x);
}
br.close();
}
}

Compiler output:
Main.java:8: error: cannot find symbol
String str=br.nextLine();
             ^
  symbol:   method nextLine()
  location: variable br of type BufferedReader
1 error
Language: Java

import java.io.*;
class Main{
public static void main(String[] args)throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int x;
boolean i=true;
while(i){
String str=br.readLine();
String[] arr=str.split(" ");
int a=Integer.parseInt(arr[0]);
int b=Integer.parseInt(arr[2]);
switch(arr[1]){
case "+": x=a+b; break;
case "-": x=a-b; break;
case "*": x=a*b; break;
case "/": x=a/b; break;
case "?": i=false; break;
default: break;
}
if(i==true) System.out.println(x);
}
br.close();
}
}

Compiler output:
Main.java:20: error: variable x might not have been initialized
if(i==true) System.out.println(x);
                               ^
1 error
Language: Java

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

public class culcurator {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while (true) {
		String data[] = br.readLine().split(" ");
		int a = Integer.parseInt(data[0]);
		int b = Integer.parseInt(data[2]);

		String s = (data[1]);
		if(s.equals("?"))break;

		else if (s.equals("+")) {
			System.out.println(a + b);
			}
		else if (s.equals("-")) {
			System.out.println(a - b);
			}

		else if (s.equals("*")) {
			System.out.println(a * b);
			}
		else if (s.equals("/")) {
			System.out.println(a / b);
		}
	}
  }
}

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

import java.util.Scanner;

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

		if(op == "?"){
			break;
		}

		switch (op){
				case "+":
					System.out.println(a + b);
					break 1;
				case "-":
					System.out.println(a - b);
					break 1;
				case "*":
					System.out.println(a * b);
					break 1;
				case "/":
					System.out.println(a / b);
					break 1;
				case "%":
					System.out.println(a % b);
					break 1;
			}			
		}
	}
}

Compiler output:
Main.java:18: error: ';' expected
					break 1;
					     ^
Main.java:21: error: ';' expected
					break 1;
					     ^
Main.java:24: error: ';' expected
					break 1;
					     ^
Main.java:27: error: ';' expected
					break 1;
					     ^
Main.java:30: error: ';' expected
					break 1;
					     ^
5 errors
Language: Java

import java.util.Scanner;

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

			if(op == "+"){
				System.out.println(a + b);
			}else if(op == "-"){
				System.out.println(a - b);
			}else if(op == "*"){
				System.out.println(a * b);
			}else if(op == "/"){
				System.out.println(a / b);
			}else{
				break;
			}
		}
}

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

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

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


		  try{


			  String ab;
			  String[] strAry;
			  int a=0;
			  int b=0;
              String c;
              int d=0;

              while(true){
            	  
			      System.out.println("????????\??????");
			      ab = input.readLine();
		          strAry = ab.split(" ");
		          a=Integer.parseInt(strAry[0]);
	              b=Integer.parseInt(strAry[2]);
                  c=strAry[1];
                  

                  if(c.equals("+")){
            	      d=a+b;
                   }
                 
                  else if(c.equals("-")){
            	      d=a-b;
                                    else if(c.equals("*")){
            	      d=a*b;
                 }
                  else if(c.equals("/")){
            	      d=a/b;
                  }
                  else if(c.equals("?")){
                        break;
                      }
                  System.out.println(d);
              }

		    }catch(IOException e) {   System.out.println("Exception : " + e);
		    }

	}
}

Compiler output:
Main.java:22: error: illegal escape character
			      System.out.println("????????\??????");
			                                   ^
Main.java:36: error: 'else' without 'if'
                                    else if(c.equals("*")){
                                    ^
Main.java:48: error: 'catch' without 'try'
		    }catch(IOException e) {   System.out.println("Exception : " + e);
		     ^
Main.java:10: error: 'try' without 'catch', 'finally' or resource declarations
		  try{
		  ^
Main.java:52: error: reached end of file while parsing
}
 ^
5 errors
Language: Java

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

public class Simple_Calculator_15 {
	public static void main(String[] args) {
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
//??????????????¨??????????????????????????±??????????°????????????????

		  try{


			  String ab;
			  String[] strAry;
			  int a=0;
			  int b=0;
              String c;
              int d=0;

              while(true){
            	  //??\????????°?????????????????¨???????????????????????????
			      System.out.println("????????\??????");
			      ab = input.readLine();
		          strAry = ab.split(" ");
		          a=Integer.parseInt(strAry[0]);
	              b=Integer.parseInt(strAry[2]);
                  c=strAry[1];
                  //????????????????´?

                  if(c.equals("+")){
            	      d=a+b;
                   }
                  //?????????????????£??????
                  else if(c.equals("-")){
            	      d=a-b;
                  }//?????????????????£??????
                  else if(c.equals("*")){
            	      d=a*b;
                 }
                  else if(c.equals("/")){
            	      d=a/b;
                  }
                  else if(c.equals("?")){
                        break;
                      }//c?????????????????????
                  System.out.println(d);
              }

		    }catch(IOException e) {   System.out.println("Exception : " + e);
		    }

	}
}

Compiler output:
Main.java:22: error: illegal escape character
			      System.out.println("????????\??????");
			                                   ^
1 error
Language: Java

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

public class Simple_Main {
	public static void main(String[] args) {
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
//??????????????¨??????????????????????????±??????????°????????????????

		  try{


			  String ab;
			  String[] strAry;
			  int a=0;
			  int b=0;
              String c;
              int d=0;

              while(true){
            	  //??\????????°?????????????????¨???????????????????????????
			      System.out.println("????????\??????");
			      ab = input.readLine();
		          strAry = ab.split(" ");
		          a=Integer.parseInt(strAry[0]);
	              b=Integer.parseInt(strAry[2]);
                  c=strAry[1];
                  //????????????????´?

                  if(c.equals("+")){
            	      d=a+b;
                   }
                  //?????????????????£??????
                  else if(c.equals("-")){
            	      d=a-b;
                  }//?????????????????£??????
                  else if(c.equals("*")){
            	      d=a*b;
                 }
                  else if(c.equals("/")){
            	      d=a/b;
                  }
                  else if(c.equals("?")){
                        break;
                      }//c?????????????????????
                  System.out.println(d);
              }

		    }catch(IOException e) {   System.out.println("Exception : " + e);
		    }

	}
}

Compiler output:
Main.java:22: 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 number1;
		int number2;
		String op;
		Scanner scanner = new Scanner(System.in);
		do {
			number1 = scanner.nextInt();
			op = scanner.next();
			number2 = scanner.nextInt();
			if(number1 >= 0 && number1 <= 20000 && number2 >= 0 && number2 <= 20000) {
				if(op .equals("+")) {
					System.out.println(number1+number2);
				}else if(op .equals("-")) {
					System.out.println(number1-number2);
				}
				else if(op .equals("*")) {
					System.out.println(number1*number2);
				}
				else if(op .equals("/")) {
					System.out.println(number1/number2);
				}
			}
		}while(! (op.equals("?")));

Compiler output:
Main.java:26: error: reached end of file while parsing
		}while(! (op.equals("?")));
		                           ^
1 error
Language: Java

import java.util.ArrayList;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		
		Scanner scanner = new Scanner(System.in);
		ArrayList<String> list = new ArrayList<String>();
		
		while(scanner.hasNext()) {
			String num = scanner.nextLine();
			String[] input = num.split(" ");
			int number1 = Integer.parseInt(input[0]);
			String op = input[1];
			int number2 = Integer.parseInt(input[2]);
			int result = 0;
			if("?" .equals(op)) {
				break;
			}else {
				if(number1 >= 0 && number1 <= 20000 && number2 >= 0 && number2 <= 20000) {
					if("+" .equals(op)) {
						result = number1+number2;
						list.add(String.valueOf(result));
					}else if("-" .equals(op)) {
						result = number1-number2;
						list.add(String.valueOf(result));
					}
					else if("*" .equals(op)) {
						result = number1*number2;
						list.add(String.valueOf(result));
					}
					else if("/" .equals(op)) {
						result = number1/number2;
						list.add(String.valueOf(result));
					}
				}
			}			
		}
		for(String str : list){
			System.out.println(str);
		}

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

import java.io.BufferedInputStream;
import java.util.ArrayList;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		
		Scanner scanner = new Scanner(new BufferedInputStream(System.in));
		ArrayList<String> list = new ArrayList<String>();
		
		while(scanner.hasNext()) {
			String num = scanner.nextLine();
			String[] input = num.split(" ");
			int number1 = Integer.parseInt(input[0]);
			String op = input[1];
			int number2 = Integer.parseInt(input[2]);
			int result = 0;
			if("?" .equals(op)) {
				break;
			}else {
				if(number1 >= 0 && number1 <= 20000 && number2 >= 0 && number2 <= 20000) {
					if("+" .equals(op)) {
						result = number1+number2;
						list.add(String.valueOf(result));
					}else if("-" .equals(op)) {
						result = number1-number2;
						list.add(String.valueOf(result));
					}
					else if("*" .equals(op)) {
						result = number1*number2;
						list.add(String.valueOf(result));
					}
					else if("/" .equals(op)) {
						result = number1/number2;
						list.add(String.valueOf(result));
					}
				}
			}			
		}
		for(String str : list){
			System.out.println(str);
		}

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