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_39175787_27796.cpp: In member function 'void pre_Segtree::insert(int&, int, int)':
0_0_39175787_27796.cpp:3:21: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'll' {aka 'long long int'}
    3 | #define lc(i) tr[i].ls
      |               ~~~~~~^~
0_0_39175787_27796.cpp:31:24: note: in expansion of macro 'lc'
   31 |                 insert(lc(o),l,mid),insert(rc(o),mid+1,r);
      |                        ^~
0_0_39175787_27796.cpp:24:33: note:   initializing argument 1 of 'void pre_Segtree::insert(int&, int, int)'
   24 |         inline void insert(int &o,int l,int r){
      |                            ~~~~~^
0_0_39175787_27796.cpp:4:21: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'll' {aka 'long long int'}
    4 | #define rc(i) tr[i].rs
      |               ~~~~~~^~
0_0_39175787_27796.cpp:31:44: note: in expansion of macro 'rc'
   31 |                 insert(lc(o),l,mid),insert(rc(o),mid+1,r);
      |                                            ^~
0_0_39175787_27796.cpp:24:33: note:   initializing argument 1 of 'void pre_Segtree::insert(int&, int, int)'
   24 |         inline void insert(int &o,int l,int r){
      |                            ~~~~~^
0_0_39175787_27796.cpp: In member function 'void pre_Segtree::update(int&, int, int, int, int, int, int)':
0_0_39175787_27796.cpp:3:21: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'll' {aka 'long long int'}
    3 | #define lc(i) tr[i].ls
      |               ~~~~~~^~
0_0_39175787_27796.cpp:41:36: note: in expansion of macro 'lc'
   41 |                 if(qr<=mid) update(lc(o),lc(pre),l,mid,ql,qr,v);
      |                                    ^~
0_0_39175787_27796.cpp:34:33: note:   initializing argument 1 of 'void pre_Segtree::update(int&, int, int, int, int, int, int)'
   34 |         inline void update(int &o,int pre,int l,int r,int ql,int qr,int v){
      |                            ~~~~~^
0_0_39175787_27796.cpp:4:21: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'll' {aka 'long long int'}
    4 | #define rc(i) tr[i].rs
      |               ~~~~~~^~
0_0_39175787_27796.cpp:42:40: note: in expansion of macro 'rc'
   42 |                 else if(ql>mid) update(rc(o),rc(pre),mid+1,r,ql,qr,v);
      |                                        ^~
0_0_39175787_27796.cpp:34:33: note:   initializing argument 1 of 'void pre_Segtree::update(int&, int, int, int, int, int, int)'
   34 |         inline void update(int &o,int pre,int l,int r,int ql,int qr,int v){
      |                            ~~~~~^
0_0_39175787_27796.cpp:3:21: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'll' {aka 'long long int'}
    3 | #define lc(i) tr[i].ls
      |               ~~~~~~^~
0_0_39175787_27796.cpp:43:29: note: in expansion of macro 'lc'
   43 |                 else update(lc(o),lc(o),l,mid,ql,mid,v),update(rc(o),rc(o),mid+1,r,mid+1,qr,v);
      |                             ^~
0_0_39175787_27796.cpp:34:33: note:   initializing argument 1 of 'void pre_Segtree::update(int&, int, int, int, int, int, int)'
   34 |         inline void update(int &o,int pre,int l,int r,int ql,int qr,int v){
      |                            ~~~~~^
0_0_39175787_27796.cpp:4:21: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'll' {aka 'long long int'}
    4 | #define rc(i) tr[i].rs
      |               ~~~~~~^~
0_0_39175787_27796.cpp:43:64: note: in expansion of macro 'rc'
   43 |                 else update(lc(o),lc(o),l,mid,ql,mid,v),update(rc(o),rc(o),mid+1,r,mid+1,qr,v);
      |                                                                ^~
0_0_39175787_27796.cpp:34:33: note:   initializing argument 1 of 'void pre_Segtree::update(int&, int, int, int, int, int, int)'
   34 |         inline void update(int &o,int pre,int l,int r,int ql,int qr,int 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-09-28 09:27:38, Gzip enabled