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);
^~~
|