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_14195914_7883.cpp:24:9: error: 'N' was not declared in this scope
 int cnt[N];
         ^
0_0_14195914_7883.cpp:25:8: error: 'N' was not declared in this scope
 int fa[N];
        ^
0_0_14195914_7883.cpp: In function 'int Find(int)':
0_0_14195914_7883.cpp:55:5: error: 'fa' was not declared in this scope
  if(fa[n]==n)
     ^
0_0_14195914_7883.cpp:57:14: error: 'fa' was not declared in this scope
  return Find(fa[n]);
              ^
0_0_14195914_7883.cpp: In function 'int Union(int, int)':
0_0_14195914_7883.cpp:64:3: error: 'cnt' was not declared in this scope
   cnt[fu]+=cnt[fv];
   ^
0_0_14195914_7883.cpp:65:3: error: 'fa' was not declared in this scope
   fa[fv]=fu;
   ^
0_0_14195914_7883.cpp: In function 'void Init(int)':
0_0_14195914_7883.cpp:74:3: error: 'cnt' was not declared in this scope
   cnt[i]=1,fa[i]=i;
   ^
0_0_14195914_7883.cpp:74:12: error: 'fa' was not declared in this scope
   cnt[i]=1,fa[i]=i;
            ^
0_0_14195914_7883.cpp: In function 'int main()':
0_0_14195914_7883.cpp:94:19: error: 'cnt' was not declared in this scope
     printf("%d\n",cnt[sum]);
                   ^


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-17 18:30:04, Gzip enabled