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_36227425_8652\Main.java:1: 错误: 需要class, interface或enum
Map<List<Integer>,Integer> cacheLength1 = new HashMap<>();
^
0_0_36227425_8652\Main.java:2: 错误: 需要class, interface或enum
    public Integer getLength1(List<Integer> list){
           ^
0_0_36227425_8652\Main.java:5: 错误: 需要class, interface或enum
        }
        ^
0_0_36227425_8652\Main.java:8: 错误: 需要class, interface或enum
        }
        ^
0_0_36227425_8652\Main.java:11: 错误: 需要class, interface或enum
        if (list.get(0)==1){
        ^
0_0_36227425_8652\Main.java:14: 错误: 需要class, interface或enum
                tempList.add(1);
                ^
0_0_36227425_8652\Main.java:15: 错误: 需要class, interface或enum
                tempList.add(list.get(1)-1);
                ^
0_0_36227425_8652\Main.java:16: 错误: 需要class, interface或enum
                lengthT1 = getLength1(tempList)+1;
                ^
0_0_36227425_8652\Main.java:18: 错误: 需要class, interface或enum
            }else {
            ^
0_0_36227425_8652\Main.java:20: 错误: 需要class, interface或enum
                tempList.add(1);
                ^
0_0_36227425_8652\Main.java:21: 错误: 需要class, interface或enum
                tempList.add(list.get(1)-1);
                ^
0_0_36227425_8652\Main.java:22: 错误: 需要class, interface或enum
                lengthT1 = getLength1(tempList);
                ^
0_0_36227425_8652\Main.java:24: 错误: 需要class, interface或enum
            }
            ^
0_0_36227425_8652\Main.java:29: 错误: 需要class, interface或enum
                tempList.add(list.get(0)-1);
                ^
0_0_36227425_8652\Main.java:30: 错误: 需要class, interface或enum
                tempList.add(list.get(1));
                ^
0_0_36227425_8652\Main.java:31: 错误: 需要class, interface或enum
                lengthT1 = getLength1(tempList)+1;
                ^
0_0_36227425_8652\Main.java:33: 错误: 需要class, interface或enum
            }else {
            ^
0_0_36227425_8652\Main.java:35: 错误: 需要class, interface或enum
                tempList.add(list.get(0)-1);
                ^
0_0_36227425_8652\Main.java:36: 错误: 需要class, interface或enum
                tempList.add(list.get(1));
                ^
0_0_36227425_8652\Main.java:37: 错误: 需要class, interface或enum
                lengthT1 = getLength1(tempList);
                ^
0_0_36227425_8652\Main.java:39: 错误: 需要class, interface或enum
            }
            ^
0_0_36227425_8652\Main.java:45: 错误: 需要class, interface或enum
        if (list.get(1)==1){
        ^
0_0_36227425_8652\Main.java:48: 错误: 需要class, interface或enum
                tempList.add(list.get(0)-1);
                ^
0_0_36227425_8652\Main.java:49: 错误: 需要class, interface或enum
                tempList.add(1);
                ^
0_0_36227425_8652\Main.java:50: 错误: 需要class, interface或enum
                lengthT2 = getLength1(tempList)+1;
                ^
0_0_36227425_8652\Main.java:52: 错误: 需要class, interface或enum
            }else {
            ^
0_0_36227425_8652\Main.java:54: 错误: 需要class, interface或enum
                tempList.add(list.get(0)-1);
                ^
0_0_36227425_8652\Main.java:55: 错误: 需要class, interface或enum
                tempList.add(1);
                ^
0_0_36227425_8652\Main.java:56: 错误: 需要class, interface或enum
                lengthT2 = getLength1(tempList);
                ^
0_0_36227425_8652\Main.java:58: 错误: 需要class, interface或enum
            }
            ^
0_0_36227425_8652\Main.java:63: 错误: 需要class, interface或enum
                tempList.add(list.get(0));
                ^
0_0_36227425_8652\Main.java:64: 错误: 需要class, interface或enum
                tempList.add(list.get(1)-1);
                ^
0_0_36227425_8652\Main.java:65: 错误: 需要class, interface或enum
                lengthT2 = getLength1(tempList)+1;
                ^
0_0_36227425_8652\Main.java:67: 错误: 需要class, interface或enum
            }else {
            ^
0_0_36227425_8652\Main.java:69: 错误: 需要class, interface或enum
                tempList.add(list.get(0));
                ^
0_0_36227425_8652\Main.java:70: 错误: 需要class, interface或enum
                tempList.add(list.get(1)-1);
                ^
0_0_36227425_8652\Main.java:71: 错误: 需要class, interface或enum
                lengthT2 = getLength1(tempList)+1;
                ^
0_0_36227425_8652\Main.java:74: 错误: 需要class, interface或enum
            }
            ^
0_0_36227425_8652\Main.java:79: 错误: 需要class, interface或enum
        }else
        ^
0_0_36227425_8652\Main.java:83: 错误: 需要class, interface或enum
        return cacheLength1.get(list);
        ^
0_0_36227425_8652\Main.java:85: 错误: 需要class, interface或enum
    }
    ^
0_0_36227425_8652\Main.java:86: 错误: 需要class, interface或enum
    public static boolean huzhi(int a,int b){
                  ^
0_0_36227425_8652\Main.java:90: 错误: 需要class, interface或enum
            a = b;
            ^
0_0_36227425_8652\Main.java:91: 错误: 需要class, interface或enum
            b = tmp;
            ^
0_0_36227425_8652\Main.java:92: 错误: 需要class, interface或enum
        }
        ^
0_0_36227425_8652\Main.java:94: 错误: 需要class, interface或enum
        while((c = a % b) != 0) {
        ^
0_0_36227425_8652\Main.java:96: 错误: 需要class, interface或enum
            b = c;
            ^
0_0_36227425_8652\Main.java:97: 错误: 需要class, interface或enum
        }
        ^
0_0_36227425_8652\Main.java:99: 错误: 需要class, interface或enum
    }
    ^
0_0_36227425_8652\Main.java:101: 错误: 需要class, interface或enum
    public static void main(String[] args) {
                  ^
0_0_36227425_8652\Main.java:103: 错误: 需要class, interface或enum
        List<Integer> result = new ArrayList<>();
        ^
0_0_36227425_8652\Main.java:104: 错误: 需要class, interface或enum
        int temp = sc.nextInt();
        ^
0_0_36227425_8652\Main.java:105: 错误: 需要class, interface或enum
        for (int i=0;i<temp;i++){
        ^
0_0_36227425_8652\Main.java:105: 错误: 需要class, interface或enum
        for (int i=0;i<temp;i++){
                     ^
0_0_36227425_8652\Main.java:105: 错误: 需要class, interface或enum
        for (int i=0;i<temp;i++){
                            ^
0_0_36227425_8652\Main.java:107: 错误: 需要class, interface或enum
            tempList.add(sc.nextInt());
            ^
0_0_36227425_8652\Main.java:108: 错误: 需要class, interface或enum
            tempList.add(sc.nextInt());
            ^
0_0_36227425_8652\Main.java:109: 错误: 需要class, interface或enum
            int result1 = new test().getLength1(tempList);
            ^
0_0_36227425_8652\Main.java:110: 错误: 需要class, interface或enum
            result.add(result1);
            ^
0_0_36227425_8652\Main.java:112: 错误: 需要class, interface或enum
        }
        ^
0_0_36227425_8652\Main.java:115: 错误: 需要class, interface或enum
        }
        ^
61 个错误


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 08:50:32, Gzip enabled