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_32853625_17269.cpp: In function 'void UFset()':
0_0_32853625_17269.cpp:19:5: error: 'parent' was not declared in this scope
     parent[i]=-1;    
     ^
0_0_32853625_17269.cpp: In function 'int find(int)':
0_0_32853625_17269.cpp:24:13: error: 'parent' was not declared in this scope
     for(s=x;parent[s]>=0;s=parent[s]);
             ^
0_0_32853625_17269.cpp:27:17: error: 'parent' was not declared in this scope
         int tmp=parent[x];
                 ^
0_0_32853625_17269.cpp: In function 'void Union(int, int)':
0_0_32853625_17269.cpp:36:13: error: 'parent' was not declared in this scope
     int tmp=parent[r1]+parent[r2];
             ^
0_0_32853625_17269.cpp: In function 'void top_sort()':
0_0_32853625_17269.cpp:54:22: error: 'parent' was not declared in this scope
         if(in[i]==0&&parent[i]<=-1)
                      ^
0_0_32853625_17269.cpp:63:23: error: 'pos' was not declared in this scope
         for(i=0;i<map[pos].size();i++)
                       ^


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-05-03 10:20:21, Gzip enabled