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_39786992_26618\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_39786992_26618\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_39786992_26618\Main.java:2: 错误: 非法字符: '#'
#include <cstring>
^
0_0_39786992_26618\Main.java:4: 错误: 需要class, interface或enum
char arr[1000], brr[1000];
^
0_0_39786992_26618\Main.java:5: 错误: 需要class, interface或enum
int nt[1005];
^
0_0_39786992_26618\Main.java:6: 错误: 需要class, interface或enum
void getnext() ///求next数组
^
0_0_39786992_26618\Main.java:9: 错误: 需要class, interface或enum
    nt[0] = -1;
    ^
0_0_39786992_26618\Main.java:10: 错误: 需要class, interface或enum
    while(j < len) ///len为模式串的长度
    ^
0_0_39786992_26618\Main.java:15: 错误: 需要class, interface或enum
            j++;
            ^
0_0_39786992_26618\Main.java:16: 错误: 需要class, interface或enum
            nt[j] = k;
            ^
0_0_39786992_26618\Main.java:17: 错误: 需要class, interface或enum
        }
        ^
0_0_39786992_26618\Main.java:21: 错误: 需要class, interface或enum
        }
        ^
0_0_39786992_26618\Main.java:31: 错误: 需要class, interface或enum
        cin >> brr;
        ^
0_0_39786992_26618\Main.java:32: 错误: 需要class, interface或enum
        memset(nt, 0, sizeof(nt));
        ^
0_0_39786992_26618\Main.java:33: 错误: 需要class, interface或enum
        getnext();
        ^
0_0_39786992_26618\Main.java:34: 错误: 需要class, interface或enum
        int len1 = strlen(arr), len2 = strlen(brr), ans = 0, i = 0, j = 0;
        ^
0_0_39786992_26618\Main.java:35: 错误: 需要class, interface或enum
        while(i < len1) ///开始字符串匹配
        ^
0_0_39786992_26618\Main.java:39: 错误: 需要class, interface或enum
            if(arr[i] == brr[j] || j == -1)
            ^
0_0_39786992_26618\Main.java:42: 错误: 需要class, interface或enum
                j++;
                ^
0_0_39786992_26618\Main.java:43: 错误: 需要class, interface或enum
            }
            ^
0_0_39786992_26618\Main.java:46: 错误: 需要class, interface或enum
        }
        ^
0_0_39786992_26618\Main.java:49: 错误: 需要class, interface或enum
        cout << ans << endl;
        ^
0_0_39786992_26618\Main.java:50: 错误: 需要class, interface或enum
    }
    ^
0_0_39786992_26618\Main.java:52: 错误: 需要class, interface或enum
}
^
24 个错误


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-16 10:16:18, Gzip enabled