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_16225073_419.cpp: In function 'void treeh(int, int, int)':
0_0_16225073_419.cpp:16:10: error: 'struct node' has no member named 'l'
  tree[h].l=x;tree[h].r=y;  
          ^
0_0_16225073_419.cpp:16:22: error: 'struct node' has no member named 'r'
  tree[h].l=x;tree[h].r=y;  
                      ^
0_0_16225073_419.cpp:20:24: error: return-statement with a value, in function returning 'void' [-fpermissive]
         return tree[h].s;  
                        ^
0_0_16225073_419.cpp:22:27: error: void value not ignored as it ought to be
     int x1=treeh(h*2,x,mid);  
                           ^
0_0_16225073_419.cpp:23:31: error: void value not ignored as it ought to be
     int x2=treeh(h*2+1,mid+1,y);  
                               ^
0_0_16225073_419.cpp:25:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return tree[h].s;
                    ^
0_0_16225073_419.cpp: In function 'int dfs(int, int, int)':
0_0_16225073_419.cpp:28:18: error: 'struct node' has no member named 'l'
     if(y<tree[h].l || x>tree[h].r)  
                  ^
0_0_16225073_419.cpp:28:33: error: 'struct node' has no member named 'r'
     if(y<tree[h].l || x>tree[h].r)  
                                 ^
0_0_16225073_419.cpp:30:19: error: 'struct node' has no member named 'l'
     if(x<=tree[h].l && y>=tree[h].r)  
                   ^
0_0_16225073_419.cpp:30:35: error: 'struct node' has no member named 'r'
     if(x<=tree[h].l && y>=tree[h].r)  
                                   ^
0_0_16225073_419.cpp: In function 'int update(int, int)':
0_0_16225073_419.cpp:37:18: error: 'struct node' has no member named 'l'
     if(x<tree[h].l || x>tree[h].r)  
                  ^
0_0_16225073_419.cpp:37:33: error: 'struct node' has no member named 'r'
     if(x<tree[h].l || x>tree[h].r)  
                                 ^
0_0_16225073_419.cpp:39:16: error: 'struct node' has no member named 'l'
     if(tree[h].l==tree[h].r){  
                ^
0_0_16225073_419.cpp:39:27: error: 'struct node' has no member named 'r'
     if(tree[h].l==tree[h].r){  
                           ^
0_0_16225073_419.cpp:40:29: error: 'struct node' has no member named 'l'
         tree[h].s=a[tree[h].l];  
                             ^


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-12-02 15:38:35, Gzip enabled