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_16349509_22114.cpp: In function 'void build_tree(int, int, int)':
0_0_16349509_22114.cpp:17:15: error: 'l' was not declared in this scope
 #define mid ((l+r)>>1)
               ^
0_0_16349509_22114.cpp:89:13: note: in expansion of macro 'mid'
         int mid = (L+R) >> 1;
             ^
0_0_16349509_22114.cpp:17:17: error: 'r' was not declared in this scope
 #define mid ((l+r)>>1)
                 ^
0_0_16349509_22114.cpp:89:13: note: in expansion of macro 'mid'
         int mid = (L+R) >> 1;
             ^
0_0_16349509_22114.cpp: In function 'void update1(int, int, int)':
0_0_16349509_22114.cpp:17:15: error: 'l' was not declared in this scope
 #define mid ((l+r)>>1)
               ^
0_0_16349509_22114.cpp:106:13: note: in expansion of macro 'mid'
         int mid = (L+R)>>1;
             ^
0_0_16349509_22114.cpp:17:17: error: 'r' was not declared in this scope
 #define mid ((l+r)>>1)
                 ^
0_0_16349509_22114.cpp:106:13: note: in expansion of macro 'mid'
         int mid = (L+R)>>1;
             ^
0_0_16349509_22114.cpp: In function 'void update2(int, int, SgTreeDataType, int)':
0_0_16349509_22114.cpp:17:15: error: 'l' was not declared in this scope
 #define mid ((l+r)>>1)
               ^
0_0_16349509_22114.cpp:119:13: note: in expansion of macro 'mid'
         int mid = (L+R)>>1;
             ^
0_0_16349509_22114.cpp:17:17: error: 'r' was not declared in this scope
 #define mid ((l+r)>>1)
                 ^
0_0_16349509_22114.cpp:119:13: note: in expansion of macro 'mid'
         int mid = (L+R)>>1;
             ^
0_0_16349509_22114.cpp: In function 'SgTreeDataType query(int, int, int)':
0_0_16349509_22114.cpp:17:15: error: 'l' was not declared in this scope
 #define mid ((l+r)>>1)
               ^
0_0_16349509_22114.cpp:132:13: note: in expansion of macro 'mid'
         int mid = (L+R)>>1;
             ^
0_0_16349509_22114.cpp:17:17: error: 'r' was not declared in this scope
 #define mid ((l+r)>>1)
                 ^
0_0_16349509_22114.cpp:132:13: note: in expansion of macro 'mid'
         int mid = (L+R)>>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-12-27 12:46:26, Gzip enabled