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_18439366_25348\Main.java:2: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_18439366_25348\Main.java:2: 错误: 需要class, interface或enum
#include <cstdio>
         ^
0_0_18439366_25348\Main.java:4: 错误: 需要'{'
template <class T>
                 ^
0_0_18439366_25348\Main.java:5: 错误: 需要<标识符>
void scan(T & a)
           ^
0_0_18439366_25348\Main.java:5: 错误: 需要';'
void scan(T & a)
             ^
0_0_18439366_25348\Main.java:5: 错误: 非法的类型开始
void scan(T & a)
               ^
0_0_18439366_25348\Main.java:5: 错误: 需要<标识符>
void scan(T & a)
                ^
0_0_18439366_25348\Main.java:6: 错误: 需要';'
{
 ^
0_0_18439366_25348\Main.java:7: 错误: 非法的类型开始
    a = 0;
      ^
0_0_18439366_25348\Main.java:7: 错误: 需要<标识符>
    a = 0;
       ^
0_0_18439366_25348\Main.java:9: 错误: 需要';'
    char ch = std::getchar();
                          ^
0_0_18439366_25348\Main.java:10: 错误: 非法的类型开始
    if (ch == '-')
    ^
0_0_18439366_25348\Main.java:10: 错误: 需要<标识符>
    if (ch == '-')
          ^
0_0_18439366_25348\Main.java:10: 错误: 需要';'
    if (ch == '-')
             ^
0_0_18439366_25348\Main.java:10: 错误: 非法的类型开始
    if (ch == '-')
                 ^
0_0_18439366_25348\Main.java:12: 错误: 非法的类型开始
    else if (ch >= '0' && ch <= '9')
    ^
0_0_18439366_25348\Main.java:12: 错误: 需要';'
    else if (ch >= '0' && ch <= '9')
        ^
0_0_18439366_25348\Main.java:12: 错误: 非法的类型开始
    else if (ch >= '0' && ch <= '9')
            ^
0_0_18439366_25348\Main.java:12: 错误: 需要';'
    else if (ch >= '0' && ch <= '9')
               ^
0_0_18439366_25348\Main.java:12: 错误: 需要<标识符>
    else if (ch >= '0' && ch <= '9')
                            ^
0_0_18439366_25348\Main.java:12: 错误: 非法的类型开始
    else if (ch >= '0' && ch <= '9')
                                ^
0_0_18439366_25348\Main.java:12: 错误: 需要<标识符>
    else if (ch >= '0' && ch <= '9')
                                   ^
0_0_18439366_25348\Main.java:12: 错误: 需要';'
    else if (ch >= '0' && ch <= '9')
                                    ^
0_0_18439366_25348\Main.java:13: 错误: 非法的类型开始
        a = ch - '0';
          ^
0_0_18439366_25348\Main.java:13: 错误: 需要';'
        a = ch - '0';
              ^
0_0_18439366_25348\Main.java:15: 错误: 非法的类型开始
    while ((ch = std::getchar()) >= '0' && ch <= '9')
    ^
0_0_18439366_25348\Main.java:15: 错误: 非法的类型开始
    while ((ch = std::getchar()) >= '0' && ch <= '9')
           ^
0_0_18439366_25348\Main.java:15: 错误: 需要')'
    while ((ch = std::getchar()) >= '0' && ch <= '9')
            ^
0_0_18439366_25348\Main.java:15: 错误: 需要';'
    while ((ch = std::getchar()) >= '0' && ch <= '9')
              ^
0_0_18439366_25348\Main.java:15: 错误: 需要<标识符>
    while ((ch = std::getchar()) >= '0' && ch <= '9')
                    ^
0_0_18439366_25348\Main.java:15: 错误: 方法声明无效; 需要返回类型
    while ((ch = std::getchar()) >= '0' && ch <= '9')
                      ^
0_0_18439366_25348\Main.java:15: 错误: 需要';'
    while ((ch = std::getchar()) >= '0' && ch <= '9')
                               ^
0_0_18439366_25348\Main.java:17: 错误: 非法的类型开始
    if (flag) a = -a;
    ^
0_0_18439366_25348\Main.java:17: 错误: 需要<标识符>
    if (flag) a = -a;
            ^
0_0_18439366_25348\Main.java:17: 错误: 需要';'
    if (flag) a = -a;
             ^
0_0_18439366_25348\Main.java:20: 错误: 需要class, interface或enum
int const maxn = 1000007;
^
0_0_18439366_25348\Main.java:21: 错误: 需要class, interface或enum
int a[maxn];
^
0_0_18439366_25348\Main.java:22: 错误: 需要class, interface或enum
int b[maxn];
^
0_0_18439366_25348\Main.java:23: 错误: 需要class, interface或enum
int next[maxn];
^
0_0_18439366_25348\Main.java:24: 错误: 需要class, interface或enum
int da[maxn];
^
0_0_18439366_25348\Main.java:25: 错误: 需要class, interface或enum
int n, m, p, len;
^
0_0_18439366_25348\Main.java:26: 错误: 需要class, interface或enum
bool calc_next;
^
0_0_18439366_25348\Main.java:28: 错误: 需要class, interface或enum
void get_next()
^
0_0_18439366_25348\Main.java:31: 错误: 需要class, interface或enum
    next[0] = -1;
    ^
0_0_18439366_25348\Main.java:32: 错误: 需要class, interface或enum
    while (j < len2) {
    ^
0_0_18439366_25348\Main.java:34: 错误: 需要class, interface或enum
        else k = next[k];
        ^
0_0_18439366_25348\Main.java:35: 错误: 需要class, interface或enum
    }
    ^
0_0_18439366_25348\Main.java:41: 错误: 需要class, interface或enum
    get_next();
    ^
0_0_18439366_25348\Main.java:42: 错误: 需要class, interface或enum
    int sum = 0;
    ^
0_0_18439366_25348\Main.java:43: 错误: 需要class, interface或enum
    while (j < len2 && i < len) {
    ^
0_0_18439366_25348\Main.java:45: 错误: 需要class, interface或enum
            i++; j++;
                 ^
0_0_18439366_25348\Main.java:46: 错误: 需要class, interface或enum
        } else j = next[j];
        ^
0_0_18439366_25348\Main.java:47: 错误: 需要class, interface或enum
        if (j == len2) {
        ^
0_0_18439366_25348\Main.java:48: 错误: 需要class, interface或enum
            sum++; j = next[j];
                   ^
0_0_18439366_25348\Main.java:49: 错误: 需要class, interface或enum
        }
        ^
0_0_18439366_25348\Main.java:52: 错误: 需要class, interface或enum
}
^
0_0_18439366_25348\Main.java:56: 错误: 需要class, interface或enum
    int T; scan(T);
           ^
0_0_18439366_25348\Main.java:57: 错误: 需要class, interface或enum
    for (int ti = 1; ti <= T; ti++) {
    ^
0_0_18439366_25348\Main.java:57: 错误: 需要class, interface或enum
    for (int ti = 1; ti <= T; ti++) {
                     ^
0_0_18439366_25348\Main.java:57: 错误: 需要class, interface或enum
    for (int ti = 1; ti <= T; ti++) {
                              ^
0_0_18439366_25348\Main.java:59: 错误: 需要class, interface或enum
        scan(n); scan(m); scan(p);
        ^
0_0_18439366_25348\Main.java:59: 错误: 需要class, interface或enum
        scan(n); scan(m); scan(p);
                 ^
0_0_18439366_25348\Main.java:59: 错误: 需要class, interface或enum
        scan(n); scan(m); scan(p);
                          ^
0_0_18439366_25348\Main.java:60: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) scan(da[i]);
        ^
0_0_18439366_25348\Main.java:60: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) scan(da[i]);
                        ^
0_0_18439366_25348\Main.java:60: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) scan(da[i]);
                               ^
0_0_18439366_25348\Main.java:61: 错误: 需要class, interface或enum
        for (int i = 0; i < m; i++) scan(b[i]);
        ^
0_0_18439366_25348\Main.java:61: 错误: 需要class, interface或enum
        for (int i = 0; i < m; i++) scan(b[i]);
                        ^
0_0_18439366_25348\Main.java:61: 错误: 需要class, interface或enum
        for (int i = 0; i < m; i++) scan(b[i]);
                               ^
0_0_18439366_25348\Main.java:62: 错误: 需要class, interface或enum
        if (n / p + 1 < m) { printf("0\n"); continue; }
        ^
0_0_18439366_25348\Main.java:62: 错误: 需要class, interface或enum
        if (n / p + 1 < m) { printf("0\n"); continue; }
                                            ^
0_0_18439366_25348\Main.java:62: 错误: 需要class, interface或enum
        if (n / p + 1 < m) { printf("0\n"); continue; }
                                                      ^
0_0_18439366_25348\Main.java:64: 错误: 需要class, interface或enum
        calc_next = false;
        ^
0_0_18439366_25348\Main.java:65: 错误: 需要class, interface或enum
        for (int i = 0; i < p; i++) {
        ^
0_0_18439366_25348\Main.java:65: 错误: 需要class, interface或enum
        for (int i = 0; i < p; i++) {
                        ^
0_0_18439366_25348\Main.java:65: 错误: 需要class, interface或enum
        for (int i = 0; i < p; i++) {
                               ^
0_0_18439366_25348\Main.java:67: 错误: 需要class, interface或enum
            int tm = (n - i) / p + 1;
            ^
0_0_18439366_25348\Main.java:68: 错误: 需要class, interface或enum
            if (m > tm) break;
            ^
0_0_18439366_25348\Main.java:69: 错误: 需要class, interface或enum
            for (int j = i; j < n; j += p) a[len++] = da[j];
            ^
0_0_18439366_25348\Main.java:69: 错误: 需要class, interface或enum
            for (int j = i; j < n; j += p) a[len++] = da[j];
                            ^
0_0_18439366_25348\Main.java:69: 错误: 需要class, interface或enum
            for (int j = i; j < n; j += p) a[len++] = da[j];
                                   ^
0_0_18439366_25348\Main.java:70: 错误: 需要class, interface或enum
            ans += kmp();
            ^
0_0_18439366_25348\Main.java:71: 错误: 需要class, interface或enum
        }
        ^
0_0_18439366_25348\Main.java:73: 错误: 需要class, interface或enum
    }
    ^
84 个错误


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-25 16:36:13, Gzip enabled