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_23546611_23779\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_23546611_23779\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
        ^
0_0_23546611_23779\Main.java:3: 错误: 需要class, interface或enum
const int maxn=1e5+5;
^
0_0_23546611_23779\Main.java:4: 错误: 需要class, interface或enum
vector<int> edge[maxn];
^
0_0_23546611_23779\Main.java:5: 错误: 需要class, interface或enum
int sz[maxn],mxx[maxn],mn[maxn],mx[maxn],d[maxn],u[maxn],n;
^
0_0_23546611_23779\Main.java:6: 错误: 需要class, interface或enum
void init_size(int now,int fa)
^
0_0_23546611_23779\Main.java:9: 错误: 需要class, interface或enum
    for(vector<int>::iterator it=edge[now].begin();it!=edge[now].end();it++)
    ^
0_0_23546611_23779\Main.java:9: 错误: 需要class, interface或enum
    for(vector<int>::iterator it=edge[now].begin();it!=edge[now].end();it++)
                                                   ^
0_0_23546611_23779\Main.java:9: 错误: 需要class, interface或enum
    for(vector<int>::iterator it=edge[now].begin();it!=edge[now].end();it++)
                                                                       ^
0_0_23546611_23779\Main.java:13: 错误: 需要class, interface或enum
        init_size(*it,now);
        ^
0_0_23546611_23779\Main.java:14: 错误: 需要class, interface或enum
        sz[now]+=sz[*it];
        ^
0_0_23546611_23779\Main.java:15: 错误: 需要class, interface或enum
    }
    ^
0_0_23546611_23779\Main.java:20: 错误: 需要class, interface或enum
    for(vector<int>::iterator it=edge[now].begin();it!=edge[now].end();it++)
    ^
0_0_23546611_23779\Main.java:20: 错误: 需要class, interface或enum
    for(vector<int>::iterator it=edge[now].begin();it!=edge[now].end();it++)
                                                   ^
0_0_23546611_23779\Main.java:20: 错误: 需要class, interface或enum
    for(vector<int>::iterator it=edge[now].begin();it!=edge[now].end();it++)
                                                                       ^
0_0_23546611_23779\Main.java:24: 错误: 需要class, interface或enum
        if(!dfs(*it,now))
        ^
0_0_23546611_23779\Main.java:26: 错误: 需要class, interface或enum
        dw+=d[*it];
        ^
0_0_23546611_23779\Main.java:27: 错误: 需要class, interface或enum
        up+=u[*it];
        ^
0_0_23546611_23779\Main.java:28: 错误: 需要class, interface或enum
    }
    ^
0_0_23546611_23779\Main.java:30: 错误: 需要class, interface或enum
    u[now]=min(mx[now],up);
    ^
0_0_23546611_23779\Main.java:31: 错误: 需要class, interface或enum
    return d[now]<=u[now];
    ^
0_0_23546611_23779\Main.java:32: 错误: 需要class, interface或enum
}
^
0_0_23546611_23779\Main.java:35: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++)
                ^
0_0_23546611_23779\Main.java:35: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++)
                     ^
0_0_23546611_23779\Main.java:38: 错误: 需要class, interface或enum
        if(mx[i]<0)
        ^
0_0_23546611_23779\Main.java:40: 错误: 需要class, interface或enum
    }
    ^
0_0_23546611_23779\Main.java:42: 错误: 需要class, interface或enum
}
^
0_0_23546611_23779\Main.java:46: 错误: 需要class, interface或enum
    scanf("%d",&t);
    ^
0_0_23546611_23779\Main.java:47: 错误: 需要class, interface或enum
    while(t--&&scanf("%d",&n)!=EOF)
    ^
0_0_23546611_23779\Main.java:50: 错误: 需要class, interface或enum
        memset(mxx,0,sizeof(mxx));
        ^
0_0_23546611_23779\Main.java:51: 错误: 需要class, interface或enum
        f=0;
        ^
0_0_23546611_23779\Main.java:52: 错误: 需要class, interface或enum
        for(i=1;i<n;i++)
        ^
0_0_23546611_23779\Main.java:52: 错误: 需要class, interface或enum
        for(i=1;i<n;i++)
                ^
0_0_23546611_23779\Main.java:52: 错误: 需要class, interface或enum
        for(i=1;i<n;i++)
                    ^
0_0_23546611_23779\Main.java:55: 错误: 需要class, interface或enum
            edge[u].push_back(v);
            ^
0_0_23546611_23779\Main.java:56: 错误: 需要class, interface或enum
            edge[v].push_back(u);
            ^
0_0_23546611_23779\Main.java:57: 错误: 需要class, interface或enum
        }
        ^
0_0_23546611_23779\Main.java:59: 错误: 需要class, interface或enum
        scanf("%d",&m);
        ^
0_0_23546611_23779\Main.java:60: 错误: 需要class, interface或enum
        while(m--&&scanf("%d%d",&u,&v)!=EOF)
        ^
0_0_23546611_23779\Main.java:63: 错误: 需要class, interface或enum
            if(mn[u]>sz[u])
            ^
0_0_23546611_23779\Main.java:65: 错误: 需要class, interface或enum
        }
        ^
0_0_23546611_23779\Main.java:67: 错误: 需要class, interface或enum
        while(m--&&scanf("%d%d",&u,&v)!=EOF)
        ^
0_0_23546611_23779\Main.java:70: 错误: 需要class, interface或enum
            if(mxx[u]>n-sz[u])
            ^
0_0_23546611_23779\Main.java:72: 错误: 需要class, interface或enum
        }
        ^
0_0_23546611_23779\Main.java:76: 错误: 需要class, interface或enum
            continue;
            ^
0_0_23546611_23779\Main.java:77: 错误: 需要class, interface或enum
        }
        ^
0_0_23546611_23779\Main.java:79: 错误: 需要class, interface或enum
        while(l<r)
        ^
0_0_23546611_23779\Main.java:82: 错误: 需要class, interface或enum
            if(check(mid))
            ^
0_0_23546611_23779\Main.java:84: 错误: 需要class, interface或enum
            else
            ^
0_0_23546611_23779\Main.java:86: 错误: 需要class, interface或enum
        }
        ^
0_0_23546611_23779\Main.java:88: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
        ^
0_0_23546611_23779\Main.java:88: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
                    ^
0_0_23546611_23779\Main.java:88: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
                         ^
0_0_23546611_23779\Main.java:90: 错误: 需要class, interface或enum
    }
    ^
0_0_23546611_23779\Main.java:92: 错误: 需要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-25 19:08:28, Gzip enabled