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_25728478_7719.cpp: In function 'void update(int, int, long long int, int, int, int)':
0_0_25728478_7719.cpp:3:18: error: 'rt' was not declared in this scope
 #define lson l,m,rt<<1
                  ^
0_0_25728478_7719.cpp:36:20: note: in expansion of macro 'lson'
     update(L,R,val,lson);
                    ^
0_0_25728478_7719.cpp: In function 'long long int query(int, int, int, int, int)':
0_0_25728478_7719.cpp:3:18: error: 'rt' was not declared in this scope
 #define lson l,m,rt<<1
                  ^
0_0_25728478_7719.cpp:48:23: note: in expansion of macro 'lson'
         ans=query(L,R,lson);
                       ^
0_0_25728478_7719.cpp:4:20: error: 'rt' was not declared in this scope
 #define rson m+1,r,rt<<1|1
                    ^
0_0_25728478_7719.cpp:50:23: note: in expansion of macro 'rson'
         ans=query(L,R,rson);
                       ^


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-12-30 03:06:17, Gzip enabled