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


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-02-17 13:43:27, Gzip enabled