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_38316018_7621.cpp:14:26: error: 'k' was not declared in this scope
 int rt[N << 2], c[K], ls[k], rs[K];
                          ^
0_0_38316018_7621.cpp: In function 'void update(int, int, int&)':
0_0_38316018_7621.cpp:5:22: error: 'ls' was not declared in this scope
 #define lson l, mid, ls[id]
                      ^
0_0_38316018_7621.cpp:22:23: note: in expansion of macro 'lson'
  if (v <= mid) update(lson);
                       ^
0_0_38316018_7621.cpp:24:16: error: 'ls' was not declared in this scope
  c[id] = max(c[ls[id]], c[rs[id]]);
                ^
0_0_38316018_7621.cpp: In function 'int query(int, int, int)':
0_0_38316018_7621.cpp:5:22: error: 'ls' was not declared in this scope
 #define lson l, mid, ls[id]
                      ^
0_0_38316018_7621.cpp:42:27: note: in expansion of macro 'lson'
  if (l2 <= mid) s = query(lson);
                           ^
0_0_38316018_7621.cpp: In function 'int main()':
0_0_38316018_7621.cpp:58:10: error: 'ls' was not declared in this scope
   memset(ls, 0, sizeof ls);
          ^


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-29 12:36:08, Gzip enabled