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_30425340_32610\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_30425340_32610\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
        ^
0_0_30425340_32610\Main.java:2: 错误: 非法字符: '#'
#define MAXN 305
^
0_0_30425340_32610\Main.java:4: 错误: 需要class, interface或enum
int to[MAXN<<2],next1[MAXN<<2],head[MAXN<<2];
^
0_0_30425340_32610\Main.java:5: 错误: 需要class, interface或enum
int tot=0;
^
0_0_30425340_32610\Main.java:6: 错误: 需要class, interface或enum
int edg[MAXN<<2];
^
0_0_30425340_32610\Main.java:7: 错误: 需要class, interface或enum
int vis[MAXN];
^
0_0_30425340_32610\Main.java:9: 错误: 需要class, interface或enum
void add(int u,int v)
^
0_0_30425340_32610\Main.java:12: 错误: 需要class, interface或enum
    next1[tot]=head[u];
    ^
0_0_30425340_32610\Main.java:13: 错误: 需要class, interface或enum
    head[u]=tot;
    ^
0_0_30425340_32610\Main.java:14: 错误: 需要class, interface或enum
}
^
0_0_30425340_32610\Main.java:17: 错误: 需要class, interface或enum
void dfs(int u)
^
0_0_30425340_32610\Main.java:19: 错误: 需要class, interface或enum
    for(int i=head[u];i;i=next1[i])
                      ^
0_0_30425340_32610\Main.java:19: 错误: 需要class, interface或enum
    for(int i=head[u];i;i=next1[i])
                        ^
0_0_30425340_32610\Main.java:23: 错误: 需要class, interface或enum
        int v=to[i];
        ^
0_0_30425340_32610\Main.java:24: 错误: 需要class, interface或enum
        if(vis[v]==0)
        ^
0_0_30425340_32610\Main.java:27: 错误: 需要class, interface或enum
            edg[i]=1;//用了的边标记
            ^
0_0_30425340_32610\Main.java:28: 错误: 需要class, interface或enum
            if(i%2==1)
            ^
0_0_30425340_32610\Main.java:30: 错误: 需要class, interface或enum
            else
            ^
0_0_30425340_32610\Main.java:32: 错误: 需要class, interface或enum
            vis[v]=1;
            ^
0_0_30425340_32610\Main.java:33: 错误: 需要class, interface或enum
            dfs(v);
            ^
0_0_30425340_32610\Main.java:34: 错误: 需要class, interface或enum
        }
        ^
0_0_30425340_32610\Main.java:40: 错误: 需要class, interface或enum
    memset(head,0,sizeof(head));
    ^
0_0_30425340_32610\Main.java:41: 错误: 需要class, interface或enum
    memset(next1,0,sizeof(next1));
    ^
0_0_30425340_32610\Main.java:42: 错误: 需要class, interface或enum
    memset(edg,0,sizeof(edg));
    ^
0_0_30425340_32610\Main.java:43: 错误: 需要class, interface或enum
}
^
0_0_30425340_32610\Main.java:48: 错误: 需要class, interface或enum
    scanf("%d",&t);
    ^
0_0_30425340_32610\Main.java:49: 错误: 需要class, interface或enum
    while(t--)
    ^
0_0_30425340_32610\Main.java:52: 错误: 需要class, interface或enum
        scanf("%d%d%d",&n,&m,&k);
        ^
0_0_30425340_32610\Main.java:53: 错误: 需要class, interface或enum
        for(int i=1;i<=m;i++)
        ^
0_0_30425340_32610\Main.java:53: 错误: 需要class, interface或enum
        for(int i=1;i<=m;i++)
                    ^
0_0_30425340_32610\Main.java:53: 错误: 需要class, interface或enum
        for(int i=1;i<=m;i++)
                         ^
0_0_30425340_32610\Main.java:56: 错误: 需要class, interface或enum
            add(a,b);
            ^
0_0_30425340_32610\Main.java:57: 错误: 需要class, interface或enum
            add(b,a);
            ^
0_0_30425340_32610\Main.java:58: 错误: 需要class, interface或enum
        }
        ^
0_0_30425340_32610\Main.java:60: 错误: 需要class, interface或enum
        for(int i=1;i<=k;i++)
        ^
0_0_30425340_32610\Main.java:60: 错误: 需要class, interface或enum
        for(int i=1;i<=k;i++)
                    ^
0_0_30425340_32610\Main.java:60: 错误: 需要class, interface或enum
        for(int i=1;i<=k;i++)
                         ^
0_0_30425340_32610\Main.java:63: 错误: 需要class, interface或enum
            cnt=1;
            ^
0_0_30425340_32610\Main.java:64: 错误: 需要class, interface或enum
            vis[1]=1;
            ^
0_0_30425340_32610\Main.java:65: 错误: 需要class, interface或enum
            dfs(1);
            ^
0_0_30425340_32610\Main.java:66: 错误: 需要class, interface或enum
            if(cnt<n)
            ^
0_0_30425340_32610\Main.java:69: 错误: 需要class, interface或enum
                break;
                ^
0_0_30425340_32610\Main.java:70: 错误: 需要class, interface或enum
            }
            ^
0_0_30425340_32610\Main.java:74: 错误: 需要class, interface或enum
        else
        ^
0_0_30425340_32610\Main.java:76: 错误: 需要class, interface或enum
    }
    ^
0_0_30425340_32610\Main.java:78: 错误: 需要class, interface或enum
}
^
47 个错误


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-11 00:23:55, Gzip enabled