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_23717598_15184.cpp:3:12: error: array bound is not an integer constant before ']' token
 int pre[MAX];
            ^
0_0_23717598_15184.cpp: In function 'void init(int)':
0_0_23717598_15184.cpp:6:2: error: 'pre' was not declared in this scope
  pre[i]=i;
  ^
0_0_23717598_15184.cpp: In function 'int find(int)':
0_0_23717598_15184.cpp:9:5: error: 'pre' was not declared in this scope
  if(pre[x]==x) return x;
     ^
0_0_23717598_15184.cpp:10:9: error: 'pre' was not declared in this scope
  return pre[x]=find(pre[x]);
         ^
0_0_23717598_15184.cpp: In function 'void unite(int, int)':
0_0_23717598_15184.cpp:16:2: error: 'pre' was not declared in this scope
  pre[x]=y; 
  ^


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-23 00:43:19, Gzip enabled