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_32847448_9567.cpp: In member function 'void segment_tree::pushdown(int)':
0_0_32847448_9567.cpp:5:9: error: 'tree' was not declared in this scope
         tree[rt*2].flag[0]+=tree[rt].flag[0];
         ^
0_0_32847448_9567.cpp: In member function 'void segment_tree::build(int, int, int)':
0_0_32847448_9567.cpp:15:9: error: 'tree' was not declared in this scope
         tree[rt].flag[0]=0;
         ^
0_0_32847448_9567.cpp:19:30: error: 'st' was not declared in this scope
             tree[rt].flag[0]=st[l];
                              ^
0_0_32847448_9567.cpp:20:30: error: 'ol' was not declared in this scope
             tree[rt].flag[1]=ol[l];
                              ^
0_0_32847448_9567.cpp: In member function 'void segment_tree::update(int, int, int, int, int)':
0_0_32847448_9567.cpp:33:13: error: 'tree' was not declared in this scope
             tree[rt].flag[type]+=d;
             ^
0_0_32847448_9567.cpp: In member function 'void segment_tree::query(int, int, int&, int&, int, int)':
0_0_32847448_9567.cpp:51:16: error: 'tree' was not declared in this scope
             mi=tree[rt].flag[0];
                ^


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-28 22:28:32, Gzip enabled