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

import java.util.Scanner; 
public class Grading { 
	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; 
			
			if(m == -1 || f == -1) { 
				System.out.println('F'); 
				continue; 
			} 
			if(m + f >= 80) { 
				System.out.println('A'); 
				continue; 
			} 
			if(m + f >= 65) { 
				System.out.println('B'); 
				continue; 
			} 
			if(m + f >= 50) { 
				System.out.println('C'); 
				continue; 
			} 
			if(m + f >= 30) { 
				if(r >= 50) System.out.println('C'); 
				else System.out.println('D'); 
				continue; 
			}
			
			System.out.println('F'); 
		} 
	} 
}



Compiler output:
Main.java:2: 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){
        try(Scanner sc = new Scanner(System.in)){
            while(true){
                int m = sc.nextInt(), f = sc.nextInt(), r = sc.nextInt();
                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){
                    System.out.println("C");
                }else if(m + f >= 30){
                    if(r >= 50){
                        System.out.println("C");
                    }else{
                        System.out.println("D");
                    }
                }else{
                    System.out.println("F");
                }
            }
        }
    }
}

Compile Error Logs:

ステータス
Judge: 4/4	JAVA	CPU: 00:06 sec	Memory: 26052 KB	Length: 676 B	2017-07-14 20:43
テストケースの判定結果
Case #	Verdict	CPU Time	Memory	In	Out	Case Name
Case #1	: Accepted	00:05	25600	34	6	testcase_00
Case #2	: Accepted	00:05	25888	63	12	testcase_01
Case #3	: Accepted	00:06	25876	54	10	testcase_02
Case #4	: Accepted	00:06	26052	401	90	testcase_03

< prev |		/		| next >	 		
 
Judge Input #  ( | )		Judge Output #  ( | )



Compiler output:
Main.java:33: error: class, interface, enum, or record expected
Compile Error Logs:
^
Main.java:38: error: illegal character: '#'
Case #	Verdict	CPU Time	Memory	In	Out	Case Name
     ^
Main.java:39: error: illegal character: '#'
Case #1	: Accepted	00:05	25600	34	6	testcase_00
     ^
Main.java:40: error: illegal character: '#'
Case #2	: Accepted	00:05	25888	63	12	testcase_01
     ^
Main.java:41: error: illegal character: '#'
Case #3	: Accepted	00:06	25876	54	10	testcase_02
     ^
Main.java:42: error: illegal character: '#'
Case #4	: Accepted	00:06	26052	401	90	testcase_03
     ^
Main.java:46: error: illegal character: '#'
Judge Input #  ( | )		Judge Output #  ( | )
            ^
Main.java:46: error: illegal character: '#'
Judge Input #  ( | )		Judge Output #  ( | )
                    		             ^
8 errors
Language: Java

import java.util.Scanner;
 
class Main {
    Scanner sc = new Scanner(System.in);
 
     
    public void run() {
        while(true){
            int m=sc.nextInt(),f=sc.nextInt(),r=sc.nextInt();
            if(m==-1 && f==-1 && r==-1){
                break;
            }
            if(m!=-1 && f!=-1){
                if(m+f>=80){
                    ln("A");
                }else if(m+f >=65){
                    ln("B");
                }else if(m+f >=50){
                    ln("C");
                }else if(m+f >=30){
                    if(r>=50){
                        ln("C");
                    }else{
                        ln("D");
                    }
                }else{
                    ln("F");
                }
            }else{
                ln("F");
            }
        }
    }
 
    public static void main(String[] args) {
        new Main().run();
    }
 
    public static void pr(Object o) {
        System.out.print(o);
    }
 
    public static void ln(Object o) {
        System.out.println(o);
    }
 
    public static void ln() {
        System.out.println();
    }
}

Compile Error Logs:

ステータス
Judge:		CPU: sec	Memory: KB	Length: B	
テストケースの判定結果
Case #	Verdict	CPU Time	Memory	In	Out	Case Name
< prev |		/		| next >	 		
 
Judge Input #  ( | )		Judge Output #  ( | )



Compiler output:
Main.java:52: error: class, interface, enum, or record expected
Compile Error Logs:
^
Main.java:57: error: illegal character: '#'
Case #	Verdict	CPU Time	Memory	In	Out	Case Name
     ^
Main.java:60: error: illegal character: '#'
Judge Input #  ( | )		Judge Output #  ( | )
            ^
Main.java:60: error: illegal character: '#'
Judge Input #  ( | )		Judge Output #  ( | )
                    		             ^
4 errors
Language: Java

import java.util.Scanner;

public class grade{
    public static void main(String[] args){
        int m,f,r;
        Scanner s = new Scanner(System.in);
        while(true){
            m = s.nextInt();
            f = s.nextInt();
            r = s.nextInt();
            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)System.out.println("C");
            else if(m+f>=30){
                if(r>=50)System.out.println("C");
                else System.out.println("D");
            }
            else System.out.println("F");


        }
    }
}


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

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int m = sc.nextInt();
		int f = sc.nextInt();
		int r = sc.nextInt();
		do{
		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){
			System.out.println("C");
		}else if(m + f >= 30){
			if (r >= 50){
				System.out.println("C");
			}else{
				System.out.println("D");
			}
		}else{
				System.out.println("F");
		}
		} while(!(m == -1 && f == -1 && r == -1);

	}
}


Compiler output:
Main.java:27: error: ')' expected
		} while(!(m == -1 && f == -1 && r == -1);
		                                        ^
1 error
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int m = sc.nextInt();
		int f = sc.nextInt();
		int r = sc.nextInt();
		if (m == -1 && f == -1 && r == -1){
			
		}else 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){
			System.out.println("C");
		}else if(m + f >= 30){
			if (r >= 50){
				System.out.println("C");
			}else{
				System.out.println("D");
			}
		}else{
				System.out.println("F");
	}
}


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

import java.util.Scanner;

public class Grading{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a,b,c,sum;
		while(true){
			a = sc.nextInt();
			b = sc.nextInt();
			c = sc.nextInt();
			if(a==-1&&b==-1&&c==-1)break;
			if(a==-1||b==-1)System.out.println("F");
			else{
				sum = a+b;
				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(c>=50)System.out.println("D");
					else System.out.println("C");
				}else{
					System.out.println("F");
				}
			}
		}
	}
}



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

import java.util.Scanner;

public class Grading{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(true){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			if(a==-1&&b==-1&&c==-1)break;
			if(a==-1||b==-1)System.out.println("F");
			else{
				int sum = a+b;
				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(c>=50)System.out.println("D");
					else System.out.println("C");
				}else{
					System.out.println("F");
				}
			}
		}
	}
}



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

import java.util.Scanner;

public class Grading{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(true){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			int sum = a+b;
			if(a==-1&&b==-1&&c==-1)break;
			if(a==-1||b==-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(c>=50)System.out.println("D");
					else System.out.println("C");
				}else{
					System.out.println("F");
				}
			}
		}
	}
}



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

public class Main {
  public static void main(String[] args) throws NumberFormatException, IOException {
	  System.out.println("please input the chang:");
	  BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	  int a = Integer.parseInt(reader.readLine()); 
	  System.out.println("please input the kuan:");
	  BufferedReader reader2 = new BufferedReader(new InputStreamReader(System.in));
	  int b = Integer.parseInt(reader2.readLine());
	  for(int i = 1;i<=b;i++) {
		  for(int j =1;j<=a;j++) {
		   if(i==1 || i == b) {
			  System.out.print("#");
		   }else if(j==1 || j == a) {
			   System.out.print("#");
		   }else {
			   System.out.print(" ");
		   }
		  }
		  System.out.println();
	  }
  }
}


Compiler output:
Main.java:2: error: cannot find symbol
  public static void main(String[] args) throws NumberFormatException, IOException {
                                                                       ^
  symbol:   class IOException
  location: class Main
Main.java:4: error: cannot find symbol
	  BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	  ^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
	  BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	                              ^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
	  BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	                                                 ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:7: error: cannot find symbol
	  BufferedReader reader2 = new BufferedReader(new InputStreamReader(System.in));
	  ^
  symbol:   class BufferedReader
  location: class Main
Main.java:7: error: cannot find symbol
	  BufferedReader reader2 = new BufferedReader(new InputStreamReader(System.in));
	                               ^
  symbol:   class BufferedReader
  location: class Main
Main.java:7: error: cannot find symbol
	  BufferedReader reader2 = new BufferedReader(new InputStreamReader(System.in));
	                                                  ^
  symbol:   class InputStreamReader
  location: class Main
7 errors
Language: Java

import java.util.Scanner;

public class Grading{
    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;
            }

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


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

import java.util.Scanner;

public class Main {
    Scanner sc = new Scanner(System.in);
    int m = sc.nextInt();
    int f = sc.nextInt();
    int r = sc.nextInt();
    while(true)

    {
        if (m == -1 && f == -1 && r == -1) {
            break;
        } else 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 >= 50) {
                System.out.println("C");
            } else {
                System.out.println("D");
            }
        } else if (m + f < 30) {
            System.out.println("F");
        }
    }
}



Compiler output:
Main.java:8: error: illegal start of type
    while(true)
    ^
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 m = sc.nextInt();
            int f = sc.nextInt();
            int r = sc.nextInt();

            if (m == -1 && f == -1 && r == -1) {
                break;
            }

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



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

import java.util.Scanner;
public class Main{
    public static void main(String[]argc){
        Scanner sc = new Scanner(System.in);
        for(int k=0;;k++){
            int m = sc.nextInt();
            int f = sc.nextInt();
            int r = sc.nextInt();
            if(m==-1&&f==-1&&r==-1){
                break;
            }else if(m==-1||f==-1){
                System.out.println("F");
            }else if(m+f>=80){
                System.out.println("A");
            }else if(m+f>=65&&m+f<80){
                System.out.println("B");
            }else if(m+f>=50&&m+f<65){
                System.out.println("C");
            }else if(m+f>=30&&m+f<50){
                if(r>=50){
                    System.out.println("C");
                import java.util.Scanner;
}else{
                    System.out.println("D"); 
                }                   
            }else if(m+r<30){
                System.out.println("F");
            }
        }
     }
}



Compiler output:
Main.java:22: error: illegal start of expression
                import java.util.Scanner;
                ^
Main.java:22: error: not a statement
                import java.util.Scanner;
                                ^
2 errors
Language: Java

import java.util.Scanner  ;
public class Grading{
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;
}
if ( (m + f)>=80 ){
    System.out.println("A");
}else{
     if ((m + f)< 80 && (m + f)>=65){
    System.out.println("B");
     }
     if ((m + f)< 65 && (m + f)>=50){
    System.out.println("C");
     }
     if ((m + f)< 50 && (m + f)>=30){
         if(r>=50){
    System.out.println("C");
         }else{
    System.out.println("D");
         }
        }
     if ( (m + f)<30 ){
    System.out.println("F");
     }
    
    
}
if(m == -1 || f == -1){
    System.out.println("F");
}
}
}
}


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

import java.util.Scanner;
public class main{
	  public static void judge(int m,int f,int r) {
		 if(m==-1 && f==-1 && r==-1) {
			  System.exit(0);
		  }
		  if(m+f>=80) {
		  System.out.println();
		  System.out.println("A");
	      }
		  if(m+f<80 && m+f>65) {
		  System.out.println();
		  System.out.println("B");
	      }
		  if(m+f<65 && m+f>=50) {
		  System.out.println();
		  System.out.println("C");		 
	      }
		  if(m+f<50 && m+f>=30) {
		  System.out.println();
		  System.out.println("D");
		  }else if(r>=50) {
		  System.out.println();
		  System.out.println("C");
		  }
		  if(m+f<30) {
		  System.out.println();
		  System.out.println("F");
		  }
		 
	}
		  
	  public static void main(String[] args) {
		  Scanner x = new Scanner(System.in);
		  for(;;) {
		  int data [] = new int[3];
		  for(int i = 0;i<3;i++) {
				data[i]=x.nextInt();
			}
		 
		 judge(data[0],data[1],data[2]);
		  }
	  }
	}


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

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		for(int i=0;i<50;i++){
			int m = sc.nextInt();
			int f = sc.nextInt();
			int r = sc.nextInt();
			if(m==-1 && f==-1 && r==-1){
				break;
			}
			if(m==-1 || f==-1){
				System.out.println("F");
			}
			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("C");
				}else{
					System.out.println("D");
				}
			}else{
				System.out.println("F");
			}
		}
	}
}


Compiler output:
Main.java:16: error: illegal start of expression
			if(m+f=>80){
			       ^
Main.java:18: error: illegal start of expression
			}else if(m+f=>65){
			             ^
Main.java:20: error: illegal start of expression
			}else if(m+f=>50){
			             ^
Main.java:22: error: illegal start of expression
			}else if(m+f=>30){
			             ^
Main.java:23: error: illegal start of expression
				if(r=>50){
				     ^
5 errors
Language: Java

import java.util.Scanner;

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;
            }else if(m==-1 || f==-1){
                System.out.println("F\n");
            }else if(80<=(m+f)){
                System.out.println("A\n");
            }else if(65<=(m+f)){
                System.out.println("B\n");
            }else if(50<=(m+f)){
                System.out.println("C\n");
            }else if(30<=(m+f)){
                if (50 <= r) {
                    System.out.println("C\n");
                } else {
                    System.out.println("D\n");
                }
            }else if((m+f)<30){
                System.out.println("F\n");
            }
        }
    }

    
    
}



Compiler output:
Main.java:6: error: ';' expected
        While(true){
                   ^
1 error
Language: Java

import java.util.Scanner;

public class Main27 {
    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;
            }else if(m==-1 || f==-1){
                System.out.println("F\n");
            }else if(80<=(m+f)){
                System.out.println("A\n");
            }else if(65<=(m+f)){
                System.out.println("B\n");
            }else if(50<=(m+f)){
                System.out.println("C\n");
            }else if(30<=(m+f)){
                if (50 <= r) {
                    System.out.println("C\n");
                } else {
                    System.out.println("D\n");
                }
            }else if((m+f)<30){
                System.out.println("F\n");
            }
        }
    }



}



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

import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a,b,c,sum;
		while(true){
			a = sc.nextInt();
			b = sc.nextInt();
			c = sc.nextInt();
			if(a==-1&&b==-1&&c==-1)break;
			else if(a==-1||b==-1)System.out.println("F");
			else{
				sum = a+b;
				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(c>=50)System.out.println("D");
					else System.out.println("C");
				}else{
					System.out.println("F");
				}
			}
		}
　　　　　sc.close();
	}
}



Compiler output:
Main.java:26: error: illegal character: '\u3000'
?????sc.close();
^
Main.java:26: error: illegal character: '\u3000'
?????sc.close();
 ^
Main.java:26: error: illegal character: '\u3000'
?????sc.close();
  ^
Main.java:26: error: illegal character: '\u3000'
?????sc.close();
   ^
Main.java:26: error: illegal character: '\u3000'
?????sc.close();
    ^
5 errors
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a,b,c,sum;
	        for(int I=0;i<50;i++){
			a = sc.nextInt();
			b = sc.nextInt();
			c = sc.nextInt();
			if(a==-1&&b==-1&&c==-1)break;
			else if(a==-1||b==-1)System.out.println("F");
			else{
				sum = a+b;
				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(c>=50)System.out.println("D");
					else System.out.println("C");
				}else{
					System.out.println("F");
				}
			}
		}
	}
}


Compiler output:
Main.java:7: error: cannot find symbol
	        for(int I=0;i<50;i++){
	                    ^
  symbol:   variable i
  location: class Main
Main.java:7: error: cannot find symbol
	        for(int I=0;i<50;i++){
	                         ^
  symbol:   variable i
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class Grading{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a,b,c,sum;
		while(true){
			a = sc.nextInt();
			b = sc.nextInt();
			c = sc.nextInt();
			if(a==-1&&b==-1&&c==-1)break;
			else if(a==-1||b==-1)System.out.println("F");
			else{
				sum = a+b;
				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(c>=50)System.out.println("D");
					else System.out.println("C");
				}else{
					System.out.println("F");
				}
			}
		}
	}
}



Compiler output:
Main.java:3: 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 grading{ 
    public static void main(String[] args){ 
        Scanner sc = new Scanner(System.in); 

        while(true){ 
            int a = sc.nextInt(); 
            int b = sc.nextInt(); 
            int c = sc.nextInt(); 
            int sum = a + b; 
            if(a == -1 && b == -1 && c== -1){ 
                break; 
            }else if(a == -1 || b == -1){ 
                System.out.println("F"); 
            }else{ 
                if(sum<30){ 
                    System.out.println("F"); 
                }else if(sum<50){ 
                    if(c<50){ 
                        System.out.println("D"); 
                    }else{ 
                        System.out.println("C"); 
                    } 
                }else if(sum<65){ 
                    System.out.println("C"); 
                }else if(sum<80){ 
                    System.out.println("B"); 
                }else{ 
                    System.out.println("A"); 
                } 
            } 
        } 
        sc.close(); 
    } 
}


Compiler output:
Main.java:3: error: class grading is public, should be declared in a file named grading.java
public class grading{ 
       ^
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 m = sc.nextInt();
            int f = sc.nextInt();
            int r = sc.nextInt();

            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 || r>=50){
                System.out.println("C");
            }else if(m+f >30){
                System.out.println("D");
            }else{
                SYstem.out.println("F");
            }

        }
    }
}


Compiler output:
Main.java:25: error: package SYstem does not exist
                SYstem.out.println("F");
                      ^
1 error
Language: Java


import java.util.Scanner;
public class Main {
    public static void  main(String[] args){
        Scanner sc = new Scanner(System.in);
        int m = sc.nextInt();
        int f = sc.nextInt();
        int r = sc.nextInt();

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

    }

}



Compiler output:
Main.java:13: error: break outside switch or loop
                break;
                ^
1 error
Language: Java


import java.util.Scanner;
public class Main {
    public static void  main(String[] args){
        Scanner sc = new Scanner(System.in);
        int m = sc.nextInt();
        int f = sc.nextInt();
        int r = sc.nextInt();

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



Compiler output:
Main.java:28: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int m,f,r,scoa;
        
        while(true){
            m = sc.nextInt();
            f = sc.nextInt();
            r = sc.nextInt();
            if(m==-1&&f==-1&&r==-1)break;
            scoa = m+f;
            if(m==-1||f==-1)System.out.println("F");
            else if (scoa>=80)System.out.println("A");
            else if (scoa>=65&&scao<80)System.out.println("B");
            else if (scoa>=50&&scao<65)System.out.println("C");
            else if (scoa>=30&&scao<50&&r>=50)System.out.println("C");
            else if (scoa>=30&&scao<50&&r<50)System.out.println("D");
            else if (scoa<=30)System.out.println("F");
            else System.out.println("E");
        }
        sc.close();
    }
}


Compiler output:
Main.java:15: error: cannot find symbol
            else if (scoa>=65&&scao<80)System.out.println("B");
                               ^
  symbol:   variable scao
  location: class Main
Main.java:16: error: cannot find symbol
            else if (scoa>=50&&scao<65)System.out.println("C");
                               ^
  symbol:   variable scao
  location: class Main
Main.java:17: error: cannot find symbol
            else if (scoa>=30&&scao<50&&r>=50)System.out.println("C");
                               ^
  symbol:   variable scao
  location: class Main
Main.java:18: error: cannot find symbol
            else if (scoa>=30&&scao<50&&r<50)System.out.println("D");
                               ^
  symbol:   variable scao
  location: class Main
4 errors
Language: Java

import java.util.Scanner;

public class Aim {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int m, f, r;
		int count = 0;
		int sum = 0;
		int[][] records = new int[50][3];
		for (int i = 0; true; i++) {
			m = sc.nextInt();
			f = sc.nextInt();
			r = sc.nextInt();
			if (m == -1 && f == -1 && r == -1) {
				break;
			}
			records[i][0] = m;
			records[i][1] = f;
			records[i][2] = r;
			count++;
		}
		for (int i = 0; i < count; i++) {
			if (records[i][0] != -1 || records[i][1] != -1) {
				sum = records[i][0] + records[i][1];
				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 (records[i][2] >= 50) {
						System.out.println("C");
					} else {
						System.out.println("D");
					}
				} else {
					System.out.println("F");
				}
			} else {
				System.out.println("F");
			}
		}
		sc.close();
	}
}


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

import java.util.*;

public class Main {


	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
		int m,f,r;
		while(true){
			m = scan.nextInt();
			f = scan.nextInt();
			r = scan.nextInt();
			if(m+f+r==-3) break;
			int s = m+f;
			if(m==-1||f==-1) {System.out.println("F"); continue;}
			if(s>=80) System.out.println("A");
			if(s>=65&&s<80) System.out.println("B");
			if(s>=50&&s<65) System.out.println("C");
			if(s>=30&&s<50){
				if(r>=50) System.out.println("C");
				else System.out.println("D");
			}
			if(s<30) System.out.println("F");
		}
	}

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

import java.util.Scanner;
public class Grading {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int m = scan.nextInt();
		int f = scan.nextInt();
		int r = scan.nextInt();
		while(m!=0||f!=0||r!=0){
			if(m+f<30 || m==-1 || f==-1)
				System.out.println("F");
			else 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)
				System.out.println("C");
			else if(m+f<50&&m+f>30&&r<50)
				System.out.println("D");
			else
				System.out.println("C");
			m = scan.nextInt();
			f = scan.nextInt();
			r = scan.nextInt();
		}
	}
}

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

#include<stdio.h>
int main()
{
    int m,f,r,sum=0,i;
    for(;scanf("%d%d%d",&m,&f,&r);)

    {
    if(m==-1 && f==-1 && r==-1)
    break;
    else if(m<=50 && f<=50 && r<=100)
       { sum=m+f;
        if(m==-1 || f==-1 || m+f<30)
            printf("F\n");
        else if(sum>=80)
            printf("A\n");
        else if(sum>=65 && sum<80)
            printf("B\n");
        else if(sum>=50 && sum<65)
            printf("C\n");
            else if(sum>=30 && sum<50 && r>=50)
            printf("C\n");
        else if(sum>=30 && sum<50)
            printf("D\n");
         }
    }
    return 0;



Compiler output:
main.c: In function 'main':
main.c:26:5: error: expected declaration or statement at end of input
   26 |     return 0;
      |     ^~~~~~
Language: C

#include<stdio.h>
int main()
{
    int m,f,r,sum=0,i;
    for(;scanf("%d%d%d",&m,&f,&r);)

    {
    if(m==-1 && f==-1 && r==-1)
    break;
    else if(m<=50 && f<=50 && r<=100)
       { sum=m+f;
        if(m==-1 || f==-1 || m+f<30)
            printf("F\n");
        else if(sum>=80)
            printf("A\n");
        else if(sum>=65 && sum<80)
            printf("B\n");
        else if(sum>=50 && sum<65)
            printf("C\n");
            else if(sum>=30 && sum<50 && r>=50)
            printf("C\n");
        else if(sum>=30 && sum<50)
            printf("D\n");
         }
    }
    return 0;




Compiler output:
main.c: In function 'main':
main.c:26:5: error: expected declaration or statement at end of input
   26 |     return 0;
      |     ^~~~~~
Language: C

#include <stdio.h>

using namespace std;

int main(){
	int m,f,r;
	char grade;
	while(true){
		scanf("%d %d %d",&m,&f,&r);
		if(m == -1 && f == -1 && r == -1) break;
		if(m == -1 || f == -1){
			grade = 'F';
		}else if(m+f >= 80){
			grade = 'A';
		}else if(m+f >= 65){
			grade = 'B';
		}else if(m+f >= 50){
			grade = 'C';
		}else if(m+f >= 30){
			grade = (r >= 50)? 'C':'D';
		}else{
			grade = 'F';
		}
		printf("%c\n",grade);
	}
}



Compiler output:
main.c:3:1: error: unknown type name 'using'
    3 | using namespace std;
      | ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    3 | using namespace std;
      |                 ^~~
main.c: In function 'main':
main.c:8:15: error: 'true' undeclared (first use in this function)
    8 |         while(true){
      |               ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:8:15: note: each undeclared identifier is reported only once for each function it appears in
    8 |         while(true){
      |               ^~~~
Language: C

#include<stdio.h>
 
int main()
{
 int m,f,r;

 for(;;){
         scanf("%d%d%d",&m,&f,&r);
         if(m==-1&&f==-1&&r==-1)break;
         if(m==-1&&f==-1)printf("F\n");
         if(m+f>=80)printf("A\n");
         if(80<m+f<=65)printf("B\n"); 
         if(65<m+f<=50)printf("C\n");
         if(50<m+f<=30)printf("D\n");
         if(50<m+f<=30&&r>=50)printf("C\n");
         else printf("E\n");

 return 0;
}
         



Compiler output:
main.c: In function 'main':
main.c:19:1: error: expected declaration or statement at end of input
   19 | }
      | ^
Language: C

#include<stdio.h>
 
int main()
{
 int m,f,r;

 for(;;){
         scanf("%d%d%d",&m,&f,&r);
         if(m==-1&&f==-1&&r==-1)break;
         if(m==-1||f==-1)printf("F\n");
         if(m+f>=80)printf("A\n");
         if(m+f>=65)printf("B\n"); 
         if(m+f>=50)printf("C\n");
         if(m+f>=30)printf("D\n");
         if(m+f>=30&&r>=50)printf("C\n");
         else(m+f<30)printf("F\n");

          }
 return 0;
}
         



Compiler output:
main.c: In function 'main':
main.c:16:22: error: expected ';' before 'printf'
   16 |          else(m+f<30)printf("F\n");
      |                      ^~~~~~
      |                      ;
Language: C

#include <stdio.h>
 
int main() {
  int m,f,r;
 
  for(int i=1;i>0;i++){
  scanf("%d %d %d",&m,&f,&r);
  if(m==-1 && f==-1 && r==-1){
    break;}
  if(m==-1 || f==-1){
    printf("F\n");}
  else{
    if(m+f>=80){
      printf("A\n");}
    else{
      if(m+f<80 && m+f>=65){
        printf("B\n");}
      else{
        if(m+f<65 && m+f>=50){
          printf("C\n");}
        else{
          if(m+f<50 && m+f>=30){
            if(r>=50){
              printf("C\n");}
            else{
              printf("D\n");}}
          else{
            if(m+f<=30){
              printf("F\n");}}}}}}
return0;
}


Compiler output:
main.c: In function 'main':
main.c:30:1: error: 'return0' undeclared (first use in this function)
   30 | return0;
      | ^~~~~~~
main.c:30:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:31:1: error: expected declaration or statement at end of input
   31 | }
      | ^
Language: C

#include <stdio.h>
int main(void){
    int n,i,j,k;
    int m,f,r;
    scanf("%d %d %d",&m,&f,&r);

    while (!((m==-1) && (f==-1) && (r==-1))){
        if ((m==-1) || (f==-1)){
        printf("%c\n",'F');
        }else if (m+f>=80){
            printf("%c\n",'A');
        }else if(m+f>=65){
            printf("%c\n",'B');
        }else if(m+f>=50){
            printf("%c\n",'C');
        }else if(m+f>=30){
            if (r>=50){
                printf("%c\n",'C');
            }else{
                printf("%c\n",'D');
            }
            }else{
                printf("%c\n",'F');
            }
        scanf("%d",&m);
        scanf("%d",&f);
        scanf("%d",&r);
        }

    return 0;
    }
}


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

#include <stdio.h>
int main(void){
    int n,i,j,k;
    int m,f,r;
 
    scanf("%d",&m);
    scanf("%d",&f);
    scanf("%d",&r);
    while (!((m==-1) && (f==-1) && (r==-1))){
        if ((m==-1) || (f==-1)){
        printf("%c\n",'F');
        }else if (m+f>=80){
            printf("%c\n",'A');
        }else if(m+f>=65){
            printf("%c\n",'B');
        }else if(m+f>=50){
            printf("%c\n",'C');
        }else if(m+f>=30){
            if (r>=50){
                printf("%c\n",'C');
            }else{
                printf("%c\n",'D');
            }
            }else{
                printf("%c\n",'F');
            }
        }

    return 0;
    }
}



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

#include<stdio.h>
int main(){
  int m,f,r,i;
  for(i=0;;i++){
    scanf("%d %d %d",&m,&f,&r);
    if(m==-1&&f==-1&&r==-1){
      break;
    }else if(m==-1||f==-1||m+f<30){
      printf('F');
    }else if(80<=m+f){
      printf('A');
    }else if(65<=m+f&&m+f<80){
      printf('B');
    }else if(50<=m+f&&m+F<65||r>=50){
      printf('C');
    }else if(30<=m+f&&m+f<50){
      printf('D');
    }
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:14: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    9 |       printf('F');
      |              ^~~
      |              |
      |              int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:11:14: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   11 |       printf('A');
      |              ^~~
      |              |
      |              int
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:13:14: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   13 |       printf('B');
      |              ^~~
      |              |
      |              int
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:14:25: error: 'F' undeclared (first use in this function)
   14 |     }else if(50<=m+f&&m+F<65||r>=50){
      |                         ^
main.c:14:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:14: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   15 |       printf('C');
      |              ^~~
      |              |
      |              int
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:17:14: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   17 |       printf('D');
      |              ^~~
      |              |
      |              int
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C

#include<stdio.h>
int main(){
  int m,f,r,i;
  for(i=0;;i++){
    scanf("%d %d %d",&m,&f,&r);
    if(m==-1&&f==-1&&r==-1){
      break;
    }else if(m==-1||f==-1||m+f<30){
      printf("F");
    }else if(80<=m+f){
      printf("A");
    }else if(65<=m+f&&m+f<80){
      printf("B");
    }else if(50<=m+f&&m+F<65||r>=50){
      printf("C");
    }else if(30<=m+f&&m+f<50){
      printf("D");
    }
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:25: error: 'F' undeclared (first use in this function)
   14 |     }else if(50<=m+f&&m+F<65||r>=50){
      |                         ^
main.c:14:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
        int m,f,r,n,i,c;
        char a[50]
        c=0
	while(1){
             scanf("%d %d %d",&m,&f,&r);
             if(m==-1 && f==-1 && r==-1){
                  break;
             }
             if(m+f>=80){
                  a[c]='A';
             }
             if(m+f>=65 && m+f<80){
                  a[c]='B';
             }
             if(m+f>=50 && m+f<65){
                  a[c]='C';
             }
             if(m+f>=30 && m+f<50 && r>=50){
                  a[c]='C';
             }
             if(m+f>=30 && m+f<50 && r<50){
                  a[c]='D';
             }
             if(m+f<30){
                  a[c]='F';
             }
             if(m==-1 || f==-1){
                  a[c]='F';
             }
             c=c+1;
	}
        for(i=0;i<=c;i++){
	     printf("%c",a[c]);
        }
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'c'
    5 |         c=0
      |         ^
main.c:5:12: error: expected ';' before 'while'
    5 |         c=0
      |            ^
      |            ;
    6 |         while(1){
      |         ~~~~~
Language: C

#include <stdio.h>

int main(){
	int m,f,r,i;
	char x;
	for(i=1;i<=50;i++){
		scanf("%d %d %d",&m,&f,&r);
		if(m==-1 && f==-1 && r==-1)break;
		if(m==-1 || f==-1)x='F';
		x=m+f;
		if(x>=80){x='A';
		}else if(x<80 && x>=65){x='B';
		}else if(x<65 && x>=50){x='C';
		}else if(x<50 && x>=30){x='D';
			if(r>=50)x='C';
		}else(x<30)x='F';
		printf("%c\n",x);
	}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:28: error: expected ';' before 'x'
   16 |                 }else(x<30)x='F';
      |                            ^
      |                            ;
Language: C

#include<stdio.h>
int main(void){
int m,f,r,a;
char class;

for(a=0;a<50;a++{
scanf("%d %d %d",&m,&f,&r);
if(m==-1&&f==-1&&r==-1)break;
if(m==-1||f==-1)class='F';
else if(m+f>=80)class='A';
else if(m+f>=65)class='B';
else if(m+f>=50)class='C';
else if(m+f>=30){
class='D';
if(r>=50)class='C';
}
else if(m+f<30)class='F';


printf("%c\n",class);
}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:17: error: expected ')' before '{' token
    6 | for(a=0;a<50;a++{
      |    ~            ^
      |                 )
main.c:23:1: error: expected expression before '}' token
   23 | }
      | ^
Language: C

#include <stdio.h>
int main(void)
{
    int m, f, r;
    int x;
    while (1)
    {
        scanf("%d %d %d", &m, &f, &r);
        x = m + f;
        if(m == -1 && f == -1 && r == -1)
        {
            break;
        }
        if (m == -1 && f == -1)
        {
            printf("F\n");
        }
        else if (x >= 80)
        {
            printf("A\n");
        }
        else if (x >= 65)
        {
            printf("B\n");
        }
        else if (x >= 50)
        {
            printf("C\n");
        }
        else if (x >= 30)
        {
            if (x >= 50)
            {
                printf("C\n");
            }
            else
            {
                printf("D\n");
            }
        }
        else if (x <= 30)
        {
            printf("F\n")
        }
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:43:26: error: expected ';' before '}' token
   43 |             printf("F\n")
      |                          ^
      |                          ;
   44 |         }
      |         ~
Language: C

#include <stdio.h>
#include <stdlib.h>

int main(int argv, char *argc[]){
    int midexam, termexam, retest, sum;
    
    while(1){
        scanf("%d %d %d\n", &midexam, &termexam, &retest);
        
        if((-1 == midexam) & (-1 == termexam) & (-1 == retest)) break;
        
        sum = midexam + termexam;
        
        if((-1 == midexam) | (-1 == termexam)) printf("F\n");
        else if(80 <= sum) printf("A\n");
        else if(65 <= sum & 80 > sum) printf("B\n");
        else if((50 <= sum & 65 > sum) | (30 <= sum & 50 > sum & 50 <= retest) printf("C\n");
        else if(30 <= sum & 50 > sum) printf("D\n");
        else if(30 > sum) printf("F\n");
    }
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:79: error: expected ')' before 'printf'
   17 |         else if((50 <= sum & 65 > sum) | (30 <= sum & 50 > sum & 50 <= retest) printf("C\n");
      |                ~                                                              ^~~~~~~
      |                                                                               )
main.c:20:5: error: expected expression before '}' token
   20 |     }
      |     ^
Language: C

#include <stdio.h>

int main(){
	
	int m[1000],f[1000],r[1000];
	
	int i=0;
	
	while(1){
		
		if(i!=0)
		
			scanf("%*c");
		
		scanf("%d %d %d",&m[i],&f[i],&r[i]);
		
		if(m[i]==-1&&f[i]==-1&&r[i]==-1)
			
			break;
		
		i++
	}
	
	for(t=0;t<=i;t++){
		
		
		if(m[t]==-1&&f[t]==-1){
			
			printf("F\n");
			
		}
		
		else if(m[t]+f[t]>=80){
			
			printf("A\n");
			
		}
		
		else if(m[t]+f[t]>=65){
			
			printf("B\n");
			
		}
		
		else if(m[t]+f[t]>=50){
			
			printf("C\n");
			
		}
		
		else if(m[t]+f[t]>=30&&r[t]>=50){
			
			printf("C\n");
			
		}
		
		else if(m[t]+f[t]>=30){
			
			printf("D\n");
			
		}
		
		else{
			
			printf("F\n");
			
		}
		
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:20: error: expected ';' before '}' token
   21 |                 i++
      |                    ^
      |                    ;
   22 |         }
      |         ~           
main.c:24:13: error: 't' undeclared (first use in this function)
   24 |         for(t=0;t<=i;t++){
      |             ^
main.c:24:13: note: each undeclared identifier is reported only once for each function it appears in