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_31150262_10162\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_31150262_10162\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
        ^
0_0_31150262_10162\Main.java:3: 错误: 需要class, interface或enum
const int maxn=200005;
^
0_0_31150262_10162\Main.java:4: 错误: 需要class, interface或enum
const int maxm=2*maxn;
^
0_0_31150262_10162\Main.java:5: 错误: 需要class, interface或enum
int ans=1,head[maxn];
^
0_0_31150262_10162\Main.java:6: 错误: 需要class, interface或enum
struct edge{
^
0_0_31150262_10162\Main.java:8: 错误: 需要class, interface或enum
}e[maxm];
^
0_0_31150262_10162\Main.java:9: 错误: 需要class, interface或enum
void add(int x,int y){
^
0_0_31150262_10162\Main.java:10: 错误: 需要class, interface或enum
    e[ans].to=y; e[ans].next=head[x];
                 ^
0_0_31150262_10162\Main.java:11: 错误: 需要class, interface或enum
    head[x]=ans++;
    ^
0_0_31150262_10162\Main.java:12: 错误: 需要class, interface或enum
}
^
0_0_31150262_10162\Main.java:14: 错误: 需要class, interface或enum
void init(){
^
0_0_31150262_10162\Main.java:16: 错误: 需要class, interface或enum
    memset(son,0,sizeof(son));
    ^
0_0_31150262_10162\Main.java:17: 错误: 需要class, interface或enum
    ans=1;
    ^
0_0_31150262_10162\Main.java:18: 错误: 需要class, interface或enum
}
^
0_0_31150262_10162\Main.java:23: 错误: 需要class, interface或enum
    for(int i=head[x];i;i=e[i].next){
    ^
0_0_31150262_10162\Main.java:23: 错误: 需要class, interface或enum
    for(int i=head[x];i;i=e[i].next){
                      ^
0_0_31150262_10162\Main.java:23: 错误: 需要class, interface或enum
    for(int i=head[x];i;i=e[i].next){
                        ^
0_0_31150262_10162\Main.java:25: 错误: 需要class, interface或enum
        if(y==fa) continue;
        ^
0_0_31150262_10162\Main.java:26: 错误: 需要class, interface或enum
        son[x]+=dfs(y,x);
        ^
0_0_31150262_10162\Main.java:27: 错误: 需要class, interface或enum
    }
    ^
0_0_31150262_10162\Main.java:29: 错误: 需要class, interface或enum
}
^
0_0_31150262_10162\Main.java:33: 错误: 需要class, interface或enum
   scanf("%d",&t);
   ^
0_0_31150262_10162\Main.java:34: 错误: 需要class, interface或enum
   while(t--){
   ^
0_0_31150262_10162\Main.java:36: 错误: 需要class, interface或enum
        int n,k;
        ^
0_0_31150262_10162\Main.java:37: 错误: 需要class, interface或enum
        scanf("%d%d",&n,&k);
        ^
0_0_31150262_10162\Main.java:38: 错误: 需要class, interface或enum
        for(int i=1;i<=n-1;i++){
        ^
0_0_31150262_10162\Main.java:38: 错误: 需要class, interface或enum
        for(int i=1;i<=n-1;i++){
                    ^
0_0_31150262_10162\Main.java:38: 错误: 需要class, interface或enum
        for(int i=1;i<=n-1;i++){
                           ^
0_0_31150262_10162\Main.java:40: 错误: 需要class, interface或enum
            scanf("%d%d",&a,&b);
            ^
0_0_31150262_10162\Main.java:41: 错误: 需要class, interface或enum
            add(a,b),add(b,a);
            ^
0_0_31150262_10162\Main.java:42: 错误: 需要class, interface或enum
        }
        ^
0_0_31150262_10162\Main.java:44: 错误: 需要class, interface或enum
        int res=0;
        ^
0_0_31150262_10162\Main.java:45: 错误: 需要class, interface或enum
        for(int i=2;i<=n;i++){
        ^
0_0_31150262_10162\Main.java:45: 错误: 需要class, interface或enum
        for(int i=2;i<=n;i++){
                    ^
0_0_31150262_10162\Main.java:45: 错误: 需要class, interface或enum
        for(int i=2;i<=n;i++){
                         ^
0_0_31150262_10162\Main.java:48: 错误: 需要class, interface或enum
            }
            ^
0_0_31150262_10162\Main.java:51: 错误: 需要class, interface或enum
   }
   ^
0_0_31150262_10162\Main.java:53: 错误: 需要class, interface或enum
}
^
39 个错误


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-30 07:34:25, Gzip enabled