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_20871377_14750.cpp: In function 'void update(ll, ll, ll, ll, ll&, ll, ll)':
0_0_20871377_14750.cpp:23:50: error: invalid initialization of reference of type 'll& {aka long long int&}' from expression of type 'int'
     if(r1<=mid)update(l1,r1,l,mid,T[x].l,T[y].l,w);
                                                  ^
0_0_20871377_14750.cpp:15:6: note: in passing argument 5 of 'void update(ll, ll, ll, ll, ll&, ll, ll)'
 void update(ll l1,ll r1,ll l,ll r,ll &x,ll y,ll w){
      ^
0_0_20871377_14750.cpp:24:56: error: invalid initialization of reference of type 'll& {aka long long int&}' from expression of type 'int'
     else if(mid<l1)update(l1,r1,mid+1,r,T[x].r,T[y].r,w);
                                                        ^
0_0_20871377_14750.cpp:15:6: note: in passing argument 5 of 'void update(ll, ll, ll, ll, ll&, ll, ll)'
 void update(ll l1,ll r1,ll l,ll r,ll &x,ll y,ll w){
      ^
0_0_20871377_14750.cpp:26:43: error: invalid initialization of reference of type 'll& {aka long long int&}' from expression of type 'int'
         update(l1,r1,l,mid,T[x].l,T[y].l,w);
                                           ^
0_0_20871377_14750.cpp:15:6: note: in passing argument 5 of 'void update(ll, ll, ll, ll, ll&, ll, ll)'
 void update(ll l1,ll r1,ll l,ll r,ll &x,ll y,ll w){
      ^
0_0_20871377_14750.cpp:27:45: error: invalid initialization of reference of type 'll& {aka long long int&}' from expression of type 'int'
         update(l1,r1,mid+1,r,T[x].r,T[y].r,w);
                                             ^
0_0_20871377_14750.cpp:15:6: note: in passing argument 5 of 'void update(ll, ll, ll, ll, ll&, ll, ll)'
 void update(ll l1,ll r1,ll l,ll r,ll &x,ll y,ll w){
      ^


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-16 11:00:14, Gzip enabled