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_30518944_9321.cpp: In function 'void updata(long long int&, long long int, int, int, long long int, int, int)':
0_0_30518944_9321.cpp:50:32: error: invalid initialization of reference of type 'long long int&' from expression of type 'int'
     if(l <= mid)updata(ls[index], ls[pre], l, r, x, L, mid);
                                ^
0_0_30518944_9321.cpp:36:6: note: in passing argument 1 of 'void updata(long long int&, long long int, int, int, long long int, int, int)'
 void updata(ll &index, ll pre, int l, int r, ll x, int L, int R)
      ^
0_0_30518944_9321.cpp:51:31: error: invalid initialization of reference of type 'long long int&' from expression of type 'int'
     if(r > mid)updata(rs[index], rs[pre], l, r, x, mid + 1, R);
                               ^
0_0_30518944_9321.cpp:36:6: note: in passing argument 1 of 'void updata(long long int&, long long int, int, int, long long int, int, int)'
 void updata(ll &index, ll pre, int l, int r, ll x, int L, int R)
      ^
0_0_30518944_9321.cpp: In function 'int main()':
0_0_30518944_9321.cpp:103:26: error: invalid initialization of reference of type 'long long int&' from expression of type 'int'
             updata(T[time], T[time-1], l, r, num, 1, n);
                          ^
0_0_30518944_9321.cpp:36:6: note: in passing argument 1 of 'void updata(long long int&, long long int, int, int, long long int, int, int)'
 void updata(ll &index, ll pre, int l, int r, ll x, int L, int R)
      ^


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-18 05:47:31, Gzip enabled