/in/foo.cc: In function 'int main()':
/in/foo.cc:209:9: error: invalid initialization of non-const reference of type 'Vector3&' from an rvalue of type 'Vector3'
V2 = V1*V1;
~~^~~
/in/foo.cc:77:7: note: initializing argument 1 of 'void Vector3::operator=(Vector3&)'
void operator =(Vector3 &v)
^~~~~~~~
/in/foo.cc:210:9: error: invalid initialization of non-const reference of type 'Vector3&' from an rvalue of type 'Vector3'
V3 = V1*M1;
~~^~~
/in/foo.cc:77:7: note: initializing argument 1 of 'void Vector3::operator=(Vector3&)'
void operator =(Vector3 &v)
^~~~~~~~
/in/foo.cc:211:9: error: invalid initialization of non-const reference of type 'Vector3&' from an rvalue of type 'Vector3'
V4 = M1*V1;
~~^~~
/in/foo.cc:77:7: note: initializing argument 1 of 'void Vector3::operator=(Vector3&)'
void operator =(Vector3 &v)
^~~~~~~~
/in/foo.cc:212:9: error: invalid initialization of non-const reference of type 'Matrix3&' from an rvalue of type 'Matrix3'
M2 = M1*M1;
~~^~~
/in/foo.cc:172:7: note: initializing argument 1 of 'void Matrix3::operator=(Matrix3&)'
void operator =(Matrix3 &M)
^~~~~~~~