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_38958248_28551.cpp: In function 'void build(int&, int, int)':
0_0_38958248_28551.cpp:25:21: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'long long int'
   25 |         build(tr[u].l,l,mid);
      |               ~~~~~~^
0_0_38958248_28551.cpp:18:17: note:   initializing argument 1 of 'void build(int&, int, int)'
   18 | void build(int &u,int l,int r){
      |            ~~~~~^
0_0_38958248_28551.cpp:26:21: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'long long int'
   26 |         build(tr[u].r,mid+1,r);
      |               ~~~~~~^
0_0_38958248_28551.cpp:18:17: note:   initializing argument 1 of 'void build(int&, int, int)'
   18 | void build(int &u,int l,int r){
      |            ~~~~~^
0_0_38958248_28551.cpp: In function 'void modify(int, int, int&, int, int, int, long long int)':
0_0_38958248_28551.cpp:39:36: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'long long int'
   39 |                 modify(l,mid,tr[u].l,tr[q].l,L,R,x);
      |                              ~~~~~~^
0_0_38958248_28551.cpp:29:30: note:   initializing argument 3 of 'void modify(int, int, int&, int, int, int, long long int)'
   29 | void modify(int l,int r,int &u,int q,int L,int R,long long x){
      |                         ~~~~~^
0_0_38958248_28551.cpp:40:38: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'long long int'
   40 |                 modify(mid+1,r,tr[u].r,tr[q].r,L,R,x);
      |                                ~~~~~~^
0_0_38958248_28551.cpp:29:30: note:   initializing argument 3 of 'void modify(int, int, int&, int, int, int, long long int)'
   29 | void modify(int l,int r,int &u,int q,int L,int R,long long x){
      |                         ~~~~~^
0_0_38958248_28551.cpp: In function 'int main()':
0_0_38958248_28551.cpp:59:27: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'long long int'
   59 |                 build(rt[0],1,n);
      |                       ~~~~^
0_0_38958248_28551.cpp:18:17: note:   initializing argument 1 of 'void build(int&, int, int)'
   18 | void build(int &u,int l,int r){
      |            ~~~~~^
0_0_38958248_28551.cpp:70:52: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'long long int'
   70 |                                 modify(1ll,n,rt[now],rt[now-1],l,r,k);
      |                                              ~~~~~~^
0_0_38958248_28551.cpp:29:30: note:   initializing argument 3 of 'void modify(int, int, int&, int, int, int, long long int)'
   29 | void modify(int l,int r,int &u,int q,int L,int R,long long 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-09-28 11:15:30, Gzip enabled