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_33258234_22760.cpp:5:11: error: array bound is not an integer constant before ']' token
 int fath[N],ins[N],n;
           ^
0_0_33258234_22760.cpp:5:18: error: array bound is not an integer constant before ']' token
 int fath[N],ins[N],n;
                  ^
0_0_33258234_22760.cpp: In function 'void init()':
0_0_33258234_22760.cpp:10:9: error: 'fath' was not declared in this scope
         fath[i]=i,ins[i]=0;
         ^
0_0_33258234_22760.cpp:10:19: error: 'ins' was not declared in this scope
         fath[i]=i,ins[i]=0;
                   ^
0_0_33258234_22760.cpp: In function 'int findfath(int)':
0_0_33258234_22760.cpp:14:11: error: 'fath' was not declared in this scope
     if(x!=fath[x])
           ^
0_0_33258234_22760.cpp:16:12: error: 'fath' was not declared in this scope
     return fath[x];
            ^
0_0_33258234_22760.cpp: In function 'void merger(int, int)':
0_0_33258234_22760.cpp:22:5: error: 'fath' was not declared in this scope
     fath[x]=y;
     ^
0_0_33258234_22760.cpp: In function 'int main()':
0_0_33258234_22760.cpp:63:16: error: 'fath' was not declared in this scope
             if(fath[i]==i)
                ^


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-12-02 03:57:37, Gzip enabled