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_28905755_26587.cpp:5:11: error: 'N' was not declared in this scope
 int n,m,f[N],re[M],ca;
           ^
0_0_28905755_26587.cpp: In function 'int find(int)':
0_0_28905755_26587.cpp:8:9: error: 'f' was not declared in this scope
  return f[x]==x?x:f[x]=find(f[x]);
         ^
0_0_28905755_26587.cpp: In function 'int main()':
0_0_28905755_26587.cpp:14:25: error: 'f' was not declared in this scope
   for(int i=0; i<n; i++)f[i]=i,re[i]=i;
                         ^
0_0_28905755_26587.cpp:24:15: error: 'f' was not declared in this scope
     if(fx!=fy)f[fx]=fy;
               ^
0_0_28905755_26587.cpp:30:5: error: 'f' was not declared in this scope
     f[sham]=sham;
     ^


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-16 23:50:55, Gzip enabled