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_29927038_25550.cpp: In function 'void Btree(int, int, int&)':
0_0_29927038_25550.cpp:17:19: error: invalid initialization of reference of type 'int&' from expression of type 'll {aka long long int}'
     Btree(l,m,ls[o]);
                   ^
0_0_29927038_25550.cpp:11:6: note: in passing argument 3 of 'void Btree(int, int, int&)'
 void Btree(int l,int r,int &o)
      ^
0_0_29927038_25550.cpp:18:21: error: invalid initialization of reference of type 'int&' from expression of type 'll {aka long long int}'
     Btree(m+1,r,rs[o]);
                     ^
0_0_29927038_25550.cpp:11:6: note: in passing argument 3 of 'void Btree(int, int, int&)'
 void Btree(int l,int r,int &o)
      ^
0_0_29927038_25550.cpp: In function 'void update(int, int, int, int&, int)':
0_0_29927038_25550.cpp:28:31: error: invalid initialization of reference of type 'int&' from expression of type 'll {aka long long int}'
     if(k<=m) update(l,m,k,ls[o],ls[last]);
                               ^
0_0_29927038_25550.cpp:20:6: note: in passing argument 4 of 'void update(int, int, int, int&, int)'
 void update(int l,int r,int k,int &o,int last)
      ^
0_0_29927038_25550.cpp:29:29: error: invalid initialization of reference of type 'int&' from expression of type 'll {aka long long int}'
     else update(m+1,r,k,rs[o],rs[last]);
                             ^
0_0_29927038_25550.cpp:20:6: note: in passing argument 4 of 'void update(int, int, int, int&, int)'
 void update(int l,int r,int k,int &o,int last)
      ^
0_0_29927038_25550.cpp: In function 'int main()':
0_0_29927038_25550.cpp:48:24: error: invalid initialization of reference of type 'int&' from expression of type 'll {aka long long int}'
         Btree(1,sz,rt[0]);
                        ^
0_0_29927038_25550.cpp:11:6: note: in passing argument 3 of 'void Btree(int, int, int&)'
 void Btree(int l,int r,int &o)
      ^
0_0_29927038_25550.cpp:50:52: error: invalid initialization of reference of type 'int&' from expression of type 'll {aka long long int}'
         for(int i=1;i<=n;i++) update(1,sz,a[i],rt[i],rt[i-1]);
                                                    ^
0_0_29927038_25550.cpp:20:6: note: in passing argument 4 of 'void update(int, int, int, int&, int)'
 void update(int l,int r,int k,int &o,int last)
      ^


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-07-04 16:53:43, Gzip enabled