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_37688892_15617.cpp:11:7: error: 'N' was not declared in this scope
 int p[N];
       ^
0_0_37688892_15617.cpp: In function 'int find(int)':
0_0_37688892_15617.cpp:13:5: error: 'p' was not declared in this scope
 if( p[x] != x ) p[x] = find(p[x]);
     ^
0_0_37688892_15617.cpp:14:8: error: 'p' was not declared in this scope
 return p[x];
        ^
0_0_37688892_15617.cpp: In function 'int main()':
0_0_37688892_15617.cpp:26:1: error: 'p' was not declared in this scope
 p[i] = i;
 ^
0_0_37688892_15617.cpp:27:1: error: 'p' was not declared in this scope
 p[a] = b;
 ^


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-07-04 16:53:55, Gzip enabled