QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#281901#5108. Prehistoric ProgramsMaMengQiCompile Error//Java82.2kb2023-12-11 03:35:152023-12-11 03:35:15

詳細信息

Main.java:32: error: : expected
                        case '(' -> crt++;
                                ^
Main.java:32: error: illegal start of expression
                        case '(' -> crt++;
                                 ^
Main.java:32: error: ';' expected
                        case '(' -> crt++;
                                       ^
Main.java:33: error: : expected
                        case ')' -> crt--;
                                ^
Main.java:33: error: illegal start of expression
                        case ')' -> crt--;
                                 ^
Main.java:33: error: ';' expected
                        case ')' -> crt--;
                                       ^
Main.java:34: error: : expected
                        default -> {
                               ^
Main.java:34: error: illegal start of expression
                        default -> {
                                ^
Main.java:34: error: ';' expected
                        default -> {
                                  ^
Main.java:46: error: class, interface, or enum expected
    private void solve() {
            ^
Main.java:48: error: class, interface, or enum expected
        Map<Boolean, List<Integer>> bySgn = Arrays.stream(perm)
        ^
Main.java:52: error: class, interface, or enum expected
        bySgn.forEach((sgn, lst) -> lst.sort(
        ^
Main.java:58: error: class, interface, or enum expected
        bySgn.get(true).addAll(bySgn.get(false));
        ^
Main.java:59: error: class, interface, or enum expected
        perm = bySgn.get(true).toArray(Integer[]::new);
        ^
Main.java:60: error: class, interface, or enum expected
        boolean ok = true;
        ^
Main.java:61: error: class, interface, or enum expected
        int counter = 0;
        ^
Main.java:63: error: class, interface, or enum expected
        for (int f = 0; f < n; f++) {
        ^
Main.java:63: error: class, interface, or enum expected
        for (int f = 0; f < n; f++) {
                        ^
Main.java:63: error: class, interface, or enum expected
        for (int f = 0; f < n; f++) {
                               ^
Main.java:66: error: class, interface, or enum expected
            }
            ^
Main.java:68: error: class, interface, or enum expected
        }
        ^
Main.java:71: error: class, interface, or enum expected
        } else {
        ^
Main.java:73: error: class, interface, or enum expected
        }
        ^
23 errors