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_38655633_28274.cpp:6:11: error: 'r' does not name a type
     int l;r,val,lazy;
           ^
0_0_38655633_28274.cpp: In function 'void build(int, int, int)':
0_0_38655633_28274.cpp:11:10: error: 'struct node' has no member named 'r'
     t[n].r = r;
          ^
0_0_38655633_28274.cpp:12:10: error: 'struct node' has no member named 'lazy'
     t[n].lazy = 0;
          ^~~~
0_0_38655633_28274.cpp:14:14: error: 'struct node' has no member named 'val'
         t[n].val = w;
              ^~~
0_0_38655633_28274.cpp:20:10: error: 'struct node' has no member named 'val'
     t[n].val = max(t[2*n].val,t[2*n+1].val);
          ^~~
0_0_38655633_28274.cpp:20:27: error: 'struct node' has no member named 'val'
     t[n].val = max(t[2*n].val,t[2*n+1].val);
                           ^~~
0_0_38655633_28274.cpp:20:40: error: 'struct node' has no member named 'val'
     t[n].val = max(t[2*n].val,t[2*n+1].val);
                                        ^~~
0_0_38655633_28274.cpp: In function 'void updateOne(int, int)':
0_0_38655633_28274.cpp:24:18: error: 'struct node' has no member named 'r'
     int r = t[n].r;
                  ^
0_0_38655633_28274.cpp:27:14: error: 'struct node' has no member named 'val'
         t[n].val -= C;
              ^~~
0_0_38655633_28274.cpp:31:15: error: 'struct node' has no member named 'val'
     if(t[2*n].val>=C) updateOne(n*2,C);
               ^~~
0_0_38655633_28274.cpp:33:10: error: 'struct node' has no member named 'val'
     t[n].val = max(t[2*n].val,t[2*n+1].val);
          ^~~
0_0_38655633_28274.cpp:33:27: error: 'struct node' has no member named 'val'
     t[n].val = max(t[2*n].val,t[2*n+1].val);
                           ^~~
0_0_38655633_28274.cpp:33:40: error: 'struct node' has no member named 'val'
     t[n].val = max(t[2*n].val,t[2*n+1].val);
                                        ^~~
0_0_38655633_28274.cpp: In function 'int main()':
0_0_38655633_28274.cpp:43:21: error: 'struct node' has no member named 'val'
             if(t[1].val>=ww)updateOne(1,ww);
                     ^~~


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-15 17:42:45, Gzip enabled