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_28469055_20617.cpp: In function 'void PushUp(int)':
0_0_28469055_20617.cpp:52:24: error: 'l' was not declared in this scope
     tree[o].sum = tree[l].sum + tree[r].sum;
                        ^
0_0_28469055_20617.cpp:52:38: error: 'r' was not declared in this scope
     tree[o].sum = tree[l].sum + tree[r].sum;
                                      ^
0_0_28469055_20617.cpp: In function 'void PushDown(int)':
0_0_28469055_20617.cpp:60:14: error: 'l' was not declared in this scope
         tree[l].lazy = tree[r].lazy = tree[o].lazy;
              ^
0_0_28469055_20617.cpp:60:29: error: 'r' was not declared in this scope
         tree[l].lazy = tree[r].lazy = tree[o].lazy;
                             ^
0_0_28469055_20617.cpp:61:43: error: 'll' was not declared in this scope
         tree[l].sum = tree[o].lazy * tree[ll].len;
                                           ^
0_0_28469055_20617.cpp:62:43: error: 'rr' was not declared in this scope
         tree[r].sum = tree[o].lazy * tree[rr].len;
                                           ^
0_0_28469055_20617.cpp: In function 'void Update1(int, int, int)':
0_0_28469055_20617.cpp:89:26: error: 'l' was not declared in this scope
     if(R <= mid) Update1(l, L, R);
                          ^
0_0_28469055_20617.cpp:90:30: error: 'r' was not declared in this scope
     else if(L > mid) Update1(r, L, R);
                              ^
0_0_28469055_20617.cpp:91:20: error: 'l' was not declared in this scope
     else { Update1(l, L, mid); Update1(r, mid+1, R); }
                    ^
0_0_28469055_20617.cpp:91:40: error: 'r' was not declared in this scope
     else { Update1(l, L, mid); Update1(r, mid+1, R); }
                                        ^
0_0_28469055_20617.cpp: In function 'void Update2(int, int, int, int)':
0_0_28469055_20617.cpp:104:26: error: 'l' was not declared in this scope
     if(R <= mid) Update2(l, L, R, v);
                          ^
0_0_28469055_20617.cpp:105:30: error: 'r' was not declared in this scope
     else if(L > mid) Update2(r, L, R, v);
                              ^
0_0_28469055_20617.cpp:106:20: error: 'l' was not declared in this scope
     else { Update2(l, L, mid, v); Update2(r, mid+1, R, v); }
                    ^
0_0_28469055_20617.cpp:106:43: error: 'r' was not declared in this scope
     else { Update2(l, L, mid, v); Update2(r, mid+1, R, v); }
                                           ^
0_0_28469055_20617.cpp: In function 'long long int Query(int, int, int)':
0_0_28469055_20617.cpp:115:31: error: 'l' was not declared in this scope
     if(R <= mid) return Query(l, L, R);
                               ^
0_0_28469055_20617.cpp:116:35: error: 'r' was not declared in this scope
     else if(L > mid) return Query(r, L, R);
                                   ^
0_0_28469055_20617.cpp:117:23: error: 'l' was not declared in this scope
     else return Query(l, L, mid) + Query(r, mid+1, R);
                       ^
0_0_28469055_20617.cpp:117:42: error: 'r' was not declared in this scope
     else return Query(l, L, mid) + Query(r, mid+1, R);
                                          ^


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-28 20:46:31, Gzip enabled