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_29744030_25828.cpp:2:9: error: 'N' was not declared in this scope
 int f[2*N+M+1];
         ^
0_0_29744030_25828.cpp:2:11: error: 'M' was not declared in this scope
 int f[2*N+M+1];
           ^
0_0_29744030_25828.cpp:3:11: error: 'N' was not declared in this scope
 int vis[2*N+M+1];
           ^
0_0_29744030_25828.cpp:3:13: error: 'M' was not declared in this scope
 int vis[2*N+M+1];
             ^
0_0_29744030_25828.cpp: In function 'int find_root(int)':
0_0_29744030_25828.cpp:7:11: error: 'f' was not declared in this scope
  while(r!=f[r]) r=f[r];
           ^
0_0_29744030_25828.cpp:10:5: error: 'f' was not declared in this scope
   j=f[i];
     ^
0_0_29744030_25828.cpp: In function 'void merge(int, int)':
0_0_29744030_25828.cpp:23:5: error: 'f' was not declared in this scope
     f[B]=A;
     ^
0_0_29744030_25828.cpp: In function 'int main()':
0_0_29744030_25828.cpp:29:30: error: 'scanf' was not declared in this scope
     while(~scanf("%d%d",&n,&m))
                              ^
0_0_29744030_25828.cpp:34:13: error: 'f' was not declared in this scope
             f[i]=i+n;
             ^
0_0_29744030_25828.cpp:38:13: error: 'f' was not declared in this scope
             f[i]=i;
             ^
0_0_29744030_25828.cpp:54:17: error: 'f' was not declared in this scope
                 f[x]=cont++;
                 ^
0_0_29744030_25828.cpp:58:16: error: 'vis' was not declared in this scope
         memset(vis,0,sizeof(vis));
                ^
0_0_29744030_25828.cpp:58:33: error: 'memset' was not declared in this scope
         memset(vis,0,sizeof(vis));
                                 ^
0_0_29744030_25828.cpp:68:46: error: 'printf' was not declared in this scope
         printf("Case #%d: %d\n",++kase,output);
                                              ^


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-10-06 22:23:39, Gzip enabled