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_36784249_31132.cpp: In function 'void solve()':
0_0_36784249_31132.cpp:74:15: error: invalid initialization of reference of type 'int&' from expression of type 'll {aka long long int}'
     build(rt[0],1,n);
               ^
0_0_36784249_31132.cpp:18:6: note: in passing argument 1 of 'void build(int&, int, int)'
 void build(int &k,int l,int r){
      ^
0_0_36784249_31132.cpp:82:28: error: invalid initialization of reference of type 'int&' from expression of type 'll {aka long long int}'
             insert(rt[tim+1],rt[tim],1,n,l,r,d);
                            ^
0_0_36784249_31132.cpp:43:6: note: in passing argument 1 of 'void insert(int&, int, int, int, int, int, ll)'
 void insert(int &k,int pr,int l,int r,int ql,int qr,ll v){
      ^


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 00:24:22, Gzip enabled