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_35168912_20277.cpp:7:12: error: 'N' was not declared in this scope
 int father[N],vis[N];
            ^
0_0_35168912_20277.cpp:7:19: error: 'N' was not declared in this scope
 int father[N],vis[N];
                   ^
0_0_35168912_20277.cpp: In function 'int Find(int)':
0_0_35168912_20277.cpp:11:11: error: 'father' was not declared in this scope
     if(x!=father[x])
           ^
0_0_35168912_20277.cpp: In function 'void Union(int, int)':
0_0_35168912_20277.cpp:19:14: error: 'father' was not declared in this scope
     if(x!=y) father[y]=x;
              ^
0_0_35168912_20277.cpp: In function 'void del(int)':
0_0_35168912_20277.cpp:23:5: error: 'father' was not declared in this scope
     father[x]=cnt;
     ^
0_0_35168912_20277.cpp: In function 'int main()':
0_0_35168912_20277.cpp:34:13: error: 'father' was not declared in this scope
             father[i]=i+n;
             ^
0_0_35168912_20277.cpp:36:13: error: 'father' was not declared in this scope
             father[i]=i;
             ^
0_0_35168912_20277.cpp:54:16: error: 'vis' was not declared in this scope
         memset(vis,0,sizeof(vis));
                ^


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-09-28 03:25:12, Gzip enabled