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_14291591_4854.cpp: In function 'int findfa(int)':
0_0_14291591_4854.cpp:29:12: error: 'p' was not declared in this scope
     return p[x]==-1?x:p[x]=findfa(p[x]);
            ^
0_0_14291591_4854.cpp: In function 'void Union(int, int)':
0_0_14291591_4854.cpp:36:9: error: 'p' was not declared in this scope
         p[x]=y;
         ^
0_0_14291591_4854.cpp: In function 'void del(int)':
0_0_14291591_4854.cpp:40:5: error: 'vir' was not declared in this scope
     vir[u]=cnt++;
     ^
0_0_14291591_4854.cpp:40:12: error: 'cnt' was not declared in this scope
     vir[u]=cnt++;
            ^
0_0_14291591_4854.cpp: In function 'int main()':
0_0_14291591_4854.cpp:46:26: error: 'n' was not declared in this scope
     while(scanf("%d %d",&n,&m) && (n||m))
                          ^
0_0_14291591_4854.cpp:46:29: error: 'm' was not declared in this scope
     while(scanf("%d %d",&n,&m) && (n||m))
                             ^
0_0_14291591_4854.cpp:57:23: error: 'vir' was not declared in this scope
                 Union(vir[u],vir[v]);
                       ^
0_0_14291591_4854.cpp:67:13: error: 'vis' was not declared in this scope
             vis[findfa(vir[i])]=1;
             ^
0_0_14291591_4854.cpp:67:24: error: 'vir' was not declared in this scope
             vis[findfa(vir[i])]=1;
                        ^
0_0_14291591_4854.cpp:69:23: error: 'cnt' was not declared in this scope
         for(int i=0;i<cnt;i++)
                       ^
0_0_14291591_4854.cpp:70:16: error: 'vis' was not declared in this scope
             if(vis[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-03 16:11:10, Gzip enabled