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_17024614_19303.cpp:8:7: error: 'N' was not declared in this scope
 int f[N];                   //并查集
       ^
0_0_17024614_19303.cpp: In function 'int kruskal(int, int)':
0_0_17024614_19303.cpp:12:11: error: 'p' was not declared in this scope
     sort (p, p+m, cmp);
           ^
0_0_17024614_19303.cpp:12:19: error: 'cmp' was not declared in this scope
     sort (p, p+m, cmp);
                   ^
0_0_17024614_19303.cpp:12:22: error: 'sort' was not declared in this scope
     sort (p, p+m, cmp);
                      ^
0_0_17024614_19303.cpp:14:9: error: 'f' was not declared in this scope
         f[i] = i;
         ^
0_0_17024614_19303.cpp:18:29: error: 'find' was not declared in this scope
         int t1 = find(p[i].s), t2 = find(p[i].e);
                             ^
0_0_17024614_19303.cpp:19:19: error: 't2' was not declared in this scope
         if (t1 != t2){
                   ^
0_0_17024614_19303.cpp:21:13: error: 'f' was not declared in this scope
             f[t1] = t2;
             ^
0_0_17024614_19303.cpp:27:29: error: 'find' was not declared in this scope
         if (!i) tmp = find(i);
                             ^
0_0_17024614_19303.cpp:28:31: error: 'find' was not declared in this scope
         else if (tmp != find(i)) return -1;
                               ^


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-23 09:34:50, Gzip enabled