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_34641343_7205\Main.java:14: 错误: 需要';'
    public static void main(String[]args) 
                                         ^
0_0_34641343_7205\Main.java:18: 错误: 非法的类型开始
        while (scanner.hasNext())
        ^
0_0_34641343_7205\Main.java:18: 错误: 需要<标识符>
        while (scanner.hasNext())
                              ^
0_0_34641343_7205\Main.java:18: 错误: 需要';'
        while (scanner.hasNext())
                               ^
0_0_34641343_7205\Main.java:18: 错误: 非法的类型开始
        while (scanner.hasNext())
                                ^
0_0_34641343_7205\Main.java:18: 错误: 需要<标识符>
        while (scanner.hasNext())
                                 ^
0_0_34641343_7205\Main.java:19: 错误: 需要';'
        {
         ^
0_0_34641343_7205\Main.java:20: 错误: 非法的类型开始
            N = scanner.nextInt();
              ^
0_0_34641343_7205\Main.java:20: 错误: 需要';'
            N = scanner.nextInt();
                       ^
0_0_34641343_7205\Main.java:20: 错误: 方法声明无效; 需要返回类型
            N = scanner.nextInt();
                        ^
0_0_34641343_7205\Main.java:21: 错误: 需要<标识符>
            M = scanner.nextInt();
             ^
0_0_34641343_7205\Main.java:22: 错误: 需要<标识符>
            K = scanner.nextInt();
             ^
0_0_34641343_7205\Main.java:25: 错误: 非法的类型开始
            for (int i = 0; i<M; i++)
            ^
0_0_34641343_7205\Main.java:25: 错误: 需要')'
            for (int i = 0; i<M; i++)
                      ^
0_0_34641343_7205\Main.java:25: 错误: 非法的类型开始
            for (int i = 0; i<M; i++)
                         ^
0_0_34641343_7205\Main.java:25: 错误: 需要<标识符>
            for (int i = 0; i<M; i++)
                          ^
0_0_34641343_7205\Main.java:25: 错误: 需要';'
            for (int i = 0; i<M; i++)
                           ^
0_0_34641343_7205\Main.java:25: 错误: 需要>
            for (int i = 0; i<M; i++)
                               ^
0_0_34641343_7205\Main.java:25: 错误: 需要'('
            for (int i = 0; i<M; i++)
                                  ^
0_0_34641343_7205\Main.java:30: 错误: 非法的类型开始
            for (int i = 0; i<N; i++)
            ^
0_0_34641343_7205\Main.java:30: 错误: 需要')'
            for (int i = 0; i<N; i++)
                      ^
0_0_34641343_7205\Main.java:30: 错误: 非法的类型开始
            for (int i = 0; i<N; i++)
                         ^
0_0_34641343_7205\Main.java:30: 错误: 需要<标识符>
            for (int i = 0; i<N; i++)
                          ^
0_0_34641343_7205\Main.java:30: 错误: 需要';'
            for (int i = 0; i<N; i++)
                           ^
0_0_34641343_7205\Main.java:30: 错误: 需要>
            for (int i = 0; i<N; i++)
                               ^
0_0_34641343_7205\Main.java:30: 错误: 需要'('
            for (int i = 0; i<N; i++)
                                  ^
0_0_34641343_7205\Main.java:38: 错误: 需要<标识符>
           Arrays.sort(shirt, new Comparator<Shirt>() {
                      ^
0_0_34641343_7205\Main.java:38: 错误: 需要<标识符>
           Arrays.sort(shirt, new Comparator<Shirt>() {
                            ^
0_0_34641343_7205\Main.java:38: 错误: 非法的类型开始
           Arrays.sort(shirt, new Comparator<Shirt>() {
                              ^
0_0_34641343_7205\Main.java:38: 错误: 需要')'
           Arrays.sort(shirt, new Comparator<Shirt>() {
                                 ^
0_0_34641343_7205\Main.java:38: 错误: 需要';'
           Arrays.sort(shirt, new Comparator<Shirt>() {
                                            ^
0_0_34641343_7205\Main.java:38: 错误: 需要<标识符>
           Arrays.sort(shirt, new Comparator<Shirt>() {
                                                  ^
0_0_34641343_7205\Main.java:38: 错误: 非法的类型开始
           Arrays.sort(shirt, new Comparator<Shirt>() {
                                                   ^
0_0_34641343_7205\Main.java:38: 错误: 需要<标识符>
           Arrays.sort(shirt, new Comparator<Shirt>() {
                                                    ^
0_0_34641343_7205\Main.java:38: 错误: 需要';'
           Arrays.sort(shirt, new Comparator<Shirt>() {
                                                     ^
0_0_34641343_7205\Main.java:45: 错误: 需要class, interface或enum
           });
            ^
0_0_34641343_7205\Main.java:46: 错误: 需要class, interface或enum
            for(int i=0;i<K;i++)
            ^
0_0_34641343_7205\Main.java:46: 错误: 需要class, interface或enum
            for(int i=0;i<K;i++)
                        ^
0_0_34641343_7205\Main.java:46: 错误: 需要class, interface或enum
            for(int i=0;i<K;i++)
                            ^
0_0_34641343_7205\Main.java:48: 错误: 需要class, interface或enum
            Arrays.sort(num);
            ^
0_0_34641343_7205\Main.java:49: 错误: 需要class, interface或enum
            for(int i=K-1;i>0;i--)
            ^
0_0_34641343_7205\Main.java:49: 错误: 需要class, interface或enum
            for(int i=K-1;i>0;i--)
                          ^
0_0_34641343_7205\Main.java:49: 错误: 需要class, interface或enum
            for(int i=K-1;i>0;i--)
                              ^
0_0_34641343_7205\Main.java:51: 错误: 需要class, interface或enum
            System.out.println(num[0]);
            ^
0_0_34641343_7205\Main.java:52: 错误: 需要class, interface或enum
        }
        ^
45 个错误


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 12:30:48, Gzip enabled