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_35987367_19079\Main.java:1: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_35987367_19079\Main.java:1: 错误: 需要class, interface或enum
#include<cstdio>
        ^
0_0_35987367_19079\Main.java:2: 错误: 非法字符: '#'
#include<cstring>
^
0_0_35987367_19079\Main.java:3: 错误: 非法字符: '#'
#include<cmath>
^
0_0_35987367_19079\Main.java:4: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_35987367_19079\Main.java:6: 错误: 需要class, interface或enum
const int MAXN = 100010;
^
0_0_35987367_19079\Main.java:8: 错误: 需要class, interface或enum
int n, m, k, block;
^
0_0_35987367_19079\Main.java:9: 错误: 需要class, interface或enum
int a[MAXN], b[MAXN], cnt[MAXN], bel[MAXN], ans[MAXN];
^
0_0_35987367_19079\Main.java:10: 错误: 需要class, interface或enum
int f[MAXN][20][2], cur;
^
0_0_35987367_19079\Main.java:12: 错误: 需要class, interface或enum
struct Mo{
^
0_0_35987367_19079\Main.java:14: 错误: 需要class, interface或enum
    friend bool operator < (const Mo &a, const Mo &b){
    ^
0_0_35987367_19079\Main.java:16: 错误: 需要class, interface或enum
        return bel[a.l] < bel[b.l];
        ^
0_0_35987367_19079\Main.java:17: 错误: 需要class, interface或enum
    }
    ^
0_0_35987367_19079\Main.java:20: 错误: 需要class, interface或enum
inline int read()
^
0_0_35987367_19079\Main.java:22: 错误: 需要class, interface或enum
    char c = getchar(); int x = 0, f = 1;
                        ^
0_0_35987367_19079\Main.java:23: 错误: 需要class, interface或enum
    while(c < '0' || c > '9'){if(c == '-') f = -1; c = getchar();}
    ^
0_0_35987367_19079\Main.java:23: 错误: 需要class, interface或enum
    while(c < '0' || c > '9'){if(c == '-') f = -1; c = getchar();}
                                                   ^
0_0_35987367_19079\Main.java:23: 错误: 需要class, interface或enum
    while(c < '0' || c > '9'){if(c == '-') f = -1; c = getchar();}
                                                                 ^
0_0_35987367_19079\Main.java:24: 错误: 需要class, interface或enum
    while(c >= '0' && c <= '9'){x = x * 10 + (c - '0'); c = getchar();}
                                                        ^
0_0_35987367_19079\Main.java:24: 错误: 需要class, interface或enum
    while(c >= '0' && c <= '9'){x = x * 10 + (c - '0'); c = getchar();}
                                                                      ^
0_0_35987367_19079\Main.java:26: 错误: 需要class, interface或enum
}
^
0_0_35987367_19079\Main.java:30: 错误: 需要class, interface或enum
    for(int i = 1; i <= n; i ++) f[i][0][0] = f[i][0][1] = a[i];
                   ^
0_0_35987367_19079\Main.java:30: 错误: 需要class, interface或enum
    for(int i = 1; i <= n; i ++) f[i][0][0] = f[i][0][1] = a[i];
                           ^
0_0_35987367_19079\Main.java:31: 错误: 需要class, interface或enum
    int t = log(n) / log(2) + 1;
    ^
0_0_35987367_19079\Main.java:32: 错误: 需要class, interface或enum
    for(int j = 1; j < t; j ++){
    ^
0_0_35987367_19079\Main.java:32: 错误: 需要class, interface或enum
    for(int j = 1; j < t; j ++){
                   ^
0_0_35987367_19079\Main.java:32: 错误: 需要class, interface或enum
    for(int j = 1; j < t; j ++){
                          ^
0_0_35987367_19079\Main.java:33: 错误: 需要class, interface或enum
        for(int i = 1; i <= n - (1 << j) + 1; i ++){
                       ^
0_0_35987367_19079\Main.java:33: 错误: 需要class, interface或enum
        for(int i = 1; i <= n - (1 << j) + 1; i ++){
                                              ^
0_0_35987367_19079\Main.java:35: 错误: 需要class, interface或enum
            f[i][j][1] = max(f[i][j - 1][1], f[i + (1 << (j - 1))][j - 1][1]);
            ^
0_0_35987367_19079\Main.java:36: 错误: 需要class, interface或enum
        }
        ^
0_0_35987367_19079\Main.java:43: 错误: 需要class, interface或enum
    return min(f[l][k][0], f[r - (1 << k) + 1][k][0]);
    ^
0_0_35987367_19079\Main.java:44: 错误: 需要class, interface或enum
}
^
0_0_35987367_19079\Main.java:49: 错误: 需要class, interface或enum
    return max(f[l][k][1], f[r - (1 << k) + 1][k][1]);
    ^
0_0_35987367_19079\Main.java:50: 错误: 需要class, interface或enum
}
^
0_0_35987367_19079\Main.java:55: 错误: 需要class, interface或enum
}
^
0_0_35987367_19079\Main.java:60: 错误: 需要class, interface或enum
}
^
0_0_35987367_19079\Main.java:67: 错误: 需要class, interface或enum
    while(T --){
    ^
0_0_35987367_19079\Main.java:68: 错误: 需要class, interface或enum
        n = read(); block = sqrt(n);
                    ^
0_0_35987367_19079\Main.java:69: 错误: 需要class, interface或enum
        m = read();
        ^
0_0_35987367_19079\Main.java:70: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i ++){
        ^
0_0_35987367_19079\Main.java:70: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i ++){
                       ^
0_0_35987367_19079\Main.java:70: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i ++){
                               ^
0_0_35987367_19079\Main.java:72: 错误: 需要class, interface或enum
            bel[i] = (i - 1)/block + 1;
            ^
0_0_35987367_19079\Main.java:73: 错误: 需要class, interface或enum
        }
        ^
0_0_35987367_19079\Main.java:75: 错误: 需要class, interface或enum
        sort(b + 1, b + n + 1);
        ^
0_0_35987367_19079\Main.java:76: 错误: 需要class, interface或enum
        k = unique(b + 1, b + n + 1) - b - 1;
        ^
0_0_35987367_19079\Main.java:77: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i ++) a[i] = lower_bound(b + 1, b + k + 1, a[i]) - b;
        ^
0_0_35987367_19079\Main.java:77: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i ++) a[i] = lower_bound(b + 1, b + k + 1, a[i]) - b;
                       ^
0_0_35987367_19079\Main.java:77: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i ++) a[i] = lower_bound(b + 1, b + k + 1, a[i]) - b;
                               ^
0_0_35987367_19079\Main.java:78: 错误: 需要class, interface或enum
        for(int i = 1; i <= m; i ++){
        ^
0_0_35987367_19079\Main.java:78: 错误: 需要class, interface或enum
        for(int i = 1; i <= m; i ++){
                       ^
0_0_35987367_19079\Main.java:78: 错误: 需要class, interface或enum
        for(int i = 1; i <= m; i ++){
                               ^
0_0_35987367_19079\Main.java:79: 错误: 需要class, interface或enum
            q[i].l = read(); q[i].r = read();
                             ^
0_0_35987367_19079\Main.java:80: 错误: 需要class, interface或enum
            q[i].id = i;
            ^
0_0_35987367_19079\Main.java:81: 错误: 需要class, interface或enum
        }
        ^
0_0_35987367_19079\Main.java:83: 错误: 需要class, interface或enum
        int l = 1, r = 0;
        ^
0_0_35987367_19079\Main.java:84: 错误: 需要class, interface或enum
        cur = 0;
        ^
0_0_35987367_19079\Main.java:85: 错误: 需要class, interface或enum
        memset(cnt, 0, sizeof(cnt));
        ^
0_0_35987367_19079\Main.java:86: 错误: 需要class, interface或enum
        for(int i = 1; i <= m; i ++){
        ^
0_0_35987367_19079\Main.java:86: 错误: 需要class, interface或enum
        for(int i = 1; i <= m; i ++){
                       ^
0_0_35987367_19079\Main.java:86: 错误: 需要class, interface或enum
        for(int i = 1; i <= m; i ++){
                               ^
0_0_35987367_19079\Main.java:88: 错误: 需要class, interface或enum
            int ma = fmax(q[i].l, q[i].r);
            ^
0_0_35987367_19079\Main.java:89: 错误: 需要class, interface或enum
            while(l < q[i].l) del(a[l ++]);
            ^
0_0_35987367_19079\Main.java:90: 错误: 需要class, interface或enum
            while(l > q[i].l) add(a[-- l]);
            ^
0_0_35987367_19079\Main.java:91: 错误: 需要class, interface或enum
            while(r < q[i].r) add(a[++ r]);
            ^
0_0_35987367_19079\Main.java:92: 错误: 需要class, interface或enum
            while(r > q[i].r) del(a[r --]);
            ^
0_0_35987367_19079\Main.java:93: 错误: 需要class, interface或enum
            ans[q[i].id] = ma - mi + 1 == cur ? 1 : 0;
            ^
0_0_35987367_19079\Main.java:94: 错误: 需要class, interface或enum
        }
        ^
0_0_35987367_19079\Main.java:95: 错误: 需要class, interface或enum
        for(int i = 1; i <= m; i ++)
                       ^
0_0_35987367_19079\Main.java:95: 错误: 需要class, interface或enum
        for(int i = 1; i <= m; i ++)
                               ^
0_0_35987367_19079\Main.java:97: 错误: 需要class, interface或enum
    }
    ^
0_0_35987367_19079\Main.java:99: 错误: 需要class, interface或enum
}
^
73 个错误


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-22 21:28:52, Gzip enabled