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_30724105_15011\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_30724105_15011\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
        ^
0_0_30724105_15011\Main.java:3: 错误: 非法字符: '#'
#define MAXN 1005
^
0_0_30724105_15011\Main.java:3: 错误: 需要class, interface或enum
#define MAXN 1005
        ^
0_0_30724105_15011\Main.java:6: 错误: 需要class, interface或enum
	int next; //next[i]表示与第i条边同起点的上一条边的储存位置
	^
0_0_30724105_15011\Main.java:7: 错误: 需要class, interface或enum
}edge[MAXN];
^
0_0_30724105_15011\Main.java:8: 错误: 需要class, interface或enum
int cnt;
^
0_0_30724105_15011\Main.java:9: 错误: 需要class, interface或enum
int head[MAXN],d1[MAXN],d2[MAXN]; 
^
0_0_30724105_15011\Main.java:10: 错误: 需要class, interface或enum
int vis[MAXN];
^
0_0_30724105_15011\Main.java:11: 错误: 需要class, interface或enum
void add(int u,int v){
^
0_0_30724105_15011\Main.java:13: 错误: 需要class, interface或enum
	edge[cnt].next=head[u]; //head[i]表示以i为起点的最后一条边的储存位置 
	^
0_0_30724105_15011\Main.java:14: 错误: 需要class, interface或enum
	head[u]=cnt++;
	^
0_0_30724105_15011\Main.java:15: 错误: 需要class, interface或enum
}
^
0_0_30724105_15011\Main.java:17: 错误: 需要class, interface或enum
void dj(int s,int d){
^
0_0_30724105_15011\Main.java:20: 错误: 需要class, interface或enum
	}
	^
0_0_30724105_15011\Main.java:22: 错误: 需要class, interface或enum
	d1[s]=d;
	^
0_0_30724105_15011\Main.java:23: 错误: 需要class, interface或enum
	if(ma<d){
	^
0_0_30724105_15011\Main.java:25: 错误: 需要class, interface或enum
		p=s;
		^
0_0_30724105_15011\Main.java:26: 错误: 需要class, interface或enum
	}
	^
0_0_30724105_15011\Main.java:27: 错误: 需要class, interface或enum
	for(int i=head[s];i!=0;i=edge[i].next){
	                  ^
0_0_30724105_15011\Main.java:27: 错误: 需要class, interface或enum
	for(int i=head[s];i!=0;i=edge[i].next){
	                       ^
0_0_30724105_15011\Main.java:30: 错误: 需要class, interface或enum
		}
		^
0_0_30724105_15011\Main.java:36: 错误: 需要class, interface或enum
	}
	^
0_0_30724105_15011\Main.java:38: 错误: 需要class, interface或enum
	d2[s]=d;
	^
0_0_30724105_15011\Main.java:39: 错误: 需要class, interface或enum
	if(ma<d){
	^
0_0_30724105_15011\Main.java:41: 错误: 需要class, interface或enum
		p=s;
		^
0_0_30724105_15011\Main.java:42: 错误: 需要class, interface或enum
	}
	^
0_0_30724105_15011\Main.java:43: 错误: 需要class, interface或enum
	for(int i=head[s];i!=0;i=edge[i].next){
	                  ^
0_0_30724105_15011\Main.java:43: 错误: 需要class, interface或enum
	for(int i=head[s];i!=0;i=edge[i].next){
	                       ^
0_0_30724105_15011\Main.java:46: 错误: 需要class, interface或enum
		}
		^
0_0_30724105_15011\Main.java:50: 错误: 需要class, interface或enum
void dfs(int s,int &ne){
^
0_0_30724105_15011\Main.java:52: 错误: 需要class, interface或enum
	dd++;
	^
0_0_30724105_15011\Main.java:53: 错误: 需要class, interface或enum
	for(int i=head[s];i!=0;i=edge[i].next){
	^
0_0_30724105_15011\Main.java:53: 错误: 需要class, interface或enum
	for(int i=head[s];i!=0;i=edge[i].next){
	                  ^
0_0_30724105_15011\Main.java:53: 错误: 需要class, interface或enum
	for(int i=head[s];i!=0;i=edge[i].next){
	                       ^
0_0_30724105_15011\Main.java:56: 错误: 需要class, interface或enum
		}
		^
0_0_30724105_15011\Main.java:59: 错误: 需要class, interface或enum
		}
		^
0_0_30724105_15011\Main.java:62: 错误: 需要class, interface或enum
}
^
0_0_30724105_15011\Main.java:65: 错误: 需要class, interface或enum
	int n1,n2;
	^
0_0_30724105_15011\Main.java:66: 错误: 需要class, interface或enum
	dd=0;
	^
0_0_30724105_15011\Main.java:67: 错误: 需要class, interface或enum
	dfs(s,n1);
	^
0_0_30724105_15011\Main.java:68: 错误: 需要class, interface或enum
	cl+=dd;
	^
0_0_30724105_15011\Main.java:69: 错误: 需要class, interface或enum
	dd=0;
	^
0_0_30724105_15011\Main.java:70: 错误: 需要class, interface或enum
	dfs(e,n2);
	^
0_0_30724105_15011\Main.java:71: 错误: 需要class, interface或enum
	cr+=dd;
	^
0_0_30724105_15011\Main.java:72: 错误: 需要class, interface或enum
	if(cl>cr){
	^
0_0_30724105_15011\Main.java:74: 错误: 需要class, interface或enum
		if(i>=k){
		^
0_0_30724105_15011\Main.java:76: 错误: 需要class, interface或enum
		}
		^
0_0_30724105_15011\Main.java:79: 错误: 需要class, interface或enum
			ans(n1,n2,i,cl-cr,0);
			^
0_0_30724105_15011\Main.java:80: 错误: 需要class, interface或enum
		}
		^
0_0_30724105_15011\Main.java:84: 错误: 需要class, interface或enum
		if(i>=k){
		^
0_0_30724105_15011\Main.java:86: 错误: 需要class, interface或enum
		}
		^
0_0_30724105_15011\Main.java:89: 错误: 需要class, interface或enum
			ans(n1,n2,i,0,cr-cl);
			^
0_0_30724105_15011\Main.java:90: 错误: 需要class, interface或enum
		}
		^
0_0_30724105_15011\Main.java:95: 错误: 需要class, interface或enum
	cnt=1;
	^
0_0_30724105_15011\Main.java:96: 错误: 需要class, interface或enum
	int n;
	^
0_0_30724105_15011\Main.java:97: 错误: 需要class, interface或enum
	cin>>n>>k;
	^
0_0_30724105_15011\Main.java:98: 错误: 需要class, interface或enum
	int a,b,c;
	^
0_0_30724105_15011\Main.java:99: 错误: 需要class, interface或enum
	while(--n){
	^
0_0_30724105_15011\Main.java:101: 错误: 需要class, interface或enum
		add(a,b);
		^
0_0_30724105_15011\Main.java:102: 错误: 需要class, interface或enum
		add(b,a);
		^
0_0_30724105_15011\Main.java:103: 错误: 需要class, interface或enum
	}
	^
0_0_30724105_15011\Main.java:105: 错误: 需要class, interface或enum
	dj(1,0);
	^
0_0_30724105_15011\Main.java:106: 错误: 需要class, interface或enum
	ma=0;
	^
0_0_30724105_15011\Main.java:107: 错误: 需要class, interface或enum
	memset(vis,0,sizeof(vis));
	^
0_0_30724105_15011\Main.java:108: 错误: 需要class, interface或enum
	int s=p;
	^
0_0_30724105_15011\Main.java:109: 错误: 需要class, interface或enum
	dj(s,0);
	^
0_0_30724105_15011\Main.java:110: 错误: 需要class, interface或enum
	int e=p;
	^
0_0_30724105_15011\Main.java:111: 错误: 需要class, interface或enum
	memset(vis,0,sizeof(vis));
	^
0_0_30724105_15011\Main.java:112: 错误: 需要class, interface或enum
	dj2(e,0);
	^
0_0_30724105_15011\Main.java:113: 错误: 需要class, interface或enum
	memset(vis,0,sizeof(vis));
	^
0_0_30724105_15011\Main.java:114: 错误: 需要class, interface或enum
	for(int i=1;i<=n;i++){
	^
0_0_30724105_15011\Main.java:114: 错误: 需要class, interface或enum
	for(int i=1;i<=n;i++){
	            ^
0_0_30724105_15011\Main.java:114: 错误: 需要class, interface或enum
	for(int i=1;i<=n;i++){
	                 ^
0_0_30724105_15011\Main.java:117: 错误: 需要class, interface或enum
		}
		^
0_0_30724105_15011\Main.java:120: 错误: 需要class, interface或enum
	cout<<ma<<'\n';
	^
0_0_30724105_15011\Main.java:121: 错误: 需要class, interface或enum
	return 0;
	^
0_0_30724105_15011\Main.java:122: 错误: 需要class, interface或enum
}
^
78 个错误


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-12-02 11:43:25, Gzip enabled