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_30220352_29905.cpp: In function 'void build(long long int&, long long int, long long int)':
0_0_30220352_29905.cpp:27:23: error: invalid initialization of reference of type 'long long int&' from expression of type 'int'
  build(tree[k].l,l,mid);
                       ^
0_0_30220352_29905.cpp:18:6: note: in passing argument 1 of 'void build(long long int&, long long int, long long int)'
 void build(ll &k,ll l,ll r)
      ^
0_0_30220352_29905.cpp:28:28: error: invalid initialization of reference of type 'long long int&' from expression of type 'int'
     build(tree[k].r,mid+1,r);
                            ^
0_0_30220352_29905.cpp:18:6: note: in passing argument 1 of 'void build(long long int&, long long int, long long int)'
 void build(ll &k,ll l,ll r)
      ^
0_0_30220352_29905.cpp: In function 'void change(long long int&, long long int, long long int, long long int, long long int, long long int)':
0_0_30220352_29905.cpp:42:38: error: invalid initialization of reference of type 'long long int&' from expression of type 'int'
  change(tree[k].l,tree[q].l,l,r,x,mid);
                                      ^
0_0_30220352_29905.cpp:31:6: note: in passing argument 1 of 'void change(long long int&, long long int, long long int, long long int, long long int, long long int)'
 void change(ll &k,ll q,ll l,ll r,ll x,ll y) 
      ^
0_0_30220352_29905.cpp:44:40: error: invalid initialization of reference of type 'long long int&' from expression of type 'int'
  change(tree[k].r,tree[q].r,l,r,mid+1,y);
                                        ^
0_0_30220352_29905.cpp:31:6: note: in passing argument 1 of 'void change(long long int&, long long int, long long int, long long int, long long int, long long int)'
 void change(ll &k,ll q,ll l,ll r,ll x,ll y) 
      ^
0_0_30220352_29905.cpp: In function 'int main()':
0_0_30220352_29905.cpp:70:15: error: invalid initialization of reference of type 'long long int&' from expression of type 'int'
   build(root[0],1,n);
               ^
0_0_30220352_29905.cpp:18:6: note: in passing argument 1 of 'void build(long long int&, long long int, long long int)'
 void build(ll &k,ll l,ll r)
      ^
0_0_30220352_29905.cpp:84:20: error: invalid initialization of reference of type 'long long int&' from expression of type 'int'
     change(root[tag],root[tag- 1],l,r,1,n);
                    ^
0_0_30220352_29905.cpp:31:6: note: in passing argument 1 of 'void change(long long int&, long long int, long long int, long long int, long long int, long long int)'
 void change(ll &k,ll q,ll l,ll r,ll x,ll y) 
      ^


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 12:25:00, Gzip enabled