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_20975710_9200.cpp:6:7: error: 'maxn' does not name a type
 const maxn = 50005;
       ^
0_0_20975710_9200.cpp:11:7: error: 'maxn' was not declared in this scope
 }tree[maxn];
       ^
0_0_20975710_9200.cpp: In function 'void PushUp(int)':
0_0_20975710_9200.cpp:14:2: error: 'tree' was not declared in this scope
  tree[rt].sum = tree[rt << 1].sum + tree[rt << 1|1].sum;
  ^
0_0_20975710_9200.cpp: In function 'void Build(int, int, int)':
0_0_20975710_9200.cpp:18:2: error: 'tree' was not declared in this scope
  tree[rt].left = l;
  ^
0_0_20975710_9200.cpp: In function 'int Search(int, int, int, int, int)':
0_0_20975710_9200.cpp:32:10: error: 'tree' was not declared in this scope
   return tree[rt].sum;
          ^
0_0_20975710_9200.cpp: In function 'void Updata(int, int, int, int, int)':
0_0_20975710_9200.cpp:43:3: error: 'tree' was not declared in this scope
   tree[rt].sum += add;
   ^


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-16 10:43:07, Gzip enabled