F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_38515622_26717\Main.java:17: 错误: 非法的表达式开始
        return switch (score / 10) {
               ^
0_0_38515622_26717\Main.java:17: 错误: 不是语句
        return switch (score / 10) {
                      ^
0_0_38515622_26717\Main.java:17: 错误: 需要';'
        return switch (score / 10) {
                                  ^
0_0_38515622_26717\Main.java:18: 错误: 孤立的case
            case 10, 9 -> "A";
            ^
0_0_38515622_26717\Main.java:18: 错误: 需要:
            case 10, 9 -> "A";
                   ^
0_0_38515622_26717\Main.java:18: 错误: 需要';'
            case 10, 9 -> "A";
                    ^
0_0_38515622_26717\Main.java:18: 错误: 非法的表达式开始
            case 10, 9 -> "A";
                       ^
0_0_38515622_26717\Main.java:18: 错误: 需要';'
            case 10, 9 -> "A";
                         ^
0_0_38515622_26717\Main.java:19: 错误: 需要:
            case 8 -> "B";
                  ^
0_0_38515622_26717\Main.java:19: 错误: 非法的表达式开始
            case 8 -> "B";
                   ^
0_0_38515622_26717\Main.java:19: 错误: 需要';'
            case 8 -> "B";
                     ^
0_0_38515622_26717\Main.java:20: 错误: 需要:
            case 7 -> "C";
                  ^
0_0_38515622_26717\Main.java:20: 错误: 非法的表达式开始
            case 7 -> "C";
                   ^
0_0_38515622_26717\Main.java:20: 错误: 需要';'
            case 7 -> "C";
                     ^
0_0_38515622_26717\Main.java:21: 错误: 需要:
            case 6 -> "D";
                  ^
0_0_38515622_26717\Main.java:21: 错误: 非法的表达式开始
            case 6 -> "D";
                   ^
0_0_38515622_26717\Main.java:21: 错误: 需要';'
            case 6 -> "D";
                     ^
0_0_38515622_26717\Main.java:22: 错误: 需要:
            case 5, 4, 3, 2, 1, 0 -> "E";
                  ^
0_0_38515622_26717\Main.java:22: 错误: 需要';'
            case 5, 4, 3, 2, 1, 0 -> "E";
                   ^
0_0_38515622_26717\Main.java:22: 错误: 非法的表达式开始
            case 5, 4, 3, 2, 1, 0 -> "E";
                     ^
0_0_38515622_26717\Main.java:22: 错误: 需要';'
            case 5, 4, 3, 2, 1, 0 -> "E";
                      ^
0_0_38515622_26717\Main.java:22: 错误: 非法的表达式开始
            case 5, 4, 3, 2, 1, 0 -> "E";
                        ^
0_0_38515622_26717\Main.java:22: 错误: 需要';'
            case 5, 4, 3, 2, 1, 0 -> "E";
                         ^
0_0_38515622_26717\Main.java:22: 错误: 非法的表达式开始
            case 5, 4, 3, 2, 1, 0 -> "E";
                           ^
0_0_38515622_26717\Main.java:22: 错误: 需要';'
            case 5, 4, 3, 2, 1, 0 -> "E";
                            ^
0_0_38515622_26717\Main.java:22: 错误: 非法的表达式开始
            case 5, 4, 3, 2, 1, 0 -> "E";
                              ^
0_0_38515622_26717\Main.java:22: 错误: 需要';'
            case 5, 4, 3, 2, 1, 0 -> "E";
                               ^
0_0_38515622_26717\Main.java:22: 错误: 非法的表达式开始
            case 5, 4, 3, 2, 1, 0 -> "E";
                                  ^
0_0_38515622_26717\Main.java:22: 错误: 需要';'
            case 5, 4, 3, 2, 1, 0 -> "E";
                                    ^
0_0_38515622_26717\Main.java:23: 错误: 需要:
            default -> "Score is error!";
                   ^
0_0_38515622_26717\Main.java:23: 错误: 非法的表达式开始
            default -> "Score is error!";
                    ^
0_0_38515622_26717\Main.java:23: 错误: 需要';'
            default -> "Score is error!";
                      ^
32 个错误


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-27 03:56:18, Gzip enabled