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_33530355_29152.cpp: In function 'int main()':
0_0_33530355_29152.cpp:62:21: error: invalid initialization of reference of type 'int&' from expression of type 'long long int'
         build(root[0],1,n);
                     ^
0_0_33530355_29152.cpp:12:6: note: in passing argument 1 of 'void build(int&, int, int)'
 void build(int &k1,int l1,int r1)
      ^
0_0_33530355_29152.cpp:72:27: error: invalid initialization of reference of type 'int&' from expression of type 'long long int'
             add(root[timer],root[timer-1],1,n,l,r,d);
                           ^
0_0_33530355_29152.cpp:22:7: note: in passing argument 1 of 'void add(int&, int, int, int, int, int, long long int)'
  void add(int &k1,int k2,int la,int ra,int l,int r,long long d)
       ^


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 10:29:17, Gzip enabled