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_37652390_18361.cpp: In function 'void build(int, int, int)':
0_0_37652390_18361.cpp:161:13: error: invalid initialization of reference of type 'Node&' from expression of type 'int'
     pushup(o);
             ^
0_0_37652390_18361.cpp:56:6: note: in passing argument 1 of 'void pushup(Node&, Node&, Node&)'
 void pushup(Node &u,Node &l,Node &r){
      ^
0_0_37652390_18361.cpp: In function 'void update(int, int, int)':
0_0_37652390_18361.cpp:204:13: error: invalid initialization of reference of type 'Node&' from expression of type 'int'
     pushup(o);
             ^
0_0_37652390_18361.cpp:56:6: note: in passing argument 1 of 'void pushup(Node&, Node&, Node&)'
 void pushup(Node &u,Node &l,Node &r){
      ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-18 16:19:10, Gzip enabled