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_6655634_29337\Main.java:1: illegal character: \35
#include <iostream>
^
0_0_6655634_29337\Main.java:5: class, interface, or enum expected
const int MAX = 100 + 10;
^
0_0_6655634_29337\Main.java:6: class, interface, or enum expected
int father[MAX];
^
0_0_6655634_29337\Main.java:7: class, interface, or enum expected
int rank[MAX];
^
0_0_6655634_29337\Main.java:8: class, interface, or enum expected
int flag1[MAX];
^
0_0_6655634_29337\Main.java:10: class, interface, or enum expected
int findfoot(int node)
^
0_0_6655634_29337\Main.java:13: class, interface, or enum expected
	int save[MAX];
	^
0_0_6655634_29337\Main.java:14: class, interface, or enum expected
	if(node != father[node]){
	^
0_0_6655634_29337\Main.java:16: class, interface, or enum expected
		node = father[node];
		^
0_0_6655634_29337\Main.java:17: class, interface, or enum expected
	}
	^
0_0_6655634_29337\Main.java:19: class, interface, or enum expected
	for(j=0;j<i;j++){
	^
0_0_6655634_29337\Main.java:19: class, interface, or enum expected
	for(j=0;j<i;j++){
	        ^
0_0_6655634_29337\Main.java:19: class, interface, or enum expected
	for(j=0;j<i;j++){
	            ^
0_0_6655634_29337\Main.java:21: class, interface, or enum expected
	}
	^
0_0_6655634_29337\Main.java:23: class, interface, or enum expected
}
^
0_0_6655634_29337\Main.java:29: class, interface, or enum expected
	while(a+b!=-2){
	^
0_0_6655634_29337\Main.java:31: class, interface, or enum expected
		memset(flag1,0,sizeof(flag1));
		^
0_0_6655634_29337\Main.java:32: class, interface, or enum expected
		while(cin>>a>>b,a+b){
		^
0_0_6655634_29337\Main.java:35: class, interface, or enum expected
				continue;
				^
0_0_6655634_29337\Main.java:36: class, interface, or enum expected
			}
			^
0_0_6655634_29337\Main.java:39: class, interface, or enum expected
				flag1[a]=1;
				^
0_0_6655634_29337\Main.java:40: class, interface, or enum expected
			}
			^
0_0_6655634_29337\Main.java:43: class, interface, or enum expected
				flag1[b]=1;
				^
0_0_6655634_29337\Main.java:44: class, interface, or enum expected
			}
			^
0_0_6655634_29337\Main.java:46: class, interface, or enum expected
			int rootb = findfoot(b);
			^
0_0_6655634_29337\Main.java:47: class, interface, or enum expected
			if(roota == rootb){
			^
0_0_6655634_29337\Main.java:49: class, interface, or enum expected
			}
			^
0_0_6655634_29337\Main.java:52: class, interface, or enum expected
			}
			^
0_0_6655634_29337\Main.java:55: class, interface, or enum expected
			}
			^
0_0_6655634_29337\Main.java:58: class, interface, or enum expected
				rank[a]++;
				^
0_0_6655634_29337\Main.java:59: class, interface, or enum expected
			}
			^
0_0_6655634_29337\Main.java:62: class, interface, or enum expected
		else printf("Yes\n");
		^
0_0_6655634_29337\Main.java:63: class, interface, or enum expected
	}
	^
0_0_6655634_29337\Main.java:65: class, interface, or enum expected
}


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-16 23:34:19, Gzip enabled