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

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

class Main{
    public static void main(String[] args)throw IOException{
        BuferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        while(true){
            
            String line = br.readLine();
            String[] sp1 = line.split(" ");
            
            int m = Integer.parseInt(sp1[0]);
            int f = Integer.parseInt(sp1[1]);
            int r = Integer.parseInt(sp1[2]);
            
            if(m == -1 && f == -1 && r == -1){
                break;
            }
            if(m == -1 || f == -1){
                System.out.println("F");
            }else if(m+f >= 80){
                System.out.println("A");
            }else if(m+f >= 65){
                System.out.println("B");
            }else if(m+f >= 50 || (m+f >=30) && r >= 50){
                System.out.println("C");
            }else if(m+f >= 30){
                System.out.println("D");
            }else{
                System.out.println("F");
            }
        }
    }
}

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

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

public class Main{
    public static void main(String[] args)throw IOException{
        BuferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        while(true){
            
            String line = br.readLine();
            String[] sp1 = line.split(" ");
            
            int m = Integer.parseInt(sp1[0]);
            int f = Integer.parseInt(sp1[1]);
            int r = Integer.parseInt(sp1[2]);
            
            if(m == -1 && f == -1 && r == -1){
                break;
            }
            if(m == -1 || f == -1){
                System.out.println("F");
            }else if(m+f >= 80){
                System.out.println("A");
            }else if(m+f >= 65){
                System.out.println("B");
            }else if(m+f >= 50 || (m+f >=30) && r >= 50){
                System.out.println("C");
            }else if(m+f >= 30){
                System.out.println("D");
            }else{
                System.out.println("F");
            }
        }
    }
}

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

import java.util.Scanner;

class Main {

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

		int m = 0, f = 0, r = 0;
		while(true){
			m = scan.nextInt();
			f = scan.nextInt();
			r = scan.nextInt();
			
			if(m == -1 && f == -1 && r == -1)break;
			
			if(m >= 0 && f >= 0){
				if(m + f >= 80){
					System.out.println("A");
				}else if(m + f < 80 && m + f >= 65){
					System.out.println("B");					
				}else if(m + f < 65 && m + f >= 50 || r >= 50){
					System.out.println("C");
				}else if(m + f < 50 && m + f >= 30){
					System.out.println("D");
				}else if(m + f < 30){
					System.out.println("F");
				}
			}else{
				System.out.println("F");
			}
		}

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

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (true) {
			int m = sc.nextInt();
			int f = sc.nextInt();
			int r = sc.nextInt();
			if (m == -1 && f == -1 && r == -1) break;
			System.out.println(grade(m, f, r));
		}
	}
	
	private static char grade(int m, int f, int r) {
		int mf = m + f;
		if (m == -1 || f == -1 || mf < 30) {
			return 'F';
		} else if (30 <= mf && mf < 50) {
			if (r >= 50) {
				return 'C';
			}
			return 'D';
		} else if (50 <= mf && mf < 65) {
			return 'C';
		} else if (65 <= mf && mf < 80) {
			return 'B';
		} else {
			return 'A';
		}
	}
}

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

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

public class Grading {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		ArrayList<int[]> aline = new ArrayList<int[]>();
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));;
		do {
			String linedata;
			try{
				linedata = buf.readLine();
			}catch(IOException e){
				System.err.println(e.toString());
				System.err.println("Input Error");
				continue;
			}
			int[] idata = splitdata(linedata);
			if (idata.length >= 3 && idata[0] == -1 && idata[1] == -1 && idata[2] == -1) break;
			aline.add(idata);
		}while(true);
		
		for (int i = 0; i < aline.size() ;i++){
			int[] t = aline.get(i);
			System.out.println(judgeData(t));
		}
	}
	
	static int[] splitdata(String indata){
		String[] sdata = indata.split(" ");
		int[] data = new int[sdata.length];
		for (int i = 0; i < sdata.length; i++){
			data[i] = Integer.parseInt(sdata[i]);
		}
		
		return data;
	}
	
	static char judgeData(int[] test){
		if (test[0] == -1 || test[1] == -1) return 'F';
		if (test[0] + test[1] >= 80) return 'A';
		if (test[0] + test[1] >= 65) return 'B';
		if (test[0] + test[1] >= 50) return 'C';
		if (test[0] + test[1] >= 30){
			if (test[2] >= 50) return 'C';
			else return 'D';
		}
		
		return 'F';
	}
	

}

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

import java.io.*;
public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		while(true){
			String line = reader.readLine();
			String[] sarray = line.split(" ", -1);
			int m = Integer.parseInt(sarray[0]);
			int f = Integer.parseInt(sarray[1]);
			int r = Integer.parseInt(sarray[2]);
			int x = (m + f);
			if(x => 80){
			System.out.println("A");
			}
			if(x => 65 && x < 80){
				System.out.println("B");
			}
			if(x => 50 && x < 65){
				System.out.println("C");
			}
			if(x => 30 && x < 50){
				System.out.println("D");
			}
			if(x => 30 && x < 50 && r => 50){
				System.out.println("C");
			}
			if(x => 0 && x < 30){
				System.out.println("F");
			}
			if(m == 0 && f == 0 && r == 0){
				break;
			}
		}
		/*
		int n = Integer.parseInt(sarray[0]);
		int m = Integer.parseInt(sarray[1]);
		int matrix[][] = new int[n][m];
		for(int i = 0; i < n; i++){
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < m; j++){
				matrix[i][j] = Integer.parseInt(mat[j]);
			}
		}
		int vector[] = new int[m];
		for(int k = 0; k < m; k++){
			String vec = reader.readLine();
			vector[k] = Integer.parseInt(vec); //j<m k<m
		}
		int result[] = new int[n];
		for(int p = 0; p < n; p++){
			for(int q = 0; q < m; q++){
				result[p] += matrix[p][q]*vector[q];
			}
			System.out.println(result[p]);
		}
		*/
	}
}

Compiler output:
Main.java:12: error: illegal start of expression
			if(x => 80){
			      ^
Main.java:15: error: illegal start of expression
			if(x => 65 && x < 80){
			      ^
Main.java:18: error: illegal start of expression
			if(x => 50 && x < 65){
			      ^
Main.java:21: error: illegal start of expression
			if(x => 30 && x < 50){
			      ^
Main.java:24: error: illegal start of expression
			if(x => 30 && x < 50 && r => 50){
			      ^
Main.java:24: error: illegal start of expression
			if(x => 30 && x < 50 && r => 50){
			                           ^
Main.java:27: error: illegal start of expression
			if(x => 0 && x < 30){
			      ^
7 errors
Language: Java

import java.io.*;
public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		while(true){
			String line = reader.readLine();
			String[] sarray = line.split(" ", -1);
			int m = Integer.parseInt(sarray[0]);
			int f = Integer.parseInt(sarray[1]);
			int r = Integer.parseInt(sarray[2]);
			int x = (m + f);
			if(m == -1 || f == -1){
				if(m == -1 && f == -1){
					break;
				}else{
					if(m == -1){
						m += 1;
					}else{
						r += 1;
					}
				}
			}
			if(x >= 80){
			System.out.println("A");
			}
			if(x >= 65 && x < 80){
				System.out.println("B");
			}
			if(x >= 50 && x < 65){
				System.out.println("C");
			}
			if(x >= 30 && x < 50){
				System.out.println("D");
			}
			if(x >= 30 && x < 50 && r >= 50){
				System.out.println("C");
			}
			if(x >= 0 && x < 30){
				System.out.println("F");
			}
			if(m == -1 || f == -1){
				if(r != -1){
					System.out.println("F");
				}
			}
			if(m == -1 && f == -1 && r == -1){
				break;
			}
			*/
		}
		/*
		int n = Integer.parseInt(sarray[0]);
		int m = Integer.parseInt(sarray[1]);
		int matrix[][] = new int[n][m];
		for(int i = 0; i < n; i++){
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < m; j++){
				matrix[i][j] = Integer.parseInt(mat[j]);
			}
		}
		int vector[] = new int[m];
		for(int k = 0; k < m; k++){
			String vec = reader.readLine();
			vector[k] = Integer.parseInt(vec); //j<m k<m
		}
		int result[] = new int[n];
		for(int p = 0; p < n; p++){
			for(int q = 0; q < m; q++){
				result[p] += matrix[p][q]*vector[q];
			}
			System.out.println(result[p]);
		}
		*/
	}
}

Compiler output:
Main.java:49: error: illegal start of expression
			*/
			^
Main.java:49: error: illegal start of expression
			*/
			 ^
Main.java:50: error: illegal start of expression
		}
		^
3 errors
Language: Java

import java.util.Scanner;

import com.sun.xml.internal.bind.v2.model.core.ID;


public class Main {
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		
		for(;;)
		{	
			int m = scanner.nextInt();
			int f = scanner.nextInt();
			int r = scanner.nextInt();
			
			int sum = m + f;
			String result = "";
			if(m==-1 && f==-1 && r==-1)
			{
				break;
			}
			else if(sum < 30)
			{
				result = "F";
			}
			else if(30<=sum && sum < 50)
			{
				if(r >= 50)
				{
					result = "C";
				}
				else
				{
					result = "D";
				}
			}
			else if(50<=sum && sum < 65)
			{
				result = "C";
			}
			else if(65<=sum && sum < 80)
			{
				result = "B";
			}
			else {
				result = "A";
			}
			
			System.out.println(result);
		}
	}
}

Compiler output:
Main.java:3: error: package com.sun.xml.internal.bind.v2.model.core does not exist
import com.sun.xml.internal.bind.v2.model.core.ID;
                                              ^
1 error
Language: Java

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

public class Grading {

	ArrayList<int[]> _testdata;
	
	public static void main(String[] args) {
		Grading test = new Grading();
		test.run();
		
	}
	
	public Grading(){
		_testdata = new ArrayList<int[]>();
	}
	
	void run(){
		inputData();
		printTestdata();
	}
	
	//Data????¨??????\???????????\?????????
	private void inputData(){
		BufferedReader buf= new BufferedReader(new InputStreamReader(System.in));
		
		do {
			int[] linedata;
			try{
				linedata = changeTestdata(buf.readLine());
			}catch(IOException e){
				System.err.println(e.toString());
				System.err.println("Input Error");
				continue;
			}
			
			if (checkInputDataLast(linedata)) break;
			_testdata.add(linedata);
			
		}while(true);
	}
	
	private int[] changeTestdata(String line){
		String[] sdata = line.split(" ");
		
		int[] data = new int[sdata.length];
		for (int i = 0; i < sdata.length; i++){
			try {
				data[i] = Integer.parseInt(sdata[i]);
			}catch(NumberFormatException e){
				data[i] = -2;
			}
		}
		
		return data;
	}
	
	private boolean checkInputDataLast(int[] data){
		if (data.length != 3) return false;
		return (data[0] == -1 &&data[1] == -1 &&data[2] == -1) ;
	}
	private void printTestdata() {
		for (int i = 0; i < _testdata.size() ;i++){
			int[] t = _testdata.get(i);
			System.out.println(judgeData(t));
		}
	}
	
	
	private char judgeData(int[] test){
		if (test[0] == -1 || test[1] == -1) return 'F';
		if (test[0] + test[1] >= 80) return 'A';
		if (test[0] + test[1] >= 65) return 'B';
		if (test[0] + test[1] >= 50) return 'C';
		if (test[0] + test[1] >= 30){
			if (test[2] >= 50) return 'C';
			else return 'D';
		}
		
		return 'F';
	}
}

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

//import java.util.ArrayList;
//import java.io.BufferedReader;
//import java.io.InputStreamReader;
//import java.io.IOException;
import java.io.*;
import java.util.*;

class Grading {

	ArrayList<int[]> _testdata;
	
	public static void main(String[] args) {
		Grading test = new Grading();
		test.run();
	}
	
	public Grading(){
		_testdata = new ArrayList<int[]>();
	}
	
	void run(){
		inputData();
		printTestdata();
	}
	
	//Data????¨??????\???????????\?????????
	private void inputData(){
		BufferedReader buf= new BufferedReader(new InputStreamReader(System.in));
		
		do {
			int[] linedata;
			linedata = changeTestdata(buf.readLine());
			
			if (checkInputDataLast(linedata)) break;
			_testdata.add(linedata);
			
		}while(true);
	}
	
	private int[] changeTestdata(String line){
		String[] sdata = line.split(" ");
		
		int[] data = new int[sdata.length];
		for (int i = 0; i < sdata.length; i++){
			data[i] = Integer.parseInt(sdata[i]);
			data[i] = -2;
			
		}
		
		return data;
	}
	
	private boolean checkInputDataLast(int[] data){
		if (data.length != 3) return false;
		return (data[0] == -1 &&data[1] == -1 &&data[2] == -1) ;
	}
	private void printTestdata() {
		for (int i = 0; i < _testdata.size() ;i++){
			int[] t = _testdata.get(i);
			System.out.println(judgeData(t));
		}
	}
	
	
	private char judgeData(int[] test){
		if (test.length < 2) return 'F';
		if (test[0] == -1 || test[1] == -1) return 'F';
		if (test[0] + test[1] >= 80) return'A';
		if (test[0] + test[1] >= 65) return 'B';
		if (test[0] + test[1] >= 50) return 'C';
		if (test[0] + test[1] >= 30){
			if (test[2] >= 50) return 'C';
			else return 'D';
		}
		
		return 'F';
	}
}

Compiler output:
Main.java:32: error: unreported exception IOException; must be caught or declared to be thrown
			linedata = changeTestdata(buf.readLine());
			                                      ^
1 error
Language: Java

//import java.util.ArrayList;
//import java.io.BufferedReader;
//import java.io.InputStreamReader;
//import java.io.IOException;
import java.io.*;
import java.util.*;

public class Grading {

	ArrayList<int[]> _testdata;
	
	public static void main(String[] args) {
		Grading test = new Grading();
		test.run();
	}
	
	public Grading(){
		_testdata = new ArrayList<int[]>();
	}
	
	
	//Data????¨??????\???????????\?????????
	private void run(){
		BufferedReader buf= new BufferedReader(new InputStreamReader(System.in));
		
		do {
			int[] linedata;
			try{
				linedata = changeTestdata(buf.readLine());
			}catch(IOException e){
				System.err.println(e.toString());
				System.err.println("Input Error");
				continue;
			}
			
			if (checkInputDataLast(linedata)) break;
			System.out.println(judgeData(linedata));
			
		}while(true);
	}
	
	private int[] changeTestdata(String line){
		String[] sdata = line.split(" ");
		
		int[] data = new int[sdata.length];
		for (int i = 0; i < sdata.length; i++){
			try {
				data[i] = Integer.parseInt(sdata[i]);
			}catch(NumberFormatException e){
				data[i] = -2;
			}
		}
		
		return data;
	}
	
	private boolean checkInputDataLast(int[] data){
		if (data.length != 3) return false;
		return (data[0] == -1 &&data[1] == -1 &&data[2] == -1) ;
	}
	
	private char judgeData(int[] test){
		if (test.length < 2) return 'F';
		if (test[0] == -1 || test[1] == -1) return 'F';
		if (test[0] + test[1] >= 80) return'A';
		if (test[0] + test[1] >= 65) return 'B';
		if (test[0] + test[1] >= 50) return 'C';
		if (test[0] + test[1] >= 30){
			if (test[2] >= 50) return 'C';
			else return 'D';
		}
		
		return 'F';
	}
}

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

import java.util.*;

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

		List<String> rank = new ArrayList<String>();
		Scanner scan = new Scanner(System.in);
		for(;;){
			int m = scan.nextInt();
			int f = scan.nextInt();
			int r = scan.nextInt();
			if((m == -1) && (f == -1) && (r == -1)){
				break;
			}
			if((m == -1) || (f == -1){
				rank.add("F");
			}
			if((m + f) >= 80){
				rank.add("A");
			} else if((m + f) >= 65){
				rank.add("B");
			} else if((m + f) >= 50){
				rank.add("C");
			} else if((m + f) >= 30) && (r >= 50)){
				rank.add("C");
			} else if((m + f) >= 30){
				rank.add("D");
			} else {
				rank.add("F");
			}
		}

		for(String s : rank){
			System.out.println(s);
		}
	}
}

Compiler output:
Main.java:15: error: ')' expected
			if((m == -1) || (f == -1){
			                         ^
Main.java:24: error: illegal start of expression
			} else if((m + f) >= 30) && (r >= 50)){
			                         ^
Main.java:24: error: ';' expected
			} else if((m + f) >= 30) && (r >= 50)){
			                                     ^
Main.java:26: error: 'else' without 'if'
			} else if((m + f) >= 30){
			  ^
4 errors
Language: Java

import java.util.*;

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

		List<String> rank = new ArrayList<String>();
		Scanner scan = new Scanner(System.in);
		for(;;){
			int m = scan.nextInt();
			int f = scan.nextInt();
			int r = scan.nextInt();
			if((m == -1) && (f == -1) && (r == -1)){
				break;
			}
			if((m == -1) || (f == -1)){
				rank.add("F");
			}
			if((m + f) >= 80){
				rank.add("A");
			} else if((m + f) >= 65){
				rank.add("B");
			} else if((m + f) >= 50){
				rank.add("C");
			} else if((m + f) >= 30) && (r >= 50)){
				rank.add("C");
			} else if((m + f) >= 30){
				rank.add("D");
			} else {
				rank.add("F");
			}
		}

		for(String s : rank){
			System.out.println(s);
		}
	}
}

Compiler output:
Main.java:24: error: illegal start of expression
			} else if((m + f) >= 30) && (r >= 50)){
			                         ^
Main.java:24: error: ';' expected
			} else if((m + f) >= 30) && (r >= 50)){
			                                     ^
Main.java:26: error: 'else' without 'if'
			} else if((m + f) >= 30){
			  ^
3 errors
Language: Java

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

public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        String line;
        String judge;
        int[] score = new int[3];
        
        while (true) {
            line = br.readLine();
            
            String ary[] = line.split(" ");
            score[0] = Integer.parseInt(ary[0]);
            score[1] = Integer.parseInt(ary[1]);
            score[2] = Integer.parseInt(ary[2]);
            
            if(score[0] == -1 && score[1] == -1 && score[2] == -1){
                break;
            }
            
            judge = judgeScore(score[0], score[1], score[2]);
            
            System.out.println(judge);
        }
        
    }
    
    static String judgeScore(int tyukan, int kimatu, int sai){
        int sum = tyukan + kimatu;
        String judge;
        
        if(tyukan == -1 || kimatu -1){
            judge = "F";
        }else if(sum >= 80){
            judge = "A";
        }else if(sum >= 65){
            judge = "B";
        }else if(sum >= 50){
            judge = "C";
        }else if(sum >= 30){
            judge = "D";
        }else{
            judge = "F";
        }
        
        if(sai >= 50){
            judge = "F";
        }
        
        return judge;
    }
}

Compiler output:
Main.java:36: error: bad operand types for binary operator '||'
        if(tyukan == -1 || kimatu -1){
                        ^
  first type:  boolean
  second type: int
1 error
Language: Java

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

public class Grading {
	public static void main(String args[]){
		try{
				//InputStreamReader??§??????????????????????????????????????????
				InputStreamReader isr =new InputStreamReader(System.in);
				//????????????????????????????????????????????°(????????????????????????????????¨??????????????????????????¢???????????????????£????)
				BufferedReader br =new BufferedReader(isr);

			while(true){
				//1??????????????????????????¨??????????????????
				String buf = br.readLine();
				//?¬¬????????°???????????????????????????????¬¬????????°????????????????????????????????§???????????????????????§???????????????
				StringTokenizer st = new StringTokenizer(buf," ");

				//1????????????????????¨??£???int??????????????????
				int m = Integer.parseInt(st.nextToken());
				int f = Integer.parseInt(st.nextToken());
				int r = Integer.parseInt(st.nextToken());
				int sum = (m + f);
				String result ="";


				//??¨????????????-1?????£????????????
				if(m == -1 && f == -1 && r == -1){
					break;
				//??????????¨??????????????¨????????????????????¬????????????´???????????? F
				}else if(m == -1 || f == -1){
					result += "F";
				//80 ??\???????????°????????? A
				}else if(sum >= 80){
					result += "A";
				//65 ??\??? 80 ??????????????°????????? B
				}else if(sum >= 65 && sum < 80){
					result += "B";
				//50 ??\??? 65 ??????????????°????????? C
				}else if(sum >= 50 && sum < 65){
					result += "C";
				//30 ??\??? 50 ??????????????°????????? D
				}else if(sum >= 30 && sum < 50){
					result += "D";
				//???????????????????¨?????????°??? 50 ??\???????????°????????? C
				}else if(sum >= 30 && sum < 50 && r > 50){
					result += "C";
				//30 ??????????????°????????? F
				}else if(sum < 30){
					result += "F";
				}
				System.out.println(result);
			}
		}catch(NumberFormatException e){
			System.out.print(e);
		} catch (IOException e) {
			System.out.print(e);
		}
	}
}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
class Main{
  public static void main(String args[]) throws IOException{
   int m,f,r,sum;
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   String line = br.readLine(); 
   String[] token = line.split(" ");

   while(1){
    m = Integer.parseInt(token[0]);      
    f = Integer.parseInt(token[1]);
    r = Integer.parseInt(token[2]);
    if(m == 1 && f == 1 && r == 1)break;
    sum = m + r;     
    if(sum >= 80){  
     System.out.println("A");   
    }else if( 65 <= sum < 80){ 
     System.out.println("B");   
     }else if( 50 <= sum < 65){ 
       System.out.println("C");
     }else if( 30 <= sum < 50){
       if(r>=50){
        System.out.println("C");   
       }else{
         System.out.println("D");
       }
     }else {
       System.out.println("F");
     }
   }
 
  }
}

Compiler output:
Main.java:12: error: incompatible types: int cannot be converted to boolean
   while(1){
         ^
Main.java:20: error: bad operand types for binary operator '<'
    }else if( 65 <= sum < 80){ 
                        ^
  first type:  boolean
  second type: int
Main.java:22: error: bad operand types for binary operator '<'
     }else if( 50 <= sum < 65){ 
                         ^
  first type:  boolean
  second type: int
Main.java:24: error: bad operand types for binary operator '<'
     }else if( 30 <= sum < 50){
                         ^
  first type:  boolean
  second type: int
4 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
class Main{
  public static void main(String args[]) throws IOException{
   int m,f,r,sum;
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   String line = br.readLine(); 
   String[] token = line.split(" ");

   while(true){
    m = Integer.parseInt(token[0]);      
    f = Integer.parseInt(token[1]);
    r = Integer.parseInt(token[2]);
    if(m == 1 && f == 1 && r == 1)break;
    sum = m + r;     
    if(sum >= 80){  
     System.out.println("A");   
    }else if( 65 <= sum < 80){ 
     System.out.println("B");   
     }else if( 50 <= sum < 65){ 
       System.out.println("C");
     }else if( 30 <= sum < 50){
       if(r>=50){
        System.out.println("C");   
       }else{
         System.out.println("D");
       }
     }else {
       System.out.println("F");
     }
   }
 
  }
}

Compiler output:
Main.java:20: error: bad operand types for binary operator '<'
    }else if( 65 <= sum < 80){ 
                        ^
  first type:  boolean
  second type: int
Main.java:22: error: bad operand types for binary operator '<'
     }else if( 50 <= sum < 65){ 
                         ^
  first type:  boolean
  second type: int
Main.java:24: error: bad operand types for binary operator '<'
     }else if( 30 <= sum < 50){
                         ^
  first type:  boolean
  second type: int
3 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
class Main{
  public static void main(String args[]) throws IOException{
   int m,f,r,sum;
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   String line = br.readLine(); 
   String[] token = line.split(" ");

   while(true){
    String line = br.readLine(); 
    String[] token = line.split(" ");
    m = Integer.parseInt(token[0]);      
    f = Integer.parseInt(token[1]);
    r = Integer.parseInt(token[2]);
    if(m == -1 && f == -1 && r == -1)break;
    
   }
 
  }
}

Compiler output:
Main.java:13: error: variable line is already defined in method main(String[])
    String line = br.readLine(); 
           ^
Main.java:14: error: variable token is already defined in method main(String[])
    String[] token = line.split(" ");
             ^
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
class Main{
  public static void main(String args[]) throws IOException{
   
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   
   while(true){
   String[] token = br.readLine().split(" ");
    int m = Integer.parseInt(token[0]);      
    int f = Integer.parseInt(token[1]);
    int r = Integer.parseInt(token[2]);
    if(m == -1 && f == -1 && r == -1) {break;}
    sum = m + f;     
    if(m+f >= 80){  
     System.out.println("A");   
    }else if( 65 <= m+f && m+f< 80){ 
     System.out.println("B");   
     }else if( 50 <= sum && sum< 65){ 
       System.out.println("C");
     }else if( 30 <= m+f&& m+f < 50){
       if(r>=50){
        System.out.println("C");   
       }else{
         System.out.println("D");
       }
     }else if(m==-1||f == -1){
       System.out.println("F");
     }else if(m+f<30){
       System.out.println("F");
     }else{
       System.out.println("F");
     }

   }
 
  }
}

Compiler output:
Main.java:16: error: cannot find symbol
    sum = m + f;     
    ^
  symbol:   variable sum
  location: class Main
Main.java:21: error: cannot find symbol
     }else if( 50 <= sum && sum< 65){ 
                     ^
  symbol:   variable sum
  location: class Main
Main.java:21: error: cannot find symbol
     }else if( 50 <= sum && sum< 65){ 
                            ^
  symbol:   variable sum
  location: class Main
3 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
class Main{
  public static void main(String args[]) throws IOException{
   
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   
   while(true){
   String[] token = br.readLine().split(" ");
    int m = Integer.parseInt(token[0]);      
    int f = Integer.parseInt(token[1]);
    int r = Integer.parseInt(token[2]);
    if(m == -1 && f == -1 && r == -1) {break;}
       
    if(m+f >= 80){  
     System.out.println("A");   
    }else if( 65 <= m+f && m+f< 80){ 
     System.out.println("B");   
     }else if( 50 <= sum && sum< 65){ 
       System.out.println("C");
     }else if( 30 <= m+f&& m+f < 50){
       if(r>=50){
        System.out.println("C");   
       }else{
         System.out.println("D");
       }
     }else if(m==-1||f == -1){
       System.out.println("F");
     }else if(m+f<30){
       System.out.println("F");
     }else{
       System.out.println("F");
     }

   }
 
  }
}

Compiler output:
Main.java:21: error: cannot find symbol
     }else if( 50 <= sum && sum< 65){ 
                     ^
  symbol:   variable sum
  location: class Main
Main.java:21: error: cannot find symbol
     }else if( 50 <= sum && sum< 65){ 
                            ^
  symbol:   variable sum
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

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

        int m;
        int f;
        int r;

        while(true){

        	m = scan.nextInt();
        	f = scan.nextInt();
        	r = scan.nextInt();
        	int sum = m+f;

        	
        	if(m == -1 || f == -1){
        		System.out.println("F");
        	}else if(sum < 30 ){
        		System.out.println("F");
        	}
        	else if(sum >= 80){
        		System.out.println("A");
        	}
        	else if(sum >= 65 && sum < 80 ){
        		System.out.println("B");
        	}
        	else if(sum >= 50 && sum < 65 && r == -1){
        		System.out.println("C");
        	}
        	else if(sum >= 30 && sum < 50 && r >= 50){
        		System.out.println("C");
        	}
        	else if(sum >= 30 && sum < 50 && r < 50){
        		System.out.println("D");
        	}
        	else if(sum >= 30 && sum < 50 && m == 0 && r r < 50){
        		System.out.println("D");
        	}
        	else if(sum >= 30 && sum < 50 && f == 0 && r r < 50){
        		System.out.println("D");
        	}
        	else if( m < 0 &&  f <= 0 && r == -1){
        		break;
        	}
        }

     }
}

Compiler output:
Main.java:39: error: ')' expected
        	else if(sum >= 30 && sum < 50 && m == 0 && r r < 50){
        	                                            ^
Main.java:39: error: illegal start of type
        	else if(sum >= 30 && sum < 50 && m == 0 && r r < 50){
        	                                                 ^
Main.java:39: error: not a statement
        	else if(sum >= 30 && sum < 50 && m == 0 && r r < 50){
        	                                               ^
Main.java:42: error: ')' expected
        	else if(sum >= 30 && sum < 50 && f == 0 && r r < 50){
        	                                            ^
Main.java:42: error: illegal start of type
        	else if(sum >= 30 && sum < 50 && f == 0 && r r < 50){
        	                                                 ^
Main.java:42: error: not a statement
        	else if(sum >= 30 && sum < 50 && f == 0 && r r < 50){
        	                                               ^
Main.java:42: error: 'else' without 'if'
        	else if(sum >= 30 && sum < 50 && f == 0 && r r < 50){
        	^
Main.java:45: error: 'else' without 'if'
        	else if( m < 0 &&  f <= 0 && r == -1){
        	^
8 errors
Language: Java

import java.util.*;

public class Grading2{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    while(true){
      int m = scanner.nextInt();
      int f = scanner.nextInt();
      int r = scanner.nextInt();
      if(m == -1 && f == -1 && r == -1) break;
      else if(m + f >= 80) System.out.println("A");
      else if(m + f >= 65) System.out.println("B");
      else if(m + f >= 50) System.out.println("C");
      else if(m + f >= 30){
        if(r < 50) System.out.println("D");
        else System.out.println("C");
      }
      else System.out.println("F");
    }
  }
}

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

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;

public class Main{

    static StringBuilder sb;

    public static void main(String[] args) {
	try {
	    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    List<String> lines = new ArrayList<String>();

	    for (String line = br.readLine(); line != null; line = br.readLine()) {
		lines.add(line);
	    }
	    br.close();

	    //lines.add("3 4");
	    //lines.add("1 2 0 1");
	    //lines.add("0 3 0 1");
	    //lines.add("4 1 1 0");
	    //lines.add("1");
	    //lines.add("2");
	    //lines.add("3");
	    //lines.add("0");

	    for (int i = 0; i < lines.size(); i++) {
		Integer m = Integer.parseInt(lines.get(i).split(" ")[0]);
		Integer f = Integer.parseInt(lines.get(i).split(" ")[1]);
		Integer r = Integer.parseInt(lines.get(i).split(" ")[2]);

		if (m == -1 || f == -1) {
		    System.out.println("F");
		} else if (m+f => 80) {
		    System.out.println("A");
		} else if (65 =< m+f && m+f < 80) {
		    System.out.println("B");
		} else if (50 =< m+f && m+f < 65) {
		    System.out.println("C");
		} else if (30 =< m+f && m+f < 50) {
		    if (r != -1 && r => 50) {
			System.out.println("C");
		    } else {
			System.out.println("D");
		    }
		} else {
		    System.out.println("F");
		}
	    }

	    System.exit(0);

	} catch (Exception e) {
	    System.out.println(e.getMessage());
	    System.out.println(Arrays.toString(e.getStackTrace()));
	    System.exit(0);
	}
    }
}

Compiler output:
Main.java:39: error: illegal start of expression
		} else if (m+f => 80) {
		                ^
Main.java:41: error: > or ',' expected
		} else if (65 =< m+f && m+f < 80) {
		                  ^
Main.java:43: error: > or ',' expected
		} else if (50 =< m+f && m+f < 65) {
		                  ^
Main.java:45: error: > or ',' expected
		} else if (30 =< m+f && m+f < 50) {
		                  ^
Main.java:46: error: illegal start of expression
		    if (r != -1 && r => 50) {
		                      ^
5 errors
Language: Java

import java.util.ArrayList;
import java.util.Scanner;
 
public class main {
    public static void main(String[] args) {
        int i, m, f, r, gou, flg = 0, cnt = 0;
	String seiseki;
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> mid = new ArrayList<Integer>(); //??????????¨?????????°??¨
	ArrayList<Integer> fin = new ArrayList<Integer>(); //???????????????????????°??¨
	ArrayList<Integer> rit = new ArrayList<Integer>(); //???????¨?????????°??¨
	ArrayList<Character> sei = new ArrayList<Character>(); //????????¨

	//??\?????????
	for(i = 0; flg == 0; i++){
       	    m = sc.nextInt();
       	    mid.add(new Integer(m));
       	    f = sc.nextInt();
	    fin.add(new Integer(f));
       	    r = sc.nextInt();
       	    rit.add(new Integer(r));
	    cnt++;
	    if(m == -1 && f == -1 && r == -1)
		break;
        }
	//??????????????????
        for(i = 0; cnt != i; i++){
	    if(fin.get(new Integer(i)) == -1 || mid.get(new Integer(i)) == -1)
		sei.add('F');
	    gou = fin.get(new Integer(i)) + mid.get(new Integer(i));
	    if(gou >= 80)
		sei.add('A');
	    else if(gou >= 65)
		sei.add('B');
	    else if(gou >= 50 || rit.get(new Integer(i)) >= 50)
		sei.add('C');
	    else if(gou >= 30)
		sei.add('D');
	    else
		sei.add('F');
	}
	for(i = 0; cnt - 1 != i; i++){
	    System.out.println(sei.get(new Integer(i)));
	}
    }
}

Compiler output:
Main.java:4: error: class main is public, should be declared in a file named main.java
public class main {
       ^
Main.java:17: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
       	    mid.add(new Integer(m));
       	            ^
Main.java:19: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	    fin.add(new Integer(f));
	            ^
Main.java:21: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
       	    rit.add(new Integer(r));
       	            ^
Main.java:28: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	    if(fin.get(new Integer(i)) == -1 || mid.get(new Integer(i)) == -1)
	               ^
Main.java:28: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	    if(fin.get(new Integer(i)) == -1 || mid.get(new Integer(i)) == -1)
	                                                ^
Main.java:30: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	    gou = fin.get(new Integer(i)) + mid.get(new Integer(i));
	                  ^
Main.java:30: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	    gou = fin.get(new Integer(i)) + mid.get(new Integer(i));
	                                            ^
Main.java:35: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	    else if(gou >= 50 || rit.get(new Integer(i)) >= 50)
	                                 ^
Main.java:43: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	    System.out.println(sei.get(new Integer(i)));
	                               ^
1 error
9 warnings
Language: Java

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

public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		ArrayList<String> list = new ArrayList<String>();
		
		//-1 -1 -1?????\?????????????????§??°?????????
		while(true) {
			
			//list???????´???????
			list.add(sc.nextLine());
			if(list.get(list.size() - 1).equals("-1 -1 -1")) {
				break;
			}
		}
		
		//?????±???int???????????????2?¬??????????????§?????????????
		int [][] data = new int[list.size() - 1][3];
		for(int i = 0; i < list.size() - 1; i++) {
			String s = list.get(i);
			String [] ary = s.split(" ");
			for(int j = 0; j < ary.length; j++) {
				data[i][j] = Integer.parseInt(ary[j]);
			}
		}
		
		//???????????¨?????????
		for(int i = 0; i < data.length; i++) {
			int sum = 0;
			for(int j = 0; j < data[i].length - 1; j++) {
				sum += data[i][j];
			}
			if(sum >= 80) {
				System.out.println("A");
			}else if(sum >= 65) {
				System.out.println("B");
			}else if(sum >= 50) {
				System.out.println("C");
			}else if(sum >= 30){
				System.out.println("D");
			}else {
				System.out.println("F");
			}
		}
	}

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

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

public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		ArrayList<String> list = new ArrayList<String>();
		
		//-1 -1 -1?????\?????????????????§??°?????????
		while(true) {
			
			//list???????´???????
			list.add(sc.nextLine());
			if(list.get(list.size() - 1).equals("-1 -1 -1")) {
				break;
			}
		}
		
		//?????±???int???????????????2?¬??????????????§?????????????
		int [][] data = new int[list.size() - 1][3];
		for(int i = 0; i < list.size() - 1; i++) {
			String s = list.get(i);
			String [] ary = s.split(" ");
			for(int j = 0; j < ary.length; j++) {
				data[i][j] = Integer.parseInt(ary[j]);
			}
		}
		
		//???????????¨?????????
		for(int i = 0; i < data.length; i++) {
			int sum = 0;
			for(int j = 0; j < data[i].length - 1; j++) {
				sum += data[i][j];
			}
			if(data[i][0] == -1 || data[i][1] == -1) {
				System.out.println("F");
			}else if(sum >= 80) {
				System.out.println("A");
			}else if(sum >= 65) {
				System.out.println("B");
			}else if(sum >= 50) {
				System.out.println("C");
			}else if(sum >= 30){
				if(data[i][2] >= 50){
					System.out.println("C");
				}else {
					System.out.println("D");
				}
			}else {
				System.out.println("F");
			}
		}
	}

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

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		// 3?????????????????°??\???
		while (true) {
			String input_line = input.readLine();
			String[] All_test_score = input_line.split(" ");
			// ??????????????????
			int interm_test_m = Integer.parseInt(All_test_score[0]);
			// ??????????????????
			int end_test_f = Integer.parseInt(All_test_score[1]);
			// ???????????????
			int return_test_r = Integer.parseInt(All_test_score[2]);
			// ???????????????????????????????¨?
			if(interm_test_m==-1&& end_test_f==-1&&return_test_r==-1){
				break;
			}
			int total_m_f = interm_test_m + end_test_f;
			if (total_m_f >= 80) {
				System.out.println("A");
			} else if (total_m_f >= 65 && total_m_f < 80) {
				System.out.println("B");
			} else if (total_m_f >= 50 && total_m_f < 65 || return_test_r >= 50) {
				System.out.println("C");
			} else if (total_m_f >= 30 && total_m_f < 50) {
				System.out.println("D");
			} else {
				System.out.println("F");
			}
		}

	}
}

Compiler output:
Main.java:2: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		                           ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		                                              ^
  symbol:   class InputStreamReader
  location: class Main
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));
    String str = br.readLine();
                    
                       while(str != null){
                       String[] strs = str.split("\\s");
                       int m = Integer.parseInt(strs[0]);
                       int f = Integer.parseInt(strs[1]);
                       int r = Integer.parseInt(strs[2]);
                        
                       if(m==-1 && f ==-1 && r==-1){
                           break;
                       }
                    
                       if(m+f < 30 || m==-1 || f==-1){
                           System.out.println("F");
                       }else if(m+f < 50){
                           if(r >= 50){
                               System.out.println("C");
                            }else{
                               System.out.println("D");
                           }
                       }else if(m+f < 65){
                           System.out.println("C");
                       }else if(m+f < 80){
                           System.out.println("B");
                       }else{
                           System.out.println("A");
                       }
                       str = br.readLine(); 

                        }
                    
                   br.close();

  }

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Main
{
	public static void main(String[] args)throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//		?????????3?¨?????????????????????????
		ArrayList<Integer> mid = new ArrayList<Integer>();
		ArrayList<Integer> fin = new ArrayList<Integer>();
		ArrayList<Integer> re = new ArrayList<Integer>();
		String[] strs = new String[3];
		int[] buf = new int[3];
		while(true)//?????????-1?????\?????????????????§?????????
		{
			strs = br.readLine().split(" ");
			for(int i=0; i<3; i++)	buf[i] = Integer.parseInt(strs[i]);
			if(buf[0]+buf[1]+buf[2]==-3) break;
			mid.add(buf[0]);
			fin.add(buf[1]);
			re.add(buf[2]);
		}
		
		int stu = mid.size();
		int m, f, r, mix;
		for(int i=0; i<stu; i++)
		{
			m = mid.get(i);
			f = fin.get(i);
			r = re.get(i);
			mix = m + f;
//		??????????¨??????????????¨????????????????????¬????????????´???????????? F??? 
			if(mix==-2 ||(mix>=0 &&mix<30)) 
			{
				System.out.println("F");
				continue;
			}
//		??????????¨???¨??????????¨????????¨??????°??? 80 ??\???????????°????????? A ???
			else if(mix>=80&&)
			{
				System.out.println("A");
				continue;
			}
//		??????????¨???¨??????????¨????????¨??????°??? 65 ??\??? 80 ??????????????°????????? B???
			else if(mix>=65&&mix<80)
			{
				System.out.println("B");
				continue;
			}
//		??????????¨???¨??????????¨????????¨??????°??? 50 ??\??? 65 ??????????????°????????? C???
			else if((mix>=50&&mix<65)||(mix>=30&&mix<50&&r>=50))
			{
				System.out.println("C");
				continue;
			}
//		??????????¨???¨??????????¨????????¨??????°??? 30 ??\??? 50 ??????????????°????????? D???
			else if(mix>=30&&mix<50&&r<50)
			{
				System.out.println("D");
				continue;
			}
		}	
	}
}

Compiler output:
Main.java:41: error: illegal start of expression
			else if(mix>=80&&)
			                 ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Main
	public static void main(String[] args)throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//		?????????3?¨?????????????????????????
		ArrayList<Integer> mid = new ArrayList<Integer>();
		ArrayList<Integer> fin = new ArrayList<Integer>();
		ArrayList<Integer> re = new ArrayList<Integer>();
		String[] strs = new String[3];
		int[] buf = new int[3];
		while(true)//?????????-1?????\?????????????????§?????????
		{
			strs = br.readLine().split(" ");
			for(int i=0; i<3; i++)	buf[i] = Integer.parseInt(strs[i]);
			if(buf[0]+buf[1]+buf[2]==-3) break;
			mid.add(buf[0]);
			fin.add(buf[1]);
			re.add(buf[2]);
		}
		
		int stu = mid.size();
		int m, f, r, mix;
		for(int i=0; i<stu; i++)
		{
			m = mid.get(i);
			f = fin.get(i);
			r = re.get(i);
			mix = m + f;
//		??????????¨??????????????¨????????????????????¬????????????´???????????? F??? 
			if(m==-1 || f==-1 ||(mix>=0 &&mix<30)) 
			{
				System.out.println("F");
				continue;
			}
//		??????????¨???¨??????????¨????????¨??????°??? 80 ??\???????????°????????? A ???
			else if(mix>=80)
			{
				System.out.println("A");
				continue;
			}
//		??????????¨???¨??????????¨????????¨??????°??? 65 ??\??? 80 ??????????????°????????? B???
			else if(mix>=65&&mix<80)
			{
				System.out.println("B");
				continue;
			}
//		??????????¨???¨??????????¨????????¨??????°??? 50 ??\??? 65 ??????????????°????????? C???
			else if((mix>=50&&mix<65)||(mix>=30&&mix<50&&r>=50))
			{
				System.out.println("C");
				continue;
			}
//		??????????¨???¨??????????¨????????¨??????°??? 30 ??\??? 50 ??????????????°????????? D???
			else if(mix>=30&&mix<50&&r<50)
			{
				System.out.println("D");
				continue;
			}
		}	
	}
}

Compiler output:
Main.java:5: error: '{' expected
public class 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:65: error: class, interface, enum, or record expected
}
^
3 errors