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_36263675_7295.cpp:35:33: error: stray ',' at end of member declaration
 struct Tree{ll sum,tag;int ls,rs,;}t[maxn<<5];
                                 ^
0_0_36263675_7295.cpp: In function 'void build(ll, ll, ll&)':
0_0_36263675_7295.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_36263675_7295.cpp:52:13: note: in passing argument 3 of 'void build(ll, ll, ll&)'
 inline void build(ll l,ll r,ll&k)
             ^
0_0_36263675_7295.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_36263675_7295.cpp:52:13: note: in passing argument 3 of 'void build(ll, ll, ll&)'
 inline void build(ll l,ll r,ll&k)
             ^
0_0_36263675_7295.cpp: In function 'void update(ll&, ll, ll, ll, ll, ll, ll)':
0_0_36263675_7295.cpp:78:53: error: invalid initialization of reference of type 'll& {aka long long int&}' from expression of type 'int'
     if(nl<=mid)update(t[k].ls,t[lk].ls,nl,nr,l,mid,x);
                                                     ^
0_0_36263675_7295.cpp:66:13: note: in passing argument 1 of 'void update(ll&, ll, ll, ll, ll, ll, ll)'
 inline void update(ll&k,ll lk,ll nl,ll nr,ll l,ll r,ll x)
             ^
0_0_36263675_7295.cpp:79:54: error: invalid initialization of reference of type 'll& {aka long long int&}' from expression of type 'int'
     if(nr>mid)update(t[k].rs,t[lk].rs,nl,nr,mid+1,r,x);
                                                      ^
0_0_36263675_7295.cpp:66:13: note: in passing argument 1 of 'void update(ll&, ll, ll, ll, ll, ll, ll)'
 inline void update(ll&k,ll lk,ll nl,ll nr,ll l,ll r,ll x)
             ^
0_0_36263675_7295.cpp: In function 'int main()':
0_0_36263675_7295.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_36263675_7295.cpp:52:13: note: in passing argument 3 of 'void build(ll, ll, ll&)'
 inline void build(ll l,ll r,ll&k)
             ^
0_0_36263675_7295.cpp:107:32: error: invalid initialization of reference of type 'll& {aka long long int&}' from expression of type 'int'
                 update(rt[now+1],rt[now],l,r,1,n,x);
                                ^
0_0_36263675_7295.cpp:66:13: note: in passing argument 1 of 'void update(ll&, ll, ll, ll, ll, ll, ll)'
 inline void update(ll&k,ll lk,ll nl,ll nr,ll l,ll r,ll x)
             ^


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