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_16650731_12210.cpp:9:8: error: 'N' was not declared in this scope
 int in[N],out[N],father[N],visited[N];
        ^
0_0_16650731_12210.cpp:9:15: error: 'N' was not declared in this scope
 int in[N],out[N],father[N],visited[N];
               ^
0_0_16650731_12210.cpp:9:25: error: 'N' was not declared in this scope
 int in[N],out[N],father[N],visited[N];
                         ^
0_0_16650731_12210.cpp:9:36: error: 'N' was not declared in this scope
 int in[N],out[N],father[N],visited[N];
                                    ^
0_0_16650731_12210.cpp: In function 'int find(int)':
0_0_16650731_12210.cpp:13:11: error: 'father' was not declared in this scope
     if(x==father[x]) return x;
           ^
0_0_16650731_12210.cpp:14:17: error: 'father' was not declared in this scope
     return find(father[x]);
                 ^
0_0_16650731_12210.cpp: In function 'int main()':
0_0_16650731_12210.cpp:25:16: error: 'in' was not declared in this scope
         memset(in,0,sizeof(in));
                ^
0_0_16650731_12210.cpp:26:16: error: 'out' was not declared in this scope
         memset(out,0,sizeof(out));
                ^
0_0_16650731_12210.cpp:27:16: error: 'visited' was not declared in this scope
         memset(visited,false,sizeof(visited));
                ^
0_0_16650731_12210.cpp:28:19: error: 'N' was not declared in this scope
         for(i=0;i<N;i++) father[i]=i;
                   ^
0_0_16650731_12210.cpp:28:26: error: 'father' was not declared in this scope
         for(i=0;i<N;i++) father[i]=i;
                          ^
0_0_16650731_12210.cpp:37:13: error: 'father' was not declared in this scope
             father[x]=father[y]=find(x);
             ^
0_0_16650731_12210.cpp:41:19: error: 'N' was not declared in this scope
         for(i=0;i<N;i++)
                   ^
0_0_16650731_12210.cpp:43:31: error: 'father' was not declared in this scope
             if(visited[i]&&i==father[i])
                               ^
0_0_16650731_12210.cpp:55:19: error: 'N' was not declared in this scope
         for(i=0;i<N;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-11-19 22:34:19, Gzip enabled