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_29093789_9988.cpp: In function 'int Find_Set(int)':
0_0_29093789_9988.cpp:3:9: error: 'p' was not declared in this scope
  if (x!=p[x])
         ^
0_0_29093789_9988.cpp:5:9: error: 'p' was not declared in this scope
  return p[x];
         ^
0_0_29093789_9988.cpp: In function 'void Union(int, int)':
0_0_29093789_9988.cpp:14:6: error: 'rank' was not declared in this scope
  if (rank[x]>rank[y])
      ^
0_0_29093789_9988.cpp:16:3: error: 'p' was not declared in this scope
   p[y]=x;
   ^
0_0_29093789_9988.cpp:17:3: error: 'num' was not declared in this scope
   num[x]+=num[y];
   ^
0_0_29093789_9988.cpp:21:3: error: 'p' was not declared in this scope
   p[x]=y;
   ^
0_0_29093789_9988.cpp:24:3: error: 'num' was not declared in this scope
   num[y]+=num[x];
   ^


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-10-18 18:15:10, Gzip enabled