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_13156144_14194.cpp:15:7: error: 'maxn' was not declared in this scope
 }tree[maxn*4];
       ^
0_0_13156144_14194.cpp: In function 'void btree(int, int, int)':
0_0_13156144_14194.cpp:18:5: error: 'tree' was not declared in this scope
     tree[rt].left=left;
     ^
0_0_13156144_14194.cpp: In function 'void query(int, int, int, int, int)':
0_0_13156144_14194.cpp:34:14: error: 'tree' was not declared in this scope
         ans+=tree[rt].sum;
              ^
0_0_13156144_14194.cpp:37:13: error: 'tree' was not declared in this scope
     int mid=tree[rt].mid();
             ^
0_0_13156144_14194.cpp: In function 'void update(int, int, int, int, int)':
0_0_13156144_14194.cpp:50:3: error: 'tree' was not declared in this scope
   tree[rt].sum += add;
   ^
0_0_13156144_14194.cpp:53:12: 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:19:14, Gzip enabled