C1056: Friend specifier is illegal for data declarations

[ERROR]

Description

The friend specifier cannot be used for data declarations.

Example
  class A {

  
    friend int a;

  
  };

  
Tips

Remove the friend specifier from the data declaration.