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_30190228_14174.cpp: In function 'void solve(int)':
0_0_30190228_14174.cpp:3:10: error: 'init' was not declared in this scope
     init();
          ^
0_0_30190228_14174.cpp:4:19: error: 'n' was not declared in this scope
     for(int i=0;i<n+1;i++)
                   ^
0_0_30190228_14174.cpp:8:19: error: 'u' was not declared in this scope
             merge(u[i],v[i]);
                   ^
0_0_30190228_14174.cpp:8:24: error: 'v' was not declared in this scope
             merge(u[i],v[i]);
                        ^
0_0_30190228_14174.cpp:8:28: error: 'merge' was not declared in this scope
             merge(u[i],v[i]);
                            ^
0_0_30190228_14174.cpp:12:20: error: 'n' was not declared in this scope
     for(int i=1;i<=n;i++)//判断只有一个祖先
                    ^
0_0_30190228_14174.cpp:14:12: error: 'f' was not declared in this scope
         if(f[i]==i)
            ^
0_0_30190228_14174.cpp:18:5: error: 'output' was not declared in this scope
     output++;
     ^
0_0_30190228_14174.cpp: In function 'void solve2(int, int)':
0_0_30190228_14174.cpp:22:10: error: 'init' was not declared in this scope
     init();
          ^
0_0_30190228_14174.cpp:23:19: error: 'n' was not declared in this scope
     for(int i=0;i<n+1;i++)
                   ^
0_0_30190228_14174.cpp:27:19: error: 'u' was not declared in this scope
             merge(u[i],v[i]);
                   ^
0_0_30190228_14174.cpp:27:24: error: 'v' was not declared in this scope
             merge(u[i],v[i]);
                        ^
0_0_30190228_14174.cpp:27:28: error: 'merge' was not declared in this scope
             merge(u[i],v[i]);
                            ^
0_0_30190228_14174.cpp:31:20: error: 'n' was not declared in this scope
     for(int i=1;i<=n;i++)//判断只有一个祖先
                    ^
0_0_30190228_14174.cpp:33:12: error: 'f' was not declared in this scope
         if(f[i]==i)
            ^
0_0_30190228_14174.cpp:37:5: error: 'output' was not declared in this scope
     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-09-20 11:57:20, Gzip enabled