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

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  int a,b;
  String op;
  String area,rect;
   BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  
   
   while(true){   
    String str = br.readLine(); 
    String[] strAry = str.split(" ");
    a = Int.parseInt(strAry[0]); 
    op = String.parseString(strAry[1]);
    a = Int.parseInt(strAry[2]);
 
     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;
     }
   }   

  }
}

Compiler output:
Main.java:14: error: cannot find symbol
    a = Int.parseInt(strAry[0]); 
        ^
  symbol:   variable Int
  location: class Main
Main.java:15: error: cannot find symbol
    op = String.parseString(strAry[1]);
               ^
  symbol:   method parseString(String)
  location: class String
Main.java:16: error: cannot find symbol
    a = Int.parseInt(strAry[2]);
        ^
  symbol:   variable Int
  location: class Main
Main.java:18: error: bad operand types for binary operator '=='
     if(op == '+'){
           ^
  first type:  String
  second type: char
Main.java:20: error: bad operand types for binary operator '=='
     }else if(op == '-'){
                 ^
  first type:  String
  second type: char
Main.java:22: error: bad operand types for binary operator '=='
     }else if(op == '*'){
                 ^
  first type:  String
  second type: char
Main.java:24: error: bad operand types for binary operator '=='
     }else if(op == '/'){
                 ^
  first type:  String
  second type: char
Main.java:26: error: bad operand types for binary operator '=='
     }else if(op == '?'){ 
                 ^
  first type:  String
  second type: char
8 errors
Language: Java

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  int a,b;
  String op;
  String area,rect;
   BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  
   
   while(true){   
    String str = br.readLine(); 
    String[] strAry = str.split(" ");
    a = Int.parseInt(strAry[0]); 
    op = String.parseString(strAry[1]);
    b = Int.parseInt(strAry[2]);
 
     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;
     }
   }   

  }
}

Compiler output:
Main.java:14: error: cannot find symbol
    a = Int.parseInt(strAry[0]); 
        ^
  symbol:   variable Int
  location: class Main
Main.java:15: error: cannot find symbol
    op = String.parseString(strAry[1]);
               ^
  symbol:   method parseString(String)
  location: class String
Main.java:16: error: cannot find symbol
    b = Int.parseInt(strAry[2]);
        ^
  symbol:   variable Int
  location: class Main
Main.java:18: error: bad operand types for binary operator '=='
     if(op == '+'){
           ^
  first type:  String
  second type: char
Main.java:20: error: bad operand types for binary operator '=='
     }else if(op == '-'){
                 ^
  first type:  String
  second type: char
Main.java:22: error: bad operand types for binary operator '=='
     }else if(op == '*'){
                 ^
  first type:  String
  second type: char
Main.java:24: error: bad operand types for binary operator '=='
     }else if(op == '/'){
                 ^
  first type:  String
  second type: char
Main.java:26: error: bad operand types for binary operator '=='
     }else if(op == '?'){ 
                 ^
  first type:  String
  second type: char
8 errors
Language: Java

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  int a,b;
  String op;
   BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  
   
   while(true){   
    String str = br.readLine(); 
    String[] strAry = str.split(" ");
    a = Int.parseInt(strAry[0]); 
    op = String.parseString(strAry[1]);
    b = Int.parseInt(strAry[2]);
 
     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;
     }
   }   

  }
}

Compiler output:
Main.java:13: error: cannot find symbol
    a = Int.parseInt(strAry[0]); 
        ^
  symbol:   variable Int
  location: class Main
Main.java:14: error: cannot find symbol
    op = String.parseString(strAry[1]);
               ^
  symbol:   method parseString(String)
  location: class String
Main.java:15: error: cannot find symbol
    b = Int.parseInt(strAry[2]);
        ^
  symbol:   variable Int
  location: class Main
Main.java:17: error: bad operand types for binary operator '=='
     if(op == '+'){
           ^
  first type:  String
  second type: char
Main.java:19: error: bad operand types for binary operator '=='
     }else if(op == '-'){
                 ^
  first type:  String
  second type: char
Main.java:21: error: bad operand types for binary operator '=='
     }else if(op == '*'){
                 ^
  first type:  String
  second type: char
Main.java:23: error: bad operand types for binary operator '=='
     }else if(op == '/'){
                 ^
  first type:  String
  second type: char
Main.java:25: error: bad operand types for binary operator '=='
     }else if(op == '?'){ 
                 ^
  first type:  String
  second type: char
8 errors
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 str = br.readLine(); 
    String[] strAry = str.split(" ");
    int a = Int.parseInt(strAry[0]); 
    String op = String.parseString(strAry[1]);
    int b = Int.parseInt(strAry[2]);
 
     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;
     }
   }   

  }
}

Compiler output:
Main.java:11: error: cannot find symbol
    int a = Int.parseInt(strAry[0]); 
            ^
  symbol:   variable Int
  location: class Main
Main.java:12: error: cannot find symbol
    String op = String.parseString(strAry[1]);
                      ^
  symbol:   method parseString(String)
  location: class String
Main.java:13: error: cannot find symbol
    int b = Int.parseInt(strAry[2]);
            ^
  symbol:   variable Int
  location: class Main
Main.java:15: error: bad operand types for binary operator '=='
     if(op == '+'){
           ^
  first type:  String
  second type: char
Main.java:17: error: bad operand types for binary operator '=='
     }else if(op == '-'){
                 ^
  first type:  String
  second type: char
Main.java:19: error: bad operand types for binary operator '=='
     }else if(op == '*'){
                 ^
  first type:  String
  second type: char
Main.java:21: error: bad operand types for binary operator '=='
     }else if(op == '/'){
                 ^
  first type:  String
  second type: char
Main.java:23: error: bad operand types for binary operator '=='
     }else if(op == '?'){ 
                 ^
  first type:  String
  second type: char
8 errors
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 str = br.readLine(); 
    String[] strAry = str.split(" ");
    int a = Integer.parseInt(strAry[0]); 
    String op = Stringeger.parseString(strAry[1]);
    int b = Integer.parseInt(strAry[2]);
 
     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;
     }
   }   

  }
}

Compiler output:
Main.java:12: error: cannot find symbol
    String op = Stringeger.parseString(strAry[1]);
                ^
  symbol:   variable Stringeger
  location: class Main
Main.java:15: error: bad operand types for binary operator '=='
     if(op == '+'){
           ^
  first type:  String
  second type: char
Main.java:17: error: bad operand types for binary operator '=='
     }else if(op == '-'){
                 ^
  first type:  String
  second type: char
Main.java:19: error: bad operand types for binary operator '=='
     }else if(op == '*'){
                 ^
  first type:  String
  second type: char
Main.java:21: error: bad operand types for binary operator '=='
     }else if(op == '/'){
                 ^
  first type:  String
  second type: char
Main.java:23: error: bad operand types for binary operator '=='
     }else if(op == '?'){ 
                 ^
  first type:  String
  second type: char
6 errors
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 str = br.readLine(); 
    String[] strAry = str.split(" ");
    int a = Integer.parseInt(strAry[0]); 
    String op = strAry[1];
    int b = Integer.parseInt(strAry[2]);
 
     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;
     }
   }   

  }
}

Compiler output:
Main.java:15: error: bad operand types for binary operator '=='
     if(op == '+'){
           ^
  first type:  String
  second type: char
Main.java:17: error: bad operand types for binary operator '=='
     }else if(op == '-'){
                 ^
  first type:  String
  second type: char
Main.java:19: error: bad operand types for binary operator '=='
     }else if(op == '*'){
                 ^
  first type:  String
  second type: char
Main.java:21: error: bad operand types for binary operator '=='
     }else if(op == '/'){
                 ^
  first type:  String
  second type: char
Main.java:23: error: bad operand types for binary operator '=='
     }else if(op == '?'){ 
                 ^
  first type:  String
  second type: char
5 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
		while(scan.hasNextLine()){
			int a = scan.nextInt();
			string op = scan.nextLine
			int b = scan.nextInt();
			int cal =0;
			
			if(op == "?"){
				break;
			}
			else{
				if(op == "+"){
					cal = a + b;
				}
				if(op == "-"){
					cal = a - b;
				}
				if(op == "*"){
					cal = a * b;
				}
				if(op == "/"){
					cal = a / b;
				}
				
				
				list.add(cal);			
			}
		}
		for(int i=0;i<listx.size();i++){
			System.out.println(list.get(i));
		}
	}
}

Compiler output:
Main.java:10: error: ';' expected
			string op = scan.nextLine
			                         ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
		while(scan.hasNextLine()){
			int a = scan.nextInt();
			string op = scan.nextLine();
			int b = scan.nextInt();
			int cal =0;
			
			if(op == "?"){
				break;
			}
			else{
				if(op == "+"){
					cal = a + b;
				}
				if(op == "-"){
					cal = a - b;
				}
				if(op == "*"){
					cal = a * b;
				}
				if(op == "/"){
					cal = a / b;
				}
				
				
				list.add(cal);			
			}
		}
		for(int i=0;i<listx.size();i++){
			System.out.println(list.get(i));
		}
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
			string op = scan.nextLine();
			^
  symbol:   class string
  location: class Main
Main.java:35: error: cannot find symbol
		for(int i=0;i<listx.size();i++){
		              ^
  symbol:   variable listx
  location: class Main
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
		while(scan.hasNextLine()){
			int a = scan.nextInt();
			string op = scan.nextString();
			int b = scan.nextInt();
			int cal =0;
			
			if(op == "?"){
				break;
			}
			else{
				if(op == "+"){
					cal = a + b;
				}
				if(op == "-"){
					cal = a - b;
				}
				if(op == "*"){
					cal = a * b;
				}
				if(op == "/"){
					cal = a / b;
				}
				
				
				list.add(cal);			
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println(list.get(i));
		}
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
			string op = scan.nextString();
			^
  symbol:   class string
  location: class Main
Main.java:10: error: cannot find symbol
			string op = scan.nextString();
			                ^
  symbol:   method nextString()
  location: variable scan of type Scanner
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
		while(scan.hasNextLine()){
			int a = scan.nextInt();
			string op = scan.next();
			int b = scan.nextInt();
			int cal =0;
			
			if(op == "?"){
				break;
			}
			else{
				if(op == "+"){
					cal = a + b;
				}
				if(op == "-"){
					cal = a - b;
				}
				if(op == "*"){
					cal = a * b;
				}
				if(op == "/"){
					cal = a / b;
				}
				
				
				list.add(cal);			
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println(list.get(i));
		}
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
			string op = scan.next();
			^
  symbol:   class string
  location: class Main
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
		while(scan.hasNextLine()){
			string a = scan.next();
			string op = scan.next();
			string b = scan.next();
			int cal =0;
			
			if(op == "?"){
				break;
			}
			else{
				if(op == "+"){
					cal = a + b;
				}
				if(op == "-"){
					cal = a - b;
				}
				if(op == "*"){
					cal = a * b;
				}
				if(op == "/"){
					cal = a / b;
				}
				
				
				list.add(cal);			
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println(list.get(i));
		}
	}
}

Compiler output:
Main.java:9: error: cannot find symbol
			string a = scan.next();
			^
  symbol:   class string
  location: class Main
Main.java:10: error: cannot find symbol
			string op = scan.next();
			^
  symbol:   class string
  location: class Main
Main.java:11: error: cannot find symbol
			string b = scan.next();
			^
  symbol:   class string
  location: class Main
3 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
		while(scan.hasNextLine()){
			String a = scan.nextLine();
			String op = scan.next();
			String b = scan.next();
			int cal =0;
			
			if(op == "?"){
				break;
			}
			else{
				if(op == "+"){
					cal = a + b;
				}
				if(op == "-"){
					cal = a - b;
				}
				if(op == "*"){
					cal = a * b;
				}
				if(op == "/"){
					cal = a / b;
				}
				
				
				list.add(cal);			
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println(list.get(i));
		}
	}
}

Compiler output:
Main.java:19: error: incompatible types: String cannot be converted to int
					cal = a + b;
					        ^
Main.java:22: error: bad operand types for binary operator '-'
					cal = a - b;
					        ^
  first type:  String
  second type: String
Main.java:25: error: bad operand types for binary operator '*'
					cal = a * b;
					        ^
  first type:  String
  second type: String
Main.java:28: error: bad operand types for binary operator '/'
					cal = a / b;
					        ^
  first type:  String
  second type: String
4 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
		while(scan.hasNextLine()){
			String a = scan.nextInt();
			String op = scan.next();
			String b = scan.nextInt();
			//int a = Integer.parseInt(aa);
			//int b = Integer.parseInt(bb);
			int cal =0;
			
			if(op == "?"){
				break;
			}
			else{
				if(op == "+"){
					cal = a + b;
				}
				if(op == "-"){
					cal = a - b;
				}
				if(op == "*"){
					cal = a * b;
				}
				if(op == "/"){
					cal = a / b;
				}
				
				
				list.add(cal);			
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println(list.get(i));
		}
	}
}

Compiler output:
Main.java:9: error: incompatible types: int cannot be converted to String
			String a = scan.nextInt();
			                       ^
Main.java:11: error: incompatible types: int cannot be converted to String
			String b = scan.nextInt();
			                       ^
Main.java:21: error: incompatible types: String cannot be converted to int
					cal = a + b;
					        ^
Main.java:24: error: bad operand types for binary operator '-'
					cal = a - b;
					        ^
  first type:  String
  second type: String
Main.java:27: error: bad operand types for binary operator '*'
					cal = a * b;
					        ^
  first type:  String
  second type: String
Main.java:30: error: bad operand types for binary operator '/'
					cal = a / b;
					        ^
  first type:  String
  second type: String
6 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
		while(scan.hasNextLine()){
			Int a = scan.nextInt();
			String op = scan.next();
			Int b = scan.nextInt();
			//int a = Integer.parseInt(aa);
			//int b = Integer.parseInt(bb);
			int cal =0;
			
			if(op == "?"){
				break;
			}
			else{
				if(op == "+"){
					cal = a + b;
				}
				if(op == "-"){
					cal = a - b;
				}
				if(op == "*"){
					cal = a * b;
				}
				if(op == "/"){
					cal = a / b;
				}
				
				
				list.add(cal);			
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println(list.get(i));
		}
	}
}

Compiler output:
Main.java:9: error: cannot find symbol
			Int a = scan.nextInt();
			^
  symbol:   class Int
  location: class Main
Main.java:11: error: cannot find symbol
			Int b = scan.nextInt();
			^
  symbol:   class Int
  location: class Main
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
		while(scan.hasNextLine()){
			//String aa = scan.next();
			//String op = scan.next();
			//String bb = scan.next();
			int a = Integer.parseInt(aa);
			int b = Integer.parseInt(bb);
			int cal =0;
			
			if(op == "?"){
				break;
			}
			else{
				if(op == "+"){
					cal = a + b;
				}
				if(op == "-"){
					cal = a - b;
				}
				if(op == "*"){
					cal = a * b;
				}
				if(op == "/"){
					cal = a / b;
				}
				list.add(cal);			
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println(list.get(i));
		}
	}
}

Compiler output:
Main.java:12: error: cannot find symbol
			int a = Integer.parseInt(aa);
			                         ^
  symbol:   variable aa
  location: class Main
Main.java:13: error: cannot find symbol
			int b = Integer.parseInt(bb);
			                         ^
  symbol:   variable bb
  location: class Main
Main.java:16: error: cannot find symbol
			if(op == "?"){
			   ^
  symbol:   variable op
  location: class Main
Main.java:20: error: cannot find symbol
				if(op == "+"){
				   ^
  symbol:   variable op
  location: class Main
Main.java:23: error: cannot find symbol
				if(op == "-"){
				   ^
  symbol:   variable op
  location: class Main
Main.java:26: error: cannot find symbol
				if(op == "*"){
				   ^
  symbol:   variable op
  location: class Main
Main.java:29: error: cannot find symbol
				if(op == "/"){
				   ^
  symbol:   variable op
  location: class Main
7 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
		while(scan.hasNextLine()){
			String aa = scan.next();
			String op = scan.next();
			String bb = scan.next();
			//int a = Integer.parseInt(aa);
			//int b = Integer.parseInt(bb);
			int cal =0;
			
			if(op == "?"){
				break;
			}
			else{
				if(op == "+"){
					cal = a + b;
				}
				if(op == "-"){
					cal = a - b;
				}
				if(op == "*"){
					cal = a * b;
				}
				if(op == "/"){
					cal = a / b;
				}
				list.add(cal);			
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println(list.get(i));
		}
	}
}

Compiler output:
Main.java:21: error: cannot find symbol
					cal = a + b;
					      ^
  symbol:   variable a
  location: class Main
Main.java:21: error: cannot find symbol
					cal = a + b;
					          ^
  symbol:   variable b
  location: class Main
Main.java:24: error: cannot find symbol
					cal = a - b;
					      ^
  symbol:   variable a
  location: class Main
Main.java:24: error: cannot find symbol
					cal = a - b;
					          ^
  symbol:   variable b
  location: class Main
Main.java:27: error: cannot find symbol
					cal = a * b;
					      ^
  symbol:   variable a
  location: class Main
Main.java:27: error: cannot find symbol
					cal = a * b;
					          ^
  symbol:   variable b
  location: class Main
Main.java:30: error: cannot find symbol
					cal = a / b;
					      ^
  symbol:   variable a
  location: class Main
Main.java:30: error: cannot find symbol
					cal = a / b;
					          ^
  symbol:   variable b
  location: class Main
8 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
		while(scan.hasNextLine()){
			String a = scan.next();
			String op = scan.next();
			String b = scan.next();
			//int a = Integer.parseInt(aa);
			//int b = Integer.parseInt(bb);
			int cal =0;
			
			if(op == "?"){
				break;
			}
			else{
				if(op == "+"){
					cal = a + b;
				}
				if(op == "-"){
					cal = a - b;
				}
				if(op == "*"){
					cal = a * b;
				}
				if(op == "/"){
					cal = a / b;
				}
				list.add(cal);			
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println(list.get(i));
		}
	}
}

Compiler output:
Main.java:21: error: incompatible types: String cannot be converted to int
					cal = a + b;
					        ^
Main.java:24: error: bad operand types for binary operator '-'
					cal = a - b;
					        ^
  first type:  String
  second type: String
Main.java:27: error: bad operand types for binary operator '*'
					cal = a * b;
					        ^
  first type:  String
  second type: String
Main.java:30: error: bad operand types for binary operator '/'
					cal = a / b;
					        ^
  first type:  String
  second type: String
4 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
		while(scan.hasNextLine()){
			String a = scan.next();
			String op = scan.next();
			String b = scan.next();
			//int a = Integer.parseInt(aa);
			//int b = Integer.parseInt(bb);
			int cal =0;
			
			if(op == "?"){
				break;
			}
			else{
				if(op == "+"){
					cal = Integer.parseInt(a) + Integer.parseInt(b);
				}
				if(op == "-"){
					cal = a - b;
				}
				if(op == "*"){
					cal = a * b;
				}
				if(op == "/"){
					cal = a / b;
				}
				list.add(cal);			
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println(list.get(i));
		}
	}
}

Compiler output:
Main.java:24: error: bad operand types for binary operator '-'
					cal = a - b;
					        ^
  first type:  String
  second type: String
Main.java:27: error: bad operand types for binary operator '*'
					cal = a * b;
					        ^
  first type:  String
  second type: String
Main.java:30: error: bad operand types for binary operator '/'
					cal = a / b;
					        ^
  first type:  String
  second type: String
3 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
		while(scan.hasNextLine()){
			String a = scan.next();
			//String op = scan.next();
			//String b = scan.next();
			//int a = Integer.parseInt(aa);
			//int b = Integer.parseInt(bb);
			int cal =0;
			
			if(op == "?"){
				break;
			}
			else{
				if(op == "+"){
					//cal = Integer.parseInt(a) + Integer.parseInt(b);
				}
				if(op == "-"){
					//cal = Integer.parseInt(a) - Integer.parseInt(b);
				}
				if(op == "*"){
					//cal = Integer.parseInt(a) * Integer.parseInt(b);
				}
				if(op == "/"){
					//cal = Integer.parseInt(a) / Integer.parseInt(b);
				}
				list.add(cal);			
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println(list.get(i));
		}
	}
}

Compiler output:
Main.java:16: error: cannot find symbol
			if(op == "?"){
			   ^
  symbol:   variable op
  location: class Main
Main.java:20: error: cannot find symbol
				if(op == "+"){
				   ^
  symbol:   variable op
  location: class Main
Main.java:23: error: cannot find symbol
				if(op == "-"){
				   ^
  symbol:   variable op
  location: class Main
Main.java:26: error: cannot find symbol
				if(op == "*"){
				   ^
  symbol:   variable op
  location: class Main
Main.java:29: error: cannot find symbol
				if(op == "/"){
				   ^
  symbol:   variable op
  location: class Main
5 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
		while(scan.hasNextLine()){
			int a = scan.nextInt();
			String op = scan.next();
			int b = scan.nextIn();
			//int a = Integer.parseInt(aa);
			//int b = Integer.parseInt(bb);
			int cal =0;
			
			if(op == '?'){
				break;
			}
			else{
				if(op == '+'){
					cal = Integer.parseInt(a) + Integer.parseInt(b);
				}
				if(op == '-'){
					cal = Integer.parseInt(a) - Integer.parseInt(b);
				}
				if(op == '*'){
					cal = Integer.parseInt(a) * Integer.parseInt(b);
				}
				if(op == '/'){
					//cal = Integer.parseInt(a) / Integer.parseInt(b);
				}
				list.add(cal);			
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println(list.get(i));
		}
	}
}

Compiler output:
Main.java:11: error: cannot find symbol
			int b = scan.nextIn();
			            ^
  symbol:   method nextIn()
  location: variable scan of type Scanner
Main.java:16: error: bad operand types for binary operator '=='
			if(op == '?'){
			      ^
  first type:  String
  second type: char
Main.java:20: error: bad operand types for binary operator '=='
				if(op == '+'){
				      ^
  first type:  String
  second type: char
Main.java:21: error: incompatible types: int cannot be converted to String
					cal = Integer.parseInt(a) + Integer.parseInt(b);
					                       ^
Main.java:21: error: incompatible types: int cannot be converted to String
					cal = Integer.parseInt(a) + Integer.parseInt(b);
					                                             ^
Main.java:23: error: bad operand types for binary operator '=='
				if(op == '-'){
				      ^
  first type:  String
  second type: char
Main.java:24: error: incompatible types: int cannot be converted to String
					cal = Integer.parseInt(a) - Integer.parseInt(b);
					                       ^
Main.java:24: error: incompatible types: int cannot be converted to String
					cal = Integer.parseInt(a) - Integer.parseInt(b);
					                                             ^
Main.java:26: error: bad operand types for binary operator '=='
				if(op == '*'){
				      ^
  first type:  String
  second type: char
Main.java:27: error: incompatible types: int cannot be converted to String
					cal = Integer.parseInt(a) * Integer.parseInt(b);
					                       ^
Main.java:27: error: incompatible types: int cannot be converted to String
					cal = Integer.parseInt(a) * Integer.parseInt(b);
					                                             ^
Main.java:29: error: bad operand types for binary operator '=='
				if(op == '/'){
				      ^
  first type:  String
  second type: char
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
12 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
		while(scan.hasNextLine()){
			int a = scan.nextInt();
			String op = scan.next();
			int b = scan.nextIn();
			//int a = Integer.parseInt(aa);
			//int b = Integer.parseInt(bb);
			int cal =0;
			
			if(op == '?'){
				break;
			}
			else{
				if(op == '+'){
					cal = a + b;
				}
				if(op == '-'){
					cal = a - b;
				}
				if(op == '*'){
					cal = a * b;
				}
				if(op == '/'){
					cal = a / b;
				}
				list.add(cal);			
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println(list.get(i));
		}
	}
}

Compiler output:
Main.java:11: error: cannot find symbol
			int b = scan.nextIn();
			            ^
  symbol:   method nextIn()
  location: variable scan of type Scanner
Main.java:16: error: bad operand types for binary operator '=='
			if(op == '?'){
			      ^
  first type:  String
  second type: char
Main.java:20: error: bad operand types for binary operator '=='
				if(op == '+'){
				      ^
  first type:  String
  second type: char
Main.java:23: error: bad operand types for binary operator '=='
				if(op == '-'){
				      ^
  first type:  String
  second type: char
Main.java:26: error: bad operand types for binary operator '=='
				if(op == '*'){
				      ^
  first type:  String
  second type: char
Main.java:29: error: bad operand types for binary operator '=='
				if(op == '/'){
				      ^
  first type:  String
  second type: char
6 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
		while(scan.hasNextLine()){
			int a = scan.nextInt();
			String op = scan.next();
			int b = scan.nextInt();
			//int a = Integer.parseInt(aa);
			//int b = Integer.parseInt(bb);
			int cal =0;
			
			if(op == '?'){
				break;
			}
			else{
				if(op == '+'){
					cal = a + b;
				}
				if(op == '-'){
					cal = a - b;
				}
				if(op == '*'){
					cal = a * b;
				}
				if(op == '/'){
					cal = a / b;
				}
				list.add(cal);			
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println(list.get(i));
		}
	}
}

Compiler output:
Main.java:16: error: bad operand types for binary operator '=='
			if(op == '?'){
			      ^
  first type:  String
  second type: char
Main.java:20: error: bad operand types for binary operator '=='
				if(op == '+'){
				      ^
  first type:  String
  second type: char
Main.java:23: error: bad operand types for binary operator '=='
				if(op == '-'){
				      ^
  first type:  String
  second type: char
Main.java:26: error: bad operand types for binary operator '=='
				if(op == '*'){
				      ^
  first type:  String
  second type: char
Main.java:29: error: bad operand types for binary operator '=='
				if(op == '/'){
				      ^
  first type:  String
  second type: char
5 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
		while(scan.hasNextLine()){
			int a = scan.nextInt();
			Char op = scan.next();
			int b = scan.nextInt();
			//int a = Integer.parseInt(aa);
			//int b = Integer.parseInt(bb);
			int cal =0;
			
			if(op == '?'){
				break;
			}
			else{
				if(op == '+'){
					cal = a + b;
				}
				if(op == '-'){
					cal = a - b;
				}
				if(op == '*'){
					cal = a * b;
				}
				if(op == '/'){
					cal = a / b;
				}
				list.add(cal);			
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println(list.get(i));
		}
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
			Char op = scan.next();
			^
  symbol:   class Char
  location: class Main
1 error
Language: Java

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

Compiler output:
Main.java:6: error: cannot find symbol
       string op;
       ^
  symbol:   class string
  location: class Main
1 error
Language: Java

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

Compiler output:
Main.java:12: error: incompatible types: int cannot be converted to String
         op = scan.nextInt();
                          ^
Main.java:16: error: bad operand types for binary operator '=='
         if(op == '+'){
               ^
  first type:  String
  second type: char
Main.java:18: error: bad operand types for binary operator '=='
         }else if(op == '-'){
                     ^
  first type:  String
  second type: char
Main.java:20: error: bad operand types for binary operator '=='
         }else if(op == '*'){
                     ^
  first type:  String
  second type: char
Main.java:22: error: bad operand types for binary operator '=='
         }else if(op == '?'){
                     ^
  first type:  String
  second type: char
5 errors
Language: Java

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

Compiler output:
Main.java:16: error: bad operand types for binary operator '=='
         if(op == '+'){
               ^
  first type:  String
  second type: char
Main.java:18: error: bad operand types for binary operator '=='
         }else if(op == '-'){
                     ^
  first type:  String
  second type: char
Main.java:20: error: bad operand types for binary operator '=='
         }else if(op == '*'){
                     ^
  first type:  String
  second type: char
Main.java:22: error: bad operand types for binary operator '=='
         }else if(op == '?'){
                     ^
  first type:  String
  second type: char
4 errors
Language: Java

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

Compiler output:
Main.java:16: error: bad operand types for binary operator '=='
         if(op == '+'){
               ^
  first type:  String
  second type: char
Main.java:18: error: bad operand types for binary operator '=='
         }else if(op == '-'){
                     ^
  first type:  String
  second type: char
Main.java:20: error: bad operand types for binary operator '=='
         }else if(op == '*'){
                     ^
  first type:  String
  second type: char
Main.java:22: error: bad operand types for binary operator '=='
         }else if(op == '?'){
                     ^
  first type:  String
  second type: char
4 errors
Language: Java

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

Compiler output:
Main.java:25: error: 'else' without 'if'
         }else if(op == "?"){
          ^
Main.java:31: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

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

Compiler output:
Main.java:14: error: bad operand types for binary operator '=='
         if(op == '+'){
               ^
  first type:  String
  second type: char
Main.java:16: error: bad operand types for binary operator '=='
         }else if(op == '-'){
                     ^
  first type:  String
  second type: char
Main.java:18: error: bad operand types for binary operator '=='
         }else if(op == '*'){
                     ^
  first type:  String
  second type: char
Main.java:20: error: bad operand types for binary operator '=='
         }else if(op == '/'){
                     ^
  first type:  String
  second type: char
Main.java:22: error: bad operand types for binary operator '=='
         }else if(op == '?'){
                     ^
  first type:  String
  second type: char
5 errors
Language: Java

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

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

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

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

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

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

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

Compiler output:
Main.java:23: error: incompatible types: unexpected return value
              return 0;
                     ^
1 error
Language: Java

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

Compiler output:
Main.java:26: error: 'else' without 'if'
          else{
          ^
Main.java:31: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:10: error: bad operand types for binary operator '=='
    if(op == '+'){
          ^
  first type:  String
  second type: char
Main.java:12: error: bad operand types for binary operator '=='
    else if(op == '-'){
               ^
  first type:  String
  second type: char
Main.java:14: error: bad operand types for binary operator '=='
    else if(op == '*'){
               ^
  first type:  String
  second type: char
Main.java:16: error: bad operand types for binary operator '=='
    else if(op == '/'){
               ^
  first type:  String
  second type: char
4 errors
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();
    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{;}
  }
}

Compiler output:
Main.java:7: error: incompatible types: String cannot be converted to char
    char op = obj.next();
                      ^
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.nextChar();
    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{;}
  }
}

Compiler output:
Main.java:7: error: cannot find symbol
    char op = obj.nextChar();
                 ^
  symbol:   method nextChar()
  location: variable obj of type Scanner
1 error
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, b;
        int ans;
        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