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_13156173_21368.cpp:12:7: error: 'M' was not declared in this scope
 }tree[M*4];
       ^
0_0_13156173_21368.cpp: In function 'void btree(int, int, int)':
0_0_13156173_21368.cpp:15:5: error: 'tree' was not declared in this scope
     tree[rt].left=left;
     ^
0_0_13156173_21368.cpp: In function 'void query(int, int, int, int, int)':
0_0_13156173_21368.cpp:31:14: error: 'tree' was not declared in this scope
         ans+=tree[rt].sum;
              ^
0_0_13156173_21368.cpp:34:13: error: 'tree' was not declared in this scope
     int mid=tree[rt].mid();
             ^
0_0_13156173_21368.cpp: In function 'void update(int, int, int, int, int)':
0_0_13156173_21368.cpp:49:9: error: 'tree' was not declared in this scope
         tree[rt].sum+=add;
         ^
0_0_13156173_21368.cpp:52:13: error: 'tree' was not declared in this scope
     int mid=tree[rt].mid();
             ^


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-09-28 15:21:08, Gzip enabled