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_39149315_30191.cpp: In member function 'void Segment_Tree::update(long long int, long long int, long long int)':
0_0_39149315_30191.cpp:51:20: error: 'l' was not declared in this scope
   51 |                 if(l<=tr[p].l&&tr[p].r<=r)return ,void();
      |                    ^
0_0_39149315_30191.cpp:51:41: error: 'r' was not declared in this scope
   51 |                 if(l<=tr[p].l&&tr[p].r<=r)return ,void();
      |                                         ^
0_0_39149315_30191.cpp:51:50: error: expected primary-expression before ',' token
   51 |                 if(l<=tr[p].l&&tr[p].r<=r)return ,void();
      |                                                  ^
0_0_39149315_30191.cpp:53:25: error: 'l' was not declared in this scope
   53 |                 if(mid>=l)update(ls,l,r,d);
      |                         ^
0_0_39149315_30191.cpp:53:39: error: 'r' was not declared in this scope
   53 |                 if(mid>=l)update(ls,l,r,d);
      |                                       ^
0_0_39149315_30191.cpp:54:24: error: 'r' was not declared in this scope
   54 |                 if(mid<r)update(rs,l,r,d);
      |                        ^
0_0_39149315_30191.cpp:54:36: error: 'l' was not declared in this scope
   54 |                 if(mid<r)update(rs,l,r,d);
      |                                    ^


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-05 10:45:40, Gzip enabled