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_36263708_10928.cpp: In function 'void build(int, int, ll&)':
0_0_36263708_10928.cpp:62:24: error: invalid initialization of reference of type 'll& {aka long long int&}' from expression of type 'int'
     build(l,mid,t[k].ls);
                        ^
0_0_36263708_10928.cpp:52:13: note: in passing argument 3 of 'void build(int, int, ll&)'
 inline void build(int l,int r,ll&k)
             ^
0_0_36263708_10928.cpp:63:26: error: invalid initialization of reference of type 'll& {aka long long int&}' from expression of type 'int'
     build(mid+1,r,t[k].rs);
                          ^
0_0_36263708_10928.cpp:52:13: note: in passing argument 3 of 'void build(int, int, ll&)'
 inline void build(int l,int r,ll&k)
             ^
0_0_36263708_10928.cpp: In function 'int main()':
0_0_36263708_10928.cpp:98:23: error: invalid initialization of reference of type 'll& {aka long long int&}' from expression of type 'int'
         build(1,n,rt[0]);
                       ^
0_0_36263708_10928.cpp:52:13: note: in passing argument 3 of 'void build(int, int, ll&)'
 inline void build(int l,int r,ll&k)
             ^


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-17 02:51:05, Gzip enabled