C2001: Illegal type assigned to reference.

[ERROR]

Description

There is no conversion from type assigned to the type of the reference.

Example
  int *i;

  
  int &r=i;   // error

  
Tips

The type of the reference must be equal to the type assigned.