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


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:19:49, Gzip enabled