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_38000565_12988.cpp: In function 'int lca(int, int)':
0_0_38000565_12988.cpp:46:13: error: 'fir' was not declared in this scope
     int l = fir[u], r = fir[v];
             ^
0_0_38000565_12988.cpp:47:13: error: 'r' was not declared in this scope
     if (l > r) swap(l, r);
             ^
0_0_38000565_12988.cpp:48:19: error: 'r' was not declared in this scope
     int lg = __lg(r - l + 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-22 15:14:41, Gzip enabled