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_38642177_9174.cpp: In function 'int main()':
0_0_38642177_9174.cpp:82:13: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
     seg_rst(1, L, 1, L, 2);
             ^
0_0_38642177_9174.cpp:55:6: note: in passing argument 1 of 'void seg_rst(int&, int, int, int, int, int)'
 void seg_rst(int &x, int L, int R, int l, int r, int k) {
      ^~~~~~~


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-14 15:11:59, Gzip enabled