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_38344508_4682\Main.java:5: 错误: 需要class, interface或enum
public static void main(String[] args) {
              ^
0_0_38344508_4682\Main.java:8: 错误: 需要class, interface或enum
    int cases = c.nextInt();
    ^
0_0_38344508_4682\Main.java:10: 错误: 需要class, interface或enum
    for (int currentCase = 1; currentCase<=cases; currentCase++) {
    ^
0_0_38344508_4682\Main.java:10: 错误: 需要class, interface或enum
    for (int currentCase = 1; currentCase<=cases; currentCase++) {
                              ^
0_0_38344508_4682\Main.java:10: 错误: 需要class, interface或enum
    for (int currentCase = 1; currentCase<=cases; currentCase++) {
                                                  ^
0_0_38344508_4682\Main.java:13: 错误: 需要class, interface或enum
        int n = c.nextInt();
        ^
0_0_38344508_4682\Main.java:15: 错误: 需要class, interface或enum
        c.nextLine();
        ^
0_0_38344508_4682\Main.java:17: 错误: 需要class, interface或enum
        HashMap<String, ArrayList<String>> graph = new HashMap<>();
        ^
0_0_38344508_4682\Main.java:18: 错误: 需要class, interface或enum
        String[] testingNames = new String[n];
        ^
0_0_38344508_4682\Main.java:19: 错误: 需要class, interface或enum
        ArrayList<String> authors = new ArrayList<>();
        ^
0_0_38344508_4682\Main.java:21: 错误: 需要class, interface或enum
        HashMap<String, Integer> eNums = new HashMap<>();
        ^
0_0_38344508_4682\Main.java:23: 错误: 需要class, interface或enum
        while (p-- > 0) {
        ^
0_0_38344508_4682\Main.java:26: 错误: 需要class, interface或enum
            for (int i = 0; i < paperAuthors.length; i++) {
            ^
0_0_38344508_4682\Main.java:26: 错误: 需要class, interface或enum
            for (int i = 0; i < paperAuthors.length; i++) {
                            ^
0_0_38344508_4682\Main.java:26: 错误: 需要class, interface或enum
            for (int i = 0; i < paperAuthors.length; i++) {
                                                     ^
0_0_38344508_4682\Main.java:29: 错误: 需要class, interface或enum
                paperAuthors[i] = paperAuthors[i].trim();
                ^
0_0_38344508_4682\Main.java:30: 错误: 需要class, interface或enum
            }
            ^
0_0_38344508_4682\Main.java:37: 错误: 需要class, interface或enum
            for (String name : paperAuthors) {
            ^
0_0_38344508_4682\Main.java:41: 错误: 需要class, interface或enum
                if (graph.keySet().contains(name))
                ^
0_0_38344508_4682\Main.java:43: 错误: 需要class, interface或enum
                else
                ^
0_0_38344508_4682\Main.java:46: 错误: 需要class, interface或enum
                for (String paperAuthor : paperAuthors)
                ^
0_0_38344508_4682\Main.java:50: 错误: 需要class, interface或enum
                graph.put(name, updatedValue);
                ^
0_0_38344508_4682\Main.java:52: 错误: 需要class, interface或enum
            }
            ^
0_0_38344508_4682\Main.java:60: 错误: 需要class, interface或enum
            else
            ^
0_0_38344508_4682\Main.java:64: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++)
        ^
0_0_38344508_4682\Main.java:64: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++)
                        ^
0_0_38344508_4682\Main.java:64: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++)
                               ^
0_0_38344508_4682\Main.java:67: 错误: 需要class, interface或enum
        calculateEnums("Erdos, P.", graph, eNums);
        ^
0_0_38344508_4682\Main.java:70: 错误: 需要class, interface或enum
        System.out.println("Scenario " + currentCase);
        ^
0_0_38344508_4682\Main.java:71: 错误: 需要class, interface或enum
        for (String name : testingNames)
        ^
0_0_38344508_4682\Main.java:74: 错误: 需要class, interface或enum
            else
            ^
0_0_38344508_4682\Main.java:77: 错误: 需要class, interface或enum
    }
    ^
0_0_38344508_4682\Main.java:85: 错误: 需要class, interface或enum
    notCalculated.add(name);
    ^
0_0_38344508_4682\Main.java:87: 错误: 需要class, interface或enum
    while (notCalculated.size() > 0) {
    ^
0_0_38344508_4682\Main.java:89: 错误: 需要class, interface或enum
        for (String connectedName : graph.get(currentName)) {
        ^
0_0_38344508_4682\Main.java:92: 错误: 需要class, interface或enum
                if(!notCalculated.contains(connectedName))
                ^
0_0_38344508_4682\Main.java:94: 错误: 需要class, interface或enum
            }
            ^
0_0_38344508_4682\Main.java:97: 错误: 需要class, interface或enum
    }
    ^
38 个错误


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-30 10:36:23, Gzip enabled