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_22789346_12712\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_22789346_12712\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
        ^
0_0_22789346_12712\Main.java:2: 错误: 非法字符: '#'
#define N 101000
^
0_0_22789346_12712\Main.java:3: 错误: 非法字符: '#'
#define LL long long
^
0_0_22789346_12712\Main.java:7: 错误: 需要class, interface或enum
int n,up[N],dw[N],d[N],u[N],b[N];
^
0_0_22789346_12712\Main.java:8: 错误: 需要class, interface或enum
vector<int> g[N];
^
0_0_22789346_12712\Main.java:9: 错误: 需要class, interface或enum
bool flag;
^
0_0_22789346_12712\Main.java:11: 错误: 需要class, interface或enum
void init()
^
0_0_22789346_12712\Main.java:14: 错误: 需要class, interface或enum
    memset(b,0,sizeof(b));
    ^
0_0_22789346_12712\Main.java:15: 错误: 需要class, interface或enum
    memset(dw,0,sizeof(dw));
    ^
0_0_22789346_12712\Main.java:16: 错误: 需要class, interface或enum
}
^
0_0_22789346_12712\Main.java:21: 错误: 需要class, interface或enum
    int down=0,Up=0;
    ^
0_0_22789346_12712\Main.java:22: 错误: 需要class, interface或enum
    for(int i=0;i<g[x].size();i++)
    ^
0_0_22789346_12712\Main.java:22: 错误: 需要class, interface或enum
    for(int i=0;i<g[x].size();i++)
                ^
0_0_22789346_12712\Main.java:22: 错误: 需要class, interface或enum
    for(int i=0;i<g[x].size();i++)
                              ^
0_0_22789346_12712\Main.java:25: 错误: 需要class, interface或enum
        if (y==fa) continue;
        ^
0_0_22789346_12712\Main.java:26: 错误: 需要class, interface或enum
        dfs(y,x); down+=d[y]; Up+=u[y];
        ^
0_0_22789346_12712\Main.java:26: 错误: 需要class, interface或enum
        dfs(y,x); down+=d[y]; Up+=u[y];
                  ^
0_0_22789346_12712\Main.java:26: 错误: 需要class, interface或enum
        dfs(y,x); down+=d[y]; Up+=u[y];
                              ^
0_0_22789346_12712\Main.java:27: 错误: 需要class, interface或enum
    }
    ^
0_0_22789346_12712\Main.java:29: 错误: 需要class, interface或enum
    u[x]=min(up[x],max(Up,d[x]));
    ^
0_0_22789346_12712\Main.java:30: 错误: 需要class, interface或enum
    if (d[x]>u[x]) {flag=1;return;}
    ^
0_0_22789346_12712\Main.java:30: 错误: 需要class, interface或enum
    if (d[x]>u[x]) {flag=1;return;}
                           ^
0_0_22789346_12712\Main.java:30: 错误: 需要class, interface或enum
    if (d[x]>u[x]) {flag=1;return;}
                                  ^
0_0_22789346_12712\Main.java:35: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++)
                ^
0_0_22789346_12712\Main.java:35: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++)
                     ^
0_0_22789346_12712\Main.java:38: 错误: 需要class, interface或enum
        if (up[i]<0) return 0;
        ^
0_0_22789346_12712\Main.java:39: 错误: 需要class, interface或enum
    }
    ^
0_0_22789346_12712\Main.java:40: 错误: 需要class, interface或enum
    flag=0; dfs(1,0);
            ^
0_0_22789346_12712\Main.java:41: 错误: 需要class, interface或enum
    return !flag&&u[1]>=x&&d[1]<=x;
    ^
0_0_22789346_12712\Main.java:42: 错误: 需要class, interface或enum
}
^
0_0_22789346_12712\Main.java:47: 错误: 需要class, interface或enum
    cin>>T_T;
    ^
0_0_22789346_12712\Main.java:48: 错误: 需要class, interface或enum
    while(T_T--)
    ^
0_0_22789346_12712\Main.java:51: 错误: 需要class, interface或enum
        scanf("%d\n",&n);
        ^
0_0_22789346_12712\Main.java:52: 错误: 需要class, interface或enum
        for(int i=1;i<n;i++)
        ^
0_0_22789346_12712\Main.java:52: 错误: 需要class, interface或enum
        for(int i=1;i<n;i++)
                    ^
0_0_22789346_12712\Main.java:52: 错误: 需要class, interface或enum
        for(int i=1;i<n;i++)
                        ^
0_0_22789346_12712\Main.java:55: 错误: 需要class, interface或enum
            scanf("%d%d",&u,&v);
            ^
0_0_22789346_12712\Main.java:56: 错误: 需要class, interface或enum
            g[u].push_back(v);
            ^
0_0_22789346_12712\Main.java:57: 错误: 需要class, interface或enum
            g[v].push_back(u);
            ^
0_0_22789346_12712\Main.java:58: 错误: 需要class, interface或enum
        }
        ^
0_0_22789346_12712\Main.java:60: 错误: 需要class, interface或enum
        scanf("%d",&m);
        ^
0_0_22789346_12712\Main.java:61: 错误: 需要class, interface或enum
        while(m--)
        ^
0_0_22789346_12712\Main.java:64: 错误: 需要class, interface或enum
            scanf("%d%d",&x,&y);
            ^
0_0_22789346_12712\Main.java:65: 错误: 需要class, interface或enum
            dw[x]=y;
            ^
0_0_22789346_12712\Main.java:66: 错误: 需要class, interface或enum
        }
        ^
0_0_22789346_12712\Main.java:68: 错误: 需要class, interface或enum
        while(m--)
        ^
0_0_22789346_12712\Main.java:71: 错误: 需要class, interface或enum
            scanf("%d%d",&x,&y);
            ^
0_0_22789346_12712\Main.java:72: 错误: 需要class, interface或enum
            b[x]=y;
            ^
0_0_22789346_12712\Main.java:73: 错误: 需要class, interface或enum
        }
        ^
0_0_22789346_12712\Main.java:75: 错误: 需要class, interface或enum
        while(l<=r)
        ^
0_0_22789346_12712\Main.java:78: 错误: 需要class, interface或enum
            if (check(mid)) ans=mid,r=mid-1;
            ^
0_0_22789346_12712\Main.java:79: 错误: 需要class, interface或enum
                       else l=mid+1;
                       ^
0_0_22789346_12712\Main.java:80: 错误: 需要class, interface或enum
        }
        ^
0_0_22789346_12712\Main.java:82: 错误: 需要class, interface或enum
    }
    ^
55 个错误


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 08:47:31, Gzip enabled