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_19741346_3651.cpp:1:8: error: 'N' was not declared in this scope
 int fa[N], Rank[N];//Rank数组表示集合的秩
        ^
0_0_19741346_3651.cpp:1:17: error: 'N' was not declared in this scope
 int fa[N], Rank[N];//Rank数组表示集合的秩
                 ^
0_0_19741346_3651.cpp: In function 'void init(int)':
0_0_19741346_3651.cpp:6:9: error: 'fa' was not declared in this scope
         fa[i] = i;
         ^
0_0_19741346_3651.cpp:7:9: error: 'Rank' was not declared in this scope
         Rank[i] = 1;
         ^
0_0_19741346_3651.cpp: In function 'int find(int)':
0_0_19741346_3651.cpp:12:17: error: 'fa' was not declared in this scope
     return x == fa[x] ? x : fa[x] = find(fa[x]);
                 ^
0_0_19741346_3651.cpp: In function 'void unio(int, int)':
0_0_19741346_3651.cpp:19:9: error: 'Rank' was not declared in this scope
     if (Rank[y1] < Rank[y2])
         ^
0_0_19741346_3651.cpp:21:9: error: 'fa' was not declared in this scope
         fa[y1] = y2;
         ^
0_0_19741346_3651.cpp:26:9: error: 'fa' was not declared in this scope
         fa[y2] = y1;
         ^


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-27 06:03:46, Gzip enabled