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_38047135_19846\Main.java:2: 错误: 需要class, interface或enum
                S.append(b);
                ^
0_0_38047135_19846\Main.java:3: 错误: 需要class, interface或enum
            }
            ^
0_0_38047135_19846\Main.java:5: 错误: 需要class, interface或enum
            String str = S.toString();
            ^
0_0_38047135_19846\Main.java:6: 错误: 需要class, interface或enum
            char[] arr = str.toCharArray();
            ^
0_0_38047135_19846\Main.java:7: 错误: 需要class, interface或enum
            for (int i = 0; i < arr.length; i++) {
            ^
0_0_38047135_19846\Main.java:7: 错误: 需要class, interface或enum
            for (int i = 0; i < arr.length; i++) {
                            ^
0_0_38047135_19846\Main.java:7: 错误: 需要class, interface或enum
            for (int i = 0; i < arr.length; i++) {
                                            ^
0_0_38047135_19846\Main.java:9: 错误: 需要class, interface或enum
            }
            ^
0_0_38047135_19846\Main.java:11: 错误: 需要class, interface或enum
            min=arr[0]-48;
            ^
0_0_38047135_19846\Main.java:12: 错误: 需要class, interface或enum
           sc:
           ^
0_0_38047135_19846\Main.java:14: 错误: 需要class, interface或enum
               for (int i = 0; i <arr.length; i++){
                               ^
0_0_38047135_19846\Main.java:14: 错误: 需要class, interface或enum
               for (int i = 0; i <arr.length; i++){
                                              ^
0_0_38047135_19846\Main.java:17: 错误: 需要class, interface或enum
               }
               ^
0_0_38047135_19846\Main.java:19: 错误: 需要class, interface或enum
                   for (int i = 0; i < arr.length; i++) {
                                   ^
0_0_38047135_19846\Main.java:19: 错误: 需要class, interface或enum
                   for (int i = 0; i < arr.length; i++) {
                                                   ^
0_0_38047135_19846\Main.java:22: 错误: 需要class, interface或enum
                           maxi = i;
                           ^
0_0_38047135_19846\Main.java:23: 错误: 需要class, interface或enum
                       }
                       ^
0_0_38047135_19846\Main.java:27: 错误: 需要class, interface或enum
                           mins = i;
                           ^
0_0_38047135_19846\Main.java:28: 错误: 需要class, interface或enum
                       }
                       ^
0_0_38047135_19846\Main.java:31: 错误: 需要class, interface或enum
                      arr[mins]=(char)(arr[mins]-48+(arr[maxi]-48-sum)+48);
                      ^
0_0_38047135_19846\Main.java:32: 错误: 需要class, interface或enum
                      arr[maxi]=(char)(sum+48);
                      ^
0_0_38047135_19846\Main.java:33: 错误: 需要class, interface或enum
                       min = arr[0] - 48;
                       ^
0_0_38047135_19846\Main.java:34: 错误: 需要class, interface或enum
                       max = 0;
                       ^
0_0_38047135_19846\Main.java:35: 错误: 需要class, interface或enum
                       m = 0;
                       ^
0_0_38047135_19846\Main.java:36: 错误: 需要class, interface或enum
               }else break sc;
               ^
0_0_38047135_19846\Main.java:37: 错误: 需要class, interface或enum
           }
           ^
0_0_38047135_19846\Main.java:39: 错误: 需要class, interface或enum
            System.out.println("The minimum number of moves is " + lol);
            ^
0_0_38047135_19846\Main.java:40: 错误: 需要class, interface或enum
            System.out.println(" ");
            ^
0_0_38047135_19846\Main.java:41: 错误: 需要class, interface或enum
            j++;
            ^
0_0_38047135_19846\Main.java:42: 错误: 需要class, interface或enum
            }
            ^
30 个错误


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-13 10:27:22, Gzip enabled