Language: Java



import java.util.Scanner;

public class Main {
?????? public static void main(String[] args){
?????? ?????? //????????£????????????
?????? ?????? Scanner sc = ??new Scanner(System.in);
?????? ?????? int sum =0;
?????? ?????? String Evaluation ="a";
?????? ?????? while(true){
?????? ?????? ?????? //???????????????m
?????? ?????? ?????? int m = sc.nextInt();
?????? ?????? ?????? //??????????????????
?????? ?????? ?????? int f =sc.nextInt();
?????? ?????? ?????? //???????¨? ???
?????? ?????? ?????? int r = sc.nextInt();
?????? ?????? ?????? //??¨????????????-1?????£????????????
?????? ?????? ?????? if(m ==-1&& f==-1 &&r ==-1){
?????? ?????? ?????? ?????? break;
?????? ?????? ?????? }
?????? ?????? ?????? //????¨????
?????? ?????? ?????? sum = m + f;
?????? ?????? ?????? //???????????????????¬?????????? F
?????? ?????? ?????? if(m ==-1 ||f ==-1){
?????? ?????? ?????? ?????? System.out.println("F");
?????? ?????? ?????? //??????????????¶???
?????? ?????? ?????? }else if(sum>= 80){
?????? ?????? ?????? ?????? System.out.println("A");
?????? ?????? ?????? }else if(80>sum && sum>=65){
?????? ?????? ?????? ?????? System.out.println("B");
?????? ?????? ?????? }else if(65> sum&& sum>= 50){
?????? ?????? ?????? ?????? System.out.println("C");
?????? ?????? ?????? }else if(50>sum&& sum >=30){
?????? ?????? ?????? ?????? if(r>=50){
?????? ?????? ?????? ?????? ?????? System.out.println("C");
?????? ?????? ?????? ?????? }else{
?????? ?????? ?????? ?????? ?????? System.out.println("D");
?????? ?????? ?????? ?????? }
?????? ?????? ?????? }else {
?????? ?????? ?????? ?????? System.out.println("F");
?????? ?????? ?????? }
?????? ?????? }
?????? }
}

Compiler output:
Main.java:6: error: illegal start of type
?????? public static void main(String[] args){
^
Main.java:7: error: illegal start of expression
?????? ?????? //?????????????????????
^
Main.java:7: error: illegal start of expression
?????? ?????? //?????????????????????
 ^
Main.java:7: error: illegal start of expression
?????? ?????? //?????????????????????
  ^
Main.java:7: error: illegal start of expression
?????? ?????? //?????????????????????
   ^
Main.java:7: error: illegal start of expression
?????? ?????? //?????????????????????
    ^
Main.java:7: error: illegal start of expression
?????? ?????? //?????????????????????
     ^
Main.java:7: error: illegal start of expression
?????? ?????? //?????????????????????
       ^
Main.java:7: error: illegal start of expression
?????? ?????? //?????????????????????
        ^
Main.java:7: error: illegal start of expression
?????? ?????? //?????????????????????
         ^
Main.java:7: error: illegal start of expression
?????? ?????? //?????????????????????
          ^
Main.java:7: error: illegal start of expression
?????? ?????? //?????????????????????
           ^
Main.java:7: error: illegal start of expression
?????? ?????? //?????????????????????
            ^
Main.java:8: error: illegal start of expression
?????? ?????? Scanner sc = ??new Scanner(System.in);
^
Main.java:8: error: illegal start of expression
?????? ?????? Scanner sc = ??new Scanner(System.in);
 ^
Main.java:8: error: illegal start of expression
?????? ?????? Scanner sc = ??new Scanner(System.in);
  ^
Main.java:8: error: illegal start of expression
?????? ?????? Scanner sc = ??new Scanner(System.in);
   ^
Main.java:8: error: illegal start of expression
?????? ?????? Scanner sc = ??new Scanner(System.in);
    ^
Main.java:8: error: illegal start of expression
?????? ?????? Scanner sc = ??new Scanner(System.in);
     ^
Main.java:8: error: illegal start of expression
?????? ?????? Scanner sc = ??new Scanner(System.in);
       ^
Main.java:8: error: illegal start of expression
?????? ?????? Scanner sc = ??new Scanner(System.in);
        ^
Main.java:8: error: illegal start of expression
?????? ?????? Scanner sc = ??new Scanner(System.in);
         ^
Main.java:8: error: illegal start of expression
?????? ?????? Scanner sc = ??new Scanner(System.in);
          ^
Main.java:8: error: illegal start of expression
?????? ?????? Scanner sc = ??new Scanner(System.in);
           ^
Main.java:8: error: illegal start of expression
?????? ?????? Scanner sc = ??new Scanner(System.in);
            ^
Main.java:8: error: : expected
?????? ?????? Scanner sc = ??new Scanner(System.in);
                     ^
Main.java:8: error: illegal start of expression
?????? ?????? Scanner sc = ??new Scanner(System.in);
                           ^
Main.java:8: error: illegal start of expression
?????? ?????? Scanner sc = ??new Scanner(System.in);
                            ^
Main.java:8: error: : expected
?????? ?????? Scanner sc = ??new Scanner(System.in);
                                                   ^
Main.java:9: error: illegal start of expression
?????? ?????? int sum =0;
^
Main.java:9: error: illegal start of expression
?????? ?????? int sum =0;
 ^
Main.java:9: error: illegal start of expression
?????? ?????? int sum =0;
  ^
Main.java:9: error: illegal start of expression
?????? ?????? int sum =0;
   ^
Main.java:9: error: illegal start of expression
?????? ?????? int sum =0;
    ^
Main.java:9: error: illegal start of expression
?????? ?????? int sum =0;
     ^
Main.java:9: error: illegal start of expression
?????? ?????? int sum =0;
       ^
Main.java:9: error: illegal start of expression
?????? ?????? int sum =0;
        ^
Main.java:9: error: illegal start of expression
?????? ?????? int sum =0;
         ^
Main.java:9: error: illegal start of expression
?????? ?????? int sum =0;
          ^
Main.java:9: error: illegal start of expression
?????? ?????? int sum =0;
           ^
Main.java:9: error: illegal start of expression
?????? ?????? int sum =0;
            ^
Main.java:9: error: '.class' expected
?????? ?????? int sum =0;
                  ^
Main.java:9: error: : expected
?????? ?????? int sum =0;
                        ^
Main.java:10: error: illegal start of expression
?????? ?????? String Evaluation ="a";
^
Main.java:10: error: illegal start of expression
?????? ?????? String Evaluation ="a";
 ^
Main.java:10: error: illegal start of expression
?????? ?????? String Evaluation ="a";
  ^
Main.java:10: error: illegal start of expression
?????? ?????? String Evaluation ="a";
   ^
Main.java:10: error: illegal start of expression
?????? ?????? String Evaluation ="a";
    ^
Main.java:10: error: illegal start of expression
?????? ?????? String Evaluation ="a";
     ^
Main.java:10: error: illegal start of expression
?????? ?????? String Evaluation ="a";
       ^
Main.java:10: error: illegal start of expression
?????? ?????? String Evaluation ="a";
        ^
Main.java:10: error: illegal start of expression
?????? ?????? String Evaluation ="a";
         ^
Main.java:10: error: illegal start of expression
?????? ?????? String Evaluation ="a";
          ^
Main.java:10: error: illegal start of expression
?????? ?????? String Evaluation ="a";
           ^
Main.java:10: error: illegal start of expression
?????? ?????? String Evaluation ="a";
            ^
Main.java:10: error: : expected
?????? ?????? String Evaluation ="a";
                    ^
Main.java:10: error: : expected
?????? ?????? String Evaluation ="a";
                                    ^
Main.java:11: error: illegal start of expression
?????? ?????? while(true){
^
Main.java:11: error: illegal start of expression
?????? ?????? while(true){
 ^
Main.java:11: error: illegal start of expression
?????? ?????? while(true){
  ^
Main.java:11: error: illegal start of expression
?????? ?????? while(true){
   ^
Main.java:11: error: illegal start of expression
?????? ?????? while(true){
    ^
Main.java:11: error: illegal start of expression
?????? ?????? while(true){
     ^
Main.java:11: error: illegal start of expression
?????? ?????? while(true){
       ^
Main.java:11: error: illegal start of expression
?????? ?????? while(true){
        ^
Main.java:11: error: illegal start of expression
?????? ?????? while(true){
         ^
Main.java:11: error: illegal start of expression
?????? ?????? while(true){
          ^
Main.java:11: error: illegal start of expression
?????? ?????? while(true){
           ^
Main.java:11: error: illegal start of expression
?????? ?????? while(true){
            ^
Main.java:11: error: illegal start of expression
?????? ?????? while(true){
              ^
Main.java:12: error: illegal start of expression
?????? ?????? ?????? //???????????????m
^
Main.java:12: error: illegal start of expression
?????? ?????? ?????? //???????????????m
 ^
Main.java:12: error: illegal start of expression
?????? ?????? ?????? //???????????????m
  ^
Main.java:12: error: illegal start of expression
?????? ?????? ?????? //???????????????m
   ^
Main.java:12: error: illegal start of expression
?????? ?????? ?????? //???????????????m
    ^
Main.java:12: error: illegal start of expression
?????? ?????? ?????? //???????????????m
     ^
Main.java:12: error: illegal start of expression
?????? ?????? ?????? //???????????????m
       ^
Main.java:12: error: illegal start of expression
?????? ?????? ?????? //???????????????m
        ^
Main.java:12: error: illegal start of expression
?????? ?????? ?????? //???????????????m
         ^
Main.java:12: error: illegal start of expression
?????? ?????? ?????? //???????????????m
          ^
Main.java:12: error: illegal start of expression
?????? ?????? ?????? //???????????????m
           ^
Main.java:12: error: illegal start of expression
?????? ?????? ?????? //???????????????m
            ^
Main.java:12: error: illegal start of expression
?????? ?????? ?????? //???????????????m
              ^
Main.java:12: error: illegal start of expression
?????? ?????? ?????? //???????????????m
               ^
Main.java:12: error: illegal start of expression
?????? ?????? ?????? //???????????????m
                ^
Main.java:12: error: illegal start of expression
?????? ?????? ?????? //???????????????m
                 ^
Main.java:12: error: illegal start of expression
?????? ?????? ?????? //???????????????m
                  ^
Main.java:12: error: illegal start of expression
?????? ?????? ?????? //???????????????m
                   ^
Main.java:13: error: illegal start of expression
?????? ?????? ?????? int m = sc.nextInt();
^
Main.java:13: error: illegal start of expression
?????? ?????? ?????? int m = sc.nextInt();
 ^
Main.java:13: error: illegal start of expression
?????? ?????? ?????? int m = sc.nextInt();
  ^
Main.java:13: error: illegal start of expression
?????? ?????? ?????? int m = sc.nextInt();
   ^
Main.java:13: error: illegal start of expression
?????? ?????? ?????? int m = sc.nextInt();
    ^
Main.java:13: error: illegal start of expression
?????? ?????? ?????? int m = sc.nextInt();
     ^
Main.java:13: error: illegal start of expression
?????? ?????? ?????? int m = sc.nextInt();
       ^
Main.java:13: error: illegal start of expression
?????? ?????? ?????? int m = sc.nextInt();
        ^
Main.java:13: error: illegal start of expression
?????? ?????? ?????? int m = sc.nextInt();
         ^
Main.java:13: error: illegal start of expression
?????? ?????? ?????? int m = sc.nextInt();
          ^
Main.java:13: error: illegal start of expression
?????? ?????? ?????? int m = sc.nextInt();
           ^
Main.java:13: error: illegal start of expression
?????? ?????? ?????? int m = sc.nextInt();
            ^
100 errors
only showing the first 100 errors, of 108 total; use -Xmaxerrs if you would like to see more
printing javac parameters to: /w/javac.20260128_043833.args