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_21955127_5951.cpp:15:1: error: 'NODE' does not name a type
 NODE tree[maxn * 4];
 ^
0_0_21955127_5951.cpp: In function 'int build(int, int, int)':
0_0_21955127_5951.cpp:18:2: error: 'tree' was not declared in this scope
  tree[root].left = left;
  ^
0_0_21955127_5951.cpp: In function 'int find(int, int, int)':
0_0_21955127_5951.cpp:29:5: error: 'tree' was not declared in this scope
  if(tree[root].left > right || tree[root].right < left)
     ^
0_0_21955127_5951.cpp:31:13: error: 'tree' was not declared in this scope
  if(left <= tree[root].left && tree[root].right <= right) 
             ^
0_0_21955127_5951.cpp: In function 'int updata(int, int, int)':
0_0_21955127_5951.cpp:39:11: error: 'tree' was not declared in this scope
  if(pos < tree[root].left || tree[root].right < pos)
           ^
0_0_21955127_5951.cpp:41:12: error: 'tree' was not declared in this scope
  if(pos == tree[root].left && pos == tree[root].right)
            ^
0_0_21955127_5951.cpp:45:2: error: 'tree' was not declared in this scope
  tree[root].max = max(a, b);
  ^


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-27 06:40:09, Gzip enabled