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_39753719_27941\Main.java:26: 错误: 需要class, interface或enum
}public static int KMP() {
               ^
0_0_39753719_27941\Main.java:28: 错误: 需要class, interface或enum
    int i = 0, j = 0;
    ^
0_0_39753719_27941\Main.java:29: 错误: 需要class, interface或enum
    while (i < n && j < m) {
    ^
0_0_39753719_27941\Main.java:32: 错误: 需要class, interface或enum
            j++;
            ^
0_0_39753719_27941\Main.java:34: 错误: 需要class, interface或enum
        } else {
        ^
0_0_39753719_27941\Main.java:37: 错误: 需要class, interface或enum
        }
        ^
0_0_39753719_27941\Main.java:41: 错误: 需要class, interface或enum
        } else {
        ^
0_0_39753719_27941\Main.java:44: 错误: 需要class, interface或enum
        }
        ^
0_0_39753719_27941\Main.java:48: 错误: 需要class, interface或enum
public static void main(String[] args) {
              ^
0_0_39753719_27941\Main.java:50: 错误: 需要class, interface或enum
    Scanner fin = new Scanner(System.in);
    ^
0_0_39753719_27941\Main.java:51: 错误: 需要class, interface或enum
    T = fin.nextInt();
    ^
0_0_39753719_27941\Main.java:52: 错误: 需要class, interface或enum
    while (T-- > 0) {
    ^
0_0_39753719_27941\Main.java:54: 错误: 需要class, interface或enum
        m = fin.nextInt();
        ^
0_0_39753719_27941\Main.java:55: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) {
        ^
0_0_39753719_27941\Main.java:55: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) {
                        ^
0_0_39753719_27941\Main.java:55: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) {
                               ^
0_0_39753719_27941\Main.java:57: 错误: 需要class, interface或enum
            a[i] = x;
            ^
0_0_39753719_27941\Main.java:58: 错误: 需要class, interface或enum
        }
        ^
0_0_39753719_27941\Main.java:59: 错误: 需要class, interface或enum
        for (int i = 0; i < m; i++) {
                        ^
0_0_39753719_27941\Main.java:59: 错误: 需要class, interface或enum
        for (int i = 0; i < m; i++) {
                               ^
0_0_39753719_27941\Main.java:61: 错误: 需要class, interface或enum
            b[i] = x;
            ^
0_0_39753719_27941\Main.java:62: 错误: 需要class, interface或enum
        }
        ^
0_0_39753719_27941\Main.java:64: 错误: 需要class, interface或enum
        if (k != -1) {
        ^
0_0_39753719_27941\Main.java:66: 错误: 需要class, interface或enum
        } else {
        ^
0_0_39753719_27941\Main.java:68: 错误: 需要class, interface或enum
        }
        ^
25 个错误


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-17 21:18:39, Gzip enabled