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_16982309_2796.cpp: In function 'void merge(int, int, int, int&, int&)':
0_0_16982309_2796.cpp:3:18: error: 'find' was not declared in this scope
     int fa=find(a), fb=find(b);
                  ^
0_0_16982309_2796.cpp:5:12: error: 'fb' was not declared in this scope
     if(fa!=fb)
            ^
0_0_16982309_2796.cpp:7:12: error: 'rank' was not declared in this scope
         if(rank[fa]<rank[fb])
            ^
0_0_16982309_2796.cpp:9:13: error: 'p' was not declared in this scope
             p[fa]=fb;
             ^
0_0_16982309_2796.cpp:13:13: error: 'p' was not declared in this scope
             p[fb]=fa, rank[fa]+=rank[fb];
             ^
0_0_16982309_2796.cpp:14:19: error: 'ans' was not declared in this scope
         if(!color)ans+=W[pp].w;
                   ^
0_0_16982309_2796.cpp:14:24: error: 'W' was not declared in this scope
         if(!color)ans+=W[pp].w;
                        ^
0_0_16982309_2796.cpp:15:14: error: 'ans' was not declared in this scope
         else ans+=B[pp].w;
              ^
0_0_16982309_2796.cpp:15:19: error: 'B' was not declared in this scope
         else ans+=B[pp].w;
                   ^
0_0_16982309_2796.cpp: In function 'int kruskal(int, int)':
0_0_16982309_2796.cpp:23:11: error: 'init' was not declared in this scope
     init(n);
           ^
0_0_16982309_2796.cpp:26:15: error: 'cntB' was not declared in this scope
     while (pb<cntB && pw<cntW)
               ^
0_0_16982309_2796.cpp:26:26: error: 'cntW' was not declared in this scope
     while (pb<cntB && pw<cntW)
                          ^
0_0_16982309_2796.cpp:29:13: error: 'B' was not declared in this scope
         if((B[pb].w>W[pw].w+x && pb<cntB && pw<cntW) || pb>=cntB)
             ^
0_0_16982309_2796.cpp:29:21: error: 'W' was not declared in this scope
         if((B[pb].w>W[pw].w+x && pb<cntB && pw<cntW) || pb>=cntB)
                     ^
0_0_16982309_2796.cpp:38:15: error: 'cntB' was not declared in this scope
     while (pb<cntB)merge(B[pw].u, B[pw].v, 1, pb, res);
               ^
0_0_16982309_2796.cpp:38:26: error: 'B' was not declared in this scope
     while (pb<cntB)merge(B[pw].u, B[pw].v, 1, pb, res);
                          ^
0_0_16982309_2796.cpp:39:15: error: 'cntW' was not declared in this scope
     while (pw<cntW)merge(W[pw].u, W[pw].v, 0, pw, res);
               ^
0_0_16982309_2796.cpp:39:26: error: 'W' was not declared in this scope
     while (pw<cntW)merge(W[pw].u, W[pw].v, 0, pw, res);
                          ^


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-06-29 08:07:46, Gzip enabled