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_39188865_28568.cpp: In function 'void Main::Solve()':
0_0_39188865_28568.cpp:67:19: error: 'Q' was not declared in this scope
   67 |         REP(i, 1, Q) {
      |                   ^
0_0_39188865_28568.cpp:2:42: note: in definition of macro 'REP'
    2 | #define REP(i, l, r) for(int i = l; i <= r; ++i)
      |                                          ^
0_0_39188865_28568.cpp:72:25: error: 'lca' was not declared in this scope; did you mean 'la'?
   72 |                 int l = lca(u, v);
      |                         ^~~
      |                         la
0_0_39188865_28568.cpp:76:29: error: 'Q' was not declared in this scope
   76 |         sort(q + 1, q + 1 + Q);
      |                             ^


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-25 03:41:25, Gzip enabled