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_28140542_23947\Main.java:2: 错误: 非法的类型开始
public:
      ^
0_0_28140542_23947\Main.java:2: 错误: 需要';'
public:
       ^
0_0_28140542_23947\Main.java:3: 错误: 非法的类型开始
    Sort() {
        ^
0_0_28140542_23947\Main.java:3: 错误: 需要<标识符>
    Sort() {
         ^
0_0_28140542_23947\Main.java:3: 错误: 需要';'
    Sort() {
          ^
0_0_28140542_23947\Main.java:5: 错误: 方法声明无效; 需要返回类型
        srand(time(NULL));    
        ^
0_0_28140542_23947\Main.java:5: 错误: 需要<标识符>
        srand(time(NULL));    
                  ^
0_0_28140542_23947\Main.java:5: 错误: 需要';'
        srand(time(NULL));    
                   ^
0_0_28140542_23947\Main.java:5: 错误: 非法的类型开始
        srand(time(NULL));    
                       ^
0_0_28140542_23947\Main.java:5: 错误: 需要<标识符>
        srand(time(NULL));    
                        ^
0_0_28140542_23947\Main.java:6: 错误: 需要<标识符>
        n = rand() % 100 + 10;
         ^
0_0_28140542_23947\Main.java:7: 错误: 非法的类型开始
        for (int i = 0; i < n; ++i) {
        ^
0_0_28140542_23947\Main.java:7: 错误: 需要')'
        for (int i = 0; i < n; ++i) {
                  ^
0_0_28140542_23947\Main.java:7: 错误: 非法的类型开始
        for (int i = 0; i < n; ++i) {
                     ^
0_0_28140542_23947\Main.java:7: 错误: 需要<标识符>
        for (int i = 0; i < n; ++i) {
                      ^
0_0_28140542_23947\Main.java:7: 错误: 需要';'
        for (int i = 0; i < n; ++i) {
                       ^
0_0_28140542_23947\Main.java:7: 错误: 需要>
        for (int i = 0; i < n; ++i) {
                             ^
0_0_28140542_23947\Main.java:7: 错误: 需要<标识符>
        for (int i = 0; i < n; ++i) {
                              ^
0_0_28140542_23947\Main.java:7: 错误: 需要'('
        for (int i = 0; i < n; ++i) {
                                 ^
0_0_28140542_23947\Main.java:7: 错误: 非法的类型开始
        for (int i = 0; i < n; ++i) {
                                  ^
0_0_28140542_23947\Main.java:7: 错误: 需要<标识符>
        for (int i = 0; i < n; ++i) {
                                   ^
0_0_28140542_23947\Main.java:7: 错误: 需要';'
        for (int i = 0; i < n; ++i) {
                                     ^
0_0_28140542_23947\Main.java:8: 错误: 需要<标识符>
            int v = rand() % 1000;
                 ^
0_0_28140542_23947\Main.java:9: 错误: 需要<标识符>
            data.push_back(v);
                          ^
0_0_28140542_23947\Main.java:9: 错误: 需要<标识符>
            data.push_back(v);
                            ^
0_0_28140542_23947\Main.java:10: 错误: 需要<标识符>
            data.push_back(v);
                          ^
0_0_28140542_23947\Main.java:10: 错误: 需要<标识符>
            data.push_back(v);
                            ^
0_0_28140542_23947\Main.java:11: 错误: 需要<标识符>
            data.push_back(v);
                          ^
0_0_28140542_23947\Main.java:11: 错误: 需要<标识符>
            data.push_back(v);
                            ^
0_0_28140542_23947\Main.java:12: 错误: 需要<标识符>
            data.push_back(v);
                          ^
0_0_28140542_23947\Main.java:12: 错误: 需要<标识符>
            data.push_back(v);
                            ^
0_0_28140542_23947\Main.java:14: 错误: 需要class, interface或enum
    }
    ^
0_0_28140542_23947\Main.java:18: 错误: 需要class, interface或enum
        for (int i = 0; i < n - 1; ++i) {
        ^
0_0_28140542_23947\Main.java:18: 错误: 需要class, interface或enum
        for (int i = 0; i < n - 1; ++i) {
                        ^
0_0_28140542_23947\Main.java:18: 错误: 需要class, interface或enum
        for (int i = 0; i < n - 1; ++i) {
                                   ^
0_0_28140542_23947\Main.java:20: 错误: 需要class, interface或enum
            for (int j = 1; j < n - i; ++j) {
            ^
0_0_28140542_23947\Main.java:20: 错误: 需要class, interface或enum
            for (int j = 1; j < n - i; ++j) {
                            ^
0_0_28140542_23947\Main.java:20: 错误: 需要class, interface或enum
            for (int j = 1; j < n - i; ++j) {
                                       ^
0_0_28140542_23947\Main.java:22: 错误: 需要class, interface或enum
                swap(data[j - 1], data[j]);
                ^
0_0_28140542_23947\Main.java:23: 错误: 需要class, interface或enum
                swapped = true;
                ^
0_0_28140542_23947\Main.java:24: 错误: 需要class, interface或enum
            }
            ^
0_0_28140542_23947\Main.java:26: 错误: 需要class, interface或enum
        }
        ^
0_0_28140542_23947\Main.java:30: 错误: 需要class, interface或enum
        for (int i = 0; i < data.size(); ++i) {
                        ^
0_0_28140542_23947\Main.java:30: 错误: 需要class, interface或enum
        for (int i = 0; i < data.size(); ++i) {
                                         ^
0_0_28140542_23947\Main.java:32: 错误: 需要class, interface或enum
            int j = i - 1;
            ^
0_0_28140542_23947\Main.java:33: 错误: 需要class, interface或enum
            while (j >= 0 && data[j] >= tmp) {
            ^
0_0_28140542_23947\Main.java:35: 错误: 需要class, interface或enum
                j--;
                ^
0_0_28140542_23947\Main.java:36: 错误: 需要class, interface或enum
            }
            ^
0_0_28140542_23947\Main.java:38: 错误: 需要class, interface或enum
        }
        ^
0_0_28140542_23947\Main.java:43: 错误: 需要class, interface或enum
        for (int i = 0; i < n - 1; ++i) {
        ^
0_0_28140542_23947\Main.java:43: 错误: 需要class, interface或enum
        for (int i = 0; i < n - 1; ++i) {
                        ^
0_0_28140542_23947\Main.java:43: 错误: 需要class, interface或enum
        for (int i = 0; i < n - 1; ++i) {
                                   ^
0_0_28140542_23947\Main.java:45: 错误: 需要class, interface或enum
            for (int j = i + 1; j < n; ++j) {
            ^
0_0_28140542_23947\Main.java:45: 错误: 需要class, interface或enum
            for (int j = i + 1; j < n; ++j) {
                                ^
0_0_28140542_23947\Main.java:45: 错误: 需要class, interface或enum
            for (int j = i + 1; j < n; ++j) {
                                       ^
0_0_28140542_23947\Main.java:47: 错误: 需要class, interface或enum
            }
            ^
0_0_28140542_23947\Main.java:50: 错误: 需要class, interface或enum
            }
            ^
0_0_28140542_23947\Main.java:56: 错误: 需要class, interface或enum
        for (int i = n / 2 - 1; i >= 0; --i) {
        ^
0_0_28140542_23947\Main.java:56: 错误: 需要class, interface或enum
        for (int i = n / 2 - 1; i >= 0; --i) {
                                ^
0_0_28140542_23947\Main.java:56: 错误: 需要class, interface或enum
        for (int i = n / 2 - 1; i >= 0; --i) {
                                        ^
0_0_28140542_23947\Main.java:58: 错误: 需要class, interface或enum
        }
        ^
0_0_28140542_23947\Main.java:59: 错误: 需要class, interface或enum
        for (int i = 0; i < n - 1; ++i) {
                        ^
0_0_28140542_23947\Main.java:59: 错误: 需要class, interface或enum
        for (int i = 0; i < n - 1; ++i) {
                                   ^
0_0_28140542_23947\Main.java:61: 错误: 需要class, interface或enum
            adjust(0, n - i - 2);
            ^
0_0_28140542_23947\Main.java:62: 错误: 需要class, interface或enum
        }
        ^
0_0_28140542_23947\Main.java:67: 错误: 需要class, interface或enum
    }
    ^
0_0_28140542_23947\Main.java:72: 错误: 需要class, interface或enum
    }
    ^
0_0_28140542_23947\Main.java:75: 错误: 需要class, interface或enum
        for (int i = 0; i < data.size(); ++i) 
                        ^
0_0_28140542_23947\Main.java:75: 错误: 需要class, interface或enum
        for (int i = 0; i < data.size(); ++i) 
                                         ^
0_0_28140542_23947\Main.java:77: 错误: 需要class, interface或enum
        cout << endl;
        ^
0_0_28140542_23947\Main.java:78: 错误: 需要class, interface或enum
    }
    ^
0_0_28140542_23947\Main.java:81: 错误: 需要class, interface或enum
        for (int i = 1; i < data.size(); ++i) 
                        ^
0_0_28140542_23947\Main.java:81: 错误: 需要class, interface或enum
        for (int i = 1; i < data.size(); ++i) 
                                         ^
0_0_28140542_23947\Main.java:83: 错误: 需要class, interface或enum
        return true;
        ^
0_0_28140542_23947\Main.java:84: 错误: 需要class, interface或enum
    }
    ^
0_0_28140542_23947\Main.java:88: 错误: 需要class, interface或enum
        else return data[index];
        ^
0_0_28140542_23947\Main.java:89: 错误: 需要class, interface或enum
    }
    ^
0_0_28140542_23947\Main.java:91: 错误: 需要class, interface或enum
    int size() const { return data.size(); }
                                           ^
0_0_28140542_23947\Main.java:95: 错误: 需要class, interface或enum
        a = b;
        ^
0_0_28140542_23947\Main.java:96: 错误: 需要class, interface或enum
        b = t;
        ^
0_0_28140542_23947\Main.java:97: 错误: 需要class, interface或enum
    }
    ^
0_0_28140542_23947\Main.java:101: 错误: 需要class, interface或enum
        int i = start;
        ^
0_0_28140542_23947\Main.java:102: 错误: 需要class, interface或enum
        int tmp = data[start];
        ^
0_0_28140542_23947\Main.java:103: 错


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-10 12:11:20, Gzip enabled