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_30992988_24363.cpp: In member function 'int lca_Doubling::getDistance(int, int)':
0_0_30992988_24363.cpp:70:23: error: 'lca' was not declared in this scope
         return dis[u]+lca.dis[v]-2*lca.dis[getAncestor(u,v)];
                       ^
0_0_30992988_24363.cpp: In function 'int main()':
0_0_30992988_24363.cpp:116:30: error: use of 'u' before deduction of 'auto'
             for ( auto u : c[u] ) 
                              ^
0_0_30992988_24363.cpp:117:34: error: use of 'v' before deduction of 'auto'
                 for ( auto v : c[v] ) 
                                  ^


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 05:47:46, Gzip enabled