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_39781228_15019\Main.java:7: 错误: 方法声明无效; 需要返回类型
    public HDU1020StringEncoding(int row) {
           ^
0_0_39781228_15019\Main.java:23: 错误: 需要class, interface或enum
    public void computed( ) {
           ^
0_0_39781228_15019\Main.java:24: 错误: 需要class, interface或enum
        for (int i = 0; i < this.row; i++) {
                        ^
0_0_39781228_15019\Main.java:24: 错误: 需要class, interface或enum
        for (int i = 0; i < this.row; i++) {
                                      ^
0_0_39781228_15019\Main.java:26: 错误: 需要class, interface或enum
            for (int j = 0; j < chars.length; j++) {
            ^
0_0_39781228_15019\Main.java:26: 错误: 需要class, interface或enum
            for (int j = 0; j < chars.length; j++) {
                            ^
0_0_39781228_15019\Main.java:26: 错误: 需要class, interface或enum
            for (int j = 0; j < chars.length; j++) {
                                              ^
0_0_39781228_15019\Main.java:28: 错误: 需要class, interface或enum
                if (c == '\0') {
                ^
0_0_39781228_15019\Main.java:30: 错误: 需要class, interface或enum
                }
                ^
0_0_39781228_15019\Main.java:33: 错误: 需要class, interface或enum
                }
                ^
0_0_39781228_15019\Main.java:35: 错误: 需要class, interface或enum
                setRowData(number, c);
                ^
0_0_39781228_15019\Main.java:36: 错误: 需要class, interface或enum
            }
            ^
0_0_39781228_15019\Main.java:40: 错误: 需要class, interface或enum
                }
                ^
0_0_39781228_15019\Main.java:42: 错误: 需要class, interface或enum
            }
            ^
0_0_39781228_15019\Main.java:44: 错误: 需要class, interface或enum
            this.rowData = new char[20000];
            ^
0_0_39781228_15019\Main.java:45: 错误: 需要class, interface或enum
        }
        ^
0_0_39781228_15019\Main.java:47: 错误: 需要class, interface或enum
    public boolean checkHave(char c, int index, char[] arr) {
           ^
0_0_39781228_15019\Main.java:48: 错误: 需要class, interface或enum
        for (int i = 0; i < index; i++) {
                        ^
0_0_39781228_15019\Main.java:48: 错误: 需要class, interface或enum
        for (int i = 0; i < index; i++) {
                                   ^
0_0_39781228_15019\Main.java:51: 错误: 需要class, interface或enum
            }
            ^
0_0_39781228_15019\Main.java:54: 错误: 需要class, interface或enum
    }
    ^
0_0_39781228_15019\Main.java:55: 错误: 需要class, interface或enum
    public int computedNumber(char c, char[] ar) {
           ^
0_0_39781228_15019\Main.java:57: 错误: 需要class, interface或enum
        for (char c1 : ar) {
        ^
0_0_39781228_15019\Main.java:60: 错误: 需要class, interface或enum
            }
            ^
0_0_39781228_15019\Main.java:63: 错误: 需要class, interface或enum
            }
            ^
0_0_39781228_15019\Main.java:66: 错误: 需要class, interface或enum
    }
    ^
0_0_39781228_15019\Main.java:67: 错误: 需要class, interface或enum
    public void setRowData(int number, char c) {
           ^
0_0_39781228_15019\Main.java:70: 错误: 需要class, interface或enum
        }
        ^
0_0_39781228_15019\Main.java:72: 错误: 需要class, interface或enum
            for (int i = 0; ; i++) {
                              ^
0_0_39781228_15019\Main.java:75: 错误: 需要class, interface或enum
                }
                ^
0_0_39781228_15019\Main.java:77: 错误: 需要class, interface或enum
                break;
                ^
0_0_39781228_15019\Main.java:78: 错误: 需要class, interface或enum
            }
            ^
0_0_39781228_15019\Main.java:81: 错误: 需要class, interface或enum
            for (int i = 0; ; i++) {
                              ^
0_0_39781228_15019\Main.java:84: 错误: 需要class, interface或enum
                }
                ^
0_0_39781228_15019\Main.java:86: 错误: 需要class, interface或enum
                int len = str.length();
                ^
0_0_39781228_15019\Main.java:87: 错误: 需要class, interface或enum
                for(int j=i; j-i<len; j++) {
                ^
0_0_39781228_15019\Main.java:87: 错误: 需要class, interface或enum
                for(int j=i; j-i<len; j++) {
                             ^
0_0_39781228_15019\Main.java:87: 错误: 需要class, interface或enum
                for(int j=i; j-i<len; j++) {
                                      ^
0_0_39781228_15019\Main.java:89: 错误: 需要class, interface或enum
                }
                ^
0_0_39781228_15019\Main.java:91: 错误: 需要class, interface或enum
                break;
                ^
0_0_39781228_15019\Main.java:92: 错误: 需要class, interface或enum
            }
            ^
0_0_39781228_15019\Main.java:95: 错误: 需要class, interface或enum
    public static void main(String[] args) {
                  ^
0_0_39781228_15019\Main.java:97: 错误: 需要class, interface或enum
        int row = scanner.nextInt();
        ^
0_0_39781228_15019\Main.java:98: 错误: 需要class, interface或enum
        HDU1020StringEncoding hduse = new HDU1020StringEncoding(row);
        ^
0_0_39781228_15019\Main.java:99: 错误: 需要class, interface或enum
        hduse.loading();
        ^
0_0_39781228_15019\Main.java:100: 错误: 需要class, interface或enum
        hduse.computed();
        ^
0_0_39781228_15019\Main.java:101: 错误: 需要class, interface或enum
    }
    ^
47 个错误


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-18 04:21:08, Gzip enabled