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_33031381_16370.cpp: In function 'int main()':
0_0_33031381_16370.cpp:50:52: error: 'scan_d' was not declared in this scope
         for (int i = 1; i <= n; i++) w[i] = scan_d();
                                                    ^
0_0_33031381_16370.cpp:62:13: error: expected ';' before 'int'
             int common = lca(s, t);
             ^
0_0_33031381_16370.cpp:64:38: error: 'common' was not declared in this scope
             for (int cur = s; cur != common; cur = fa[cur][0])
                                      ^
0_0_33031381_16370.cpp:68:38: error: 'common' was not declared in this scope
             for (int cur = t; cur != common; cur = fa[cur][0])
                                      ^
0_0_33031381_16370.cpp:72:19: error: 'common' was not declared in this scope
             if (w[common] >= a && w[common] <= b) ans += (LL) w[common];
                   ^
0_0_33031381_16370.cpp:73:28: error: 'cnt' was not declared in this scope
             printf("%lld", cnt)
                            ^


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-26 15:54:15, Gzip enabled