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_38810327_2853.cpp: In function 'void build(int, int, int)':
0_0_38810327_2853.cpp:84:14: error: 'struct node' has no member named 'l'
   84 |         t[p].l=l,t[p].r=r;
      |              ^
0_0_38810327_2853.cpp:84:23: error: 'struct node' has no member named 'r'
   84 |         t[p].l=l,t[p].r=r;
      |                       ^
0_0_38810327_2853.cpp: In function 'void find(int, int, int, int)':
0_0_38810327_2853.cpp:107:21: error: 'struct node' has no member named 'l'
  107 |         if (l<=t[p].l&&t[p].r<=r)
      |                     ^
0_0_38810327_2853.cpp:107:29: error: 'struct node' has no member named 'r'
  107 |         if (l<=t[p].l&&t[p].r<=r)
      |                             ^
0_0_38810327_2853.cpp:113:23: error: 'struct node' has no member named 'l'
  113 |         int mid=(t[p].l+t[p].r)>>1;
      |                       ^
0_0_38810327_2853.cpp:113:30: error: 'struct node' has no member named 'r'
  113 |         int mid=(t[p].l+t[p].r)>>1;
      |                              ^
0_0_38810327_2853.cpp: In function 'int ask_max(int, int, int)':
0_0_38810327_2853.cpp:121:21: error: 'struct node' has no member named 'l'
  121 |         if (l<=t[p].l&&t[p].r<=r) return t[p].maxn;
      |                     ^
0_0_38810327_2853.cpp:121:29: error: 'struct node' has no member named 'r'
  121 |         if (l<=t[p].l&&t[p].r<=r) return t[p].maxn;
      |                             ^
0_0_38810327_2853.cpp:123:30: error: 'struct node' has no member named 'l'
  123 |         int maxn=0,mid=(t[p].l+t[p].r)>>1;
      |                              ^
0_0_38810327_2853.cpp:123:37: error: 'struct node' has no member named 'r'
  123 |         int maxn=0,mid=(t[p].l+t[p].r)>>1;
      |                                     ^
0_0_38810327_2853.cpp: In function 'long long int ask_sum(int, int, int)':
0_0_38810327_2853.cpp:130:21: error: 'struct node' has no member named 'l'
  130 |         if (l<=t[p].l&&t[p].r<=r) return t[p].sum;
      |                     ^
0_0_38810327_2853.cpp:130:29: error: 'struct node' has no member named 'r'
  130 |         if (l<=t[p].l&&t[p].r<=r) return t[p].sum;
      |                             ^
0_0_38810327_2853.cpp:133:23: error: 'struct node' has no member named 'l'
  133 |         int mid=(t[p].l+t[p].r)>>1;
      |                       ^
0_0_38810327_2853.cpp:133:30: error: 'struct node' has no member named 'r'
  133 |         int mid=(t[p].l+t[p].r)>>1;
      |                              ^


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-26 20:53:42, Gzip enabled