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_24536605_9551.cpp: In function 'short int query(int, int, int)':
0_0_24536605_9551.cpp:49:6: error: 'tree' was not declared in this scope
   if(tree[root].left>right||tree[root].right<left)  
      ^
0_0_24536605_9551.cpp:51:8: error: 'tree' was not declared in this scope
     if(tree[root].left>=left&&tree[root].right<=right)  
        ^
0_0_24536605_9551.cpp:55:18: error: 'tree' was not declared in this scope
     int a,b,mid=(tree[root].left+tree[root].right)>>1;  
                  ^
0_0_24536605_9551.cpp:56:29: error: 'cal' was not declared in this scope
     a=cal(root<<1,left,right);  
                             ^


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-19 03:23:41, Gzip enabled