foo.cc: In function 'void Test1()':
foo.cc:54:24: error: cannot bind non-const lvalue reference of type 'Complex&' to an rvalue of type 'Complex'
54 | Complex snum(num1+num2+num3);
| ~~~~~~~~~^~~~~
foo.cc:11:19: note: initializing argument 1 of 'Complex::Complex(Complex&)'
11 | Complex(Complex &c):real(c.real),image(c.image) { }
| ~~~~~~~~~^
foo.cc:55:24: error: cannot bind non-const lvalue reference of type 'Complex&' to an rvalue of type 'Complex'
55 | Complex mnum(num1*num2*num3);
| ~~~~~~~~~^~~~~
foo.cc:11:19: note: initializing argument 1 of 'Complex::Complex(Complex&)'
11 | Complex(Complex &c):real(c.real),image(c.image) { }
| ~~~~~~~~~^
[Hydro](https://hydro.ac)提供评测服务