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_38988842_24910\Main.java:6: 错误: 非法字符: '#'
#include<set>
^
0_0_38988842_24910\Main.java:6: 错误: 需要class, interface或enum
#include<set>
        ^
0_0_38988842_24910\Main.java:7: 错误: 非法字符: '#'
#include<map>
^
0_0_38988842_24910\Main.java:8: 错误: 非法字符: '#'
#include<queue>
^
0_0_38988842_24910\Main.java:9: 错误: 非法字符: '#'
#include<stack>
^
0_0_38988842_24910\Main.java:10: 错误: 非法字符: '#'
#include<cmath>
^
0_0_38988842_24910\Main.java:11: 错误: 非法字符: '#'
#include<string>
^
0_0_38988842_24910\Main.java:12: 错误: 非法字符: '#'
#include<vector>
^
0_0_38988842_24910\Main.java:13: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_38988842_24910\Main.java:14: 错误: 非法字符: '#'
#include<time.h>
^
0_0_38988842_24910\Main.java:15: 错误: 非法字符: '#'
#include<cstring>
^
0_0_38988842_24910\Main.java:16: 错误: 非法字符: '#'
#include<iostream>
^
0_0_38988842_24910\Main.java:17: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_38988842_24910\Main.java:18: 错误: 非法字符: '#'
#define INF 1<<30
^
0_0_38988842_24910\Main.java:19: 错误: 非法字符: '#'
#define MOD 1000000007
^
0_0_38988842_24910\Main.java:20: 错误: 非法字符: '#'
#define ll long long
^
0_0_38988842_24910\Main.java:21: 错误: 非法字符: '#'
#define lson l,m,rt<<1
^
0_0_38988842_24910\Main.java:22: 错误: 非法字符: '#'
#define key_value ch[ch[root][1]][0]
^
0_0_38988842_24910\Main.java:23: 错误: 非法字符: '#'
#define rson m+1,r,rt<<1|1
^
0_0_38988842_24910\Main.java:24: 错误: 非法字符: '#'
#define pi acos(-1.0)
^
0_0_38988842_24910\Main.java:26: 错误: 需要class, interface或enum
const int MAXN = ;
^
0_0_38988842_24910\Main.java:27: 错误: 需要class, interface或enum
struct node{
^
0_0_38988842_24910\Main.java:29: 错误: 需要class, interface或enum
    int next;
    ^
0_0_38988842_24910\Main.java:30: 错误: 需要class, interface或enum
}edge[MAXN*];
^
0_0_38988842_24910\Main.java:31: 错误: 需要class, interface或enum
int dp[MAXN*][],ind,pre[MAXN],a[MAXN],first[MAXN],rev[MAXN*],tot,dfn[MAXN*],vis[MAXN],fa[MAXN],n,m;
^
0_0_38988842_24910\Main.java:32: 错误: 需要class, interface或enum
void add(int x,int y){
^
0_0_38988842_24910\Main.java:34: 错误: 需要class, interface或enum
    edge[ind].next = pre[x];
    ^
0_0_38988842_24910\Main.java:35: 错误: 需要class, interface或enum
    pre[x] = ind ++;
    ^
0_0_38988842_24910\Main.java:36: 错误: 需要class, interface或enum
}
^
0_0_38988842_24910\Main.java:39: 错误: 需要class, interface或enum
}
^
0_0_38988842_24910\Main.java:42: 错误: 需要class, interface或enum
    rev[++tot] = rt;
    ^
0_0_38988842_24910\Main.java:43: 错误: 需要class, interface或enum
    fa[rt] = pa;
    ^
0_0_38988842_24910\Main.java:44: 错误: 需要class, interface或enum
    dfn[tot] = deq;
    ^
0_0_38988842_24910\Main.java:45: 错误: 需要class, interface或enum
    first[rt] = tot;
    ^
0_0_38988842_24910\Main.java:46: 错误: 需要class, interface或enum
    for(int i = pre[rt]; i != -; i = edge[i].next){
    ^
0_0_38988842_24910\Main.java:46: 错误: 需要class, interface或enum
    for(int i = pre[rt]; i != -; i = edge[i].next){
                         ^
0_0_38988842_24910\Main.java:46: 错误: 需要class, interface或enum
    for(int i = pre[rt]; i != -; i = edge[i].next){
                                 ^
0_0_38988842_24910\Main.java:48: 错误: 需要class, interface或enum
        if(!vis[t]){
        ^
0_0_38988842_24910\Main.java:50: 错误: 需要class, interface或enum
            rev[++tot] = rt;
            ^
0_0_38988842_24910\Main.java:51: 错误: 需要class, interface或enum
            dfn[tot] = deq;
            ^
0_0_38988842_24910\Main.java:52: 错误: 需要class, interface或enum
        }
        ^
0_0_38988842_24910\Main.java:56: 错误: 需要class, interface或enum
void rmq(){
^
0_0_38988842_24910\Main.java:57: 错误: 需要class, interface或enum
    for(int i = ; i <= tot; i++){
                  ^
0_0_38988842_24910\Main.java:57: 错误: 需要class, interface或enum
    for(int i = ; i <= tot; i++){
                            ^
0_0_38988842_24910\Main.java:59: 错误: 需要class, interface或enum
    }
    ^
0_0_38988842_24910\Main.java:60: 错误: 需要class, interface或enum
    for(int i = ; i < ; i++){
                  ^
0_0_38988842_24910\Main.java:60: 错误: 需要class, interface或enum
    for(int i = ; i < ; i++){
                        ^
0_0_38988842_24910\Main.java:61: 错误: 需要class, interface或enum
        for(int j = ; j + ( << i) -  <= tot; j++){
                      ^
0_0_38988842_24910\Main.java:61: 错误: 需要class, interface或enum
        for(int j = ; j + ( << i) -  <= tot; j++){
                                             ^
0_0_38988842_24910\Main.java:63: 错误: 需要class, interface或enum
            int y = dp[j+(<<(i-))][i-];
            ^
0_0_38988842_24910\Main.java:64: 错误: 需要class, interface或enum
            if(dfn[x] > dfn[y]){
            ^
0_0_38988842_24910\Main.java:66: 错误: 需要class, interface或enum
            } else{
            ^
0_0_38988842_24910\Main.java:68: 错误: 需要class, interface或enum
            }
            ^
0_0_38988842_24910\Main.java:74: 错误: 需要class, interface或enum
    y = first[y];
    ^
0_0_38988842_24910\Main.java:75: 错误: 需要class, interface或enum
    if(x > y)swap(x,y);
    ^
0_0_38988842_24910\Main.java:76: 错误: 需要class, interface或enum
    int k = (int)(log(y - x + ) * 1.0 / log(2.0));
    ^
0_0_38988842_24910\Main.java:77: 错误: 需要class, interface或enum
    int l = dp[x][k];
    ^
0_0_38988842_24910\Main.java:78: 错误: 需要class, interface或enum
    int r = dp[y - (<<k) + ][k];
    ^
0_0_38988842_24910\Main.java:79: 错误: 需要class, interface或enum
    if(dfn[l] > dfn[r]){
    ^
0_0_38988842_24910\Main.java:81: 错误: 需要class, interface或enum
    } else {
    ^
0_0_38988842_24910\Main.java:83: 错误: 需要class, interface或enum
    }
    ^
0_0_38988842_24910\Main.java:87: 错误: 需要class, interface或enum
        for(int i = ; i <= n; i++)scanf("%d",&a[i]);
                      ^
0_0_38988842_24910\Main.java:87: 错误: 需要class, interface或enum
        for(int i = ; i <= n; i++)scanf("%d",&a[i]);
                              ^
0_0_38988842_24910\Main.java:88: 错误: 需要class, interface或enum
        ind = ;
        ^
0_0_38988842_24910\Main.java:89: 错误: 需要class, interface或enum
        memset(pre,-,sizeof(pre));
        ^
0_0_38988842_24910\Main.java:90: 错误: 需要class, interface或enum
        for(int i = ; i < n; i++){
        ^
0_0_38988842_24910\Main.java:90: 错误: 需要class, interface或enum
        for(int i = ; i < n; i++){
                      ^
0_0_38988842_24910\Main.java:90: 错误: 需要class, interface或enum
        for(int i = ; i < n; i++){
                             ^
0_0_38988842_24910\Main.java:92: 错误: 需要class, interface或enum
            scanf("%d%d",&x,&y);
            ^
0_0_38988842_24910\Main.java:93: 错误: 需要class, interface或enum
            add(x,y),add(y,x);
            ^
0_0_38988842_24910\Main.java:94: 错误: 需要class, interface或enum
        }
        ^
0_0_38988842_24910\Main.java:96: 错误: 需要class, interface或enum
        memset(vis,,sizeof(vis));
        ^
0_0_38988842_24910\Main.java:97: 错误: 需要class, interface或enum
        dfs(,,-);
        ^
0_0_38988842_24910\Main.java:98: 错误: 需要class, interface或enum
        rmq();
        ^
0_0_38988842_24910\Main.java:99: 错误: 需要class, interface或enum
        while(m --){
        ^
0_0_38988842_24910\Main.java:101: 错误: 需要class, interface或enum
            scanf("%d%d%d",&k,&x,&y);
            ^
0_0_38988842_24910\Main.java:102: 错误: 需要class, interface或enum
            if(k == ){
            ^
0_0_38988842_24910\Main.java:104: 错误: 需要class, interface或enum
            } else{
            ^
0_0_38988842_24910\Main.java:107: 错误: 需要class, interface或enum
                    continue;
                    ^
0_0_38988842_24910\Main.java:108: 错误: 需要class, interface或enum
                }
                ^
0_0_38988842_24910\Main.java:110: 错误: 需要class, interface或enum
                int tp = rev[lca(x,y)];
                ^
0_0_38988842_24910\Main.java:111: 错误: 需要class, interface或enum
                b[cnt++] = a[tp];
                ^
0_0_38988842_24910\Main.java:112: 错误: 需要class, interface或enum
                while(x != tp){
                ^
0_0_38988842_24910\Main.java:114: 错误: 需要class, interface或enum
                    x = fa[x];
                    ^
0_0_38988842_24910\Main.java:115: 错误: 需要class, interface或enum
                }
                ^
0_0_38988842_24910\Main.java:118: 错误: 需要class, interface或enum
                    y = fa[y];
                    ^
0_0_38988842_24910\Main.java:119: 错误: 需要class, interface或enum
                }
                ^
0_0_38988842_24910\Main.java:121: 错误: 需要class, interface或enum
                if(k > cnt) printf("invalid request!\n");
                ^
0_0_38988842_24910\Main.java:122: 错误: 需要class, interface或enum
                else printf("%d\n",b[k-]);
                ^
0_0_38988842_24910\Main.java:123: 错误: 需要class, interface或enum
            }
            ^
0_0_38988842_24910\Main.java:127: 错误: 需要class, interface或enum
}
^
91 个错误


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-02 08:21:39, Gzip enabled