#2169. C++-编译-cannot bind non-const lvalue reference of type 'xxx&'...

C++-编译-cannot bind non-const lvalue reference of type 'xxx&'...

Background

Description

cannot bind non-const lvalue reference of type 'xxx&' to an rvalue of type 'xxx'

不能将类型为'xxx&'的非常量左值引用绑定到类型为'xxx'的右值

给引用绑定了一个表达式或者一个常数,比如:

int& p1=a+1;      //对表达式引用
int& p2=2;       //对常数引用

Format

Input

Output

Samples



Limitation

1s, 1024KiB for each test case.