我想问下我这个报错是什么原因啊?

这是全部代码:


```c++
#include<iostream>
#include<string>
using namespace std;
class son {
public:
    string name;
};
class father {
public:
    son son1;
    static string name;
    static int passwd;
    static void func() {
        name = "root";
        passwd = 123456;
        cout << "this is a static function" << endl;
    }
};
void function() {
    father::func();
}
void function2() {
    father f1;
    f1.func();
}
int main() {
    function();
    function2();
    return 0;
}

错误描述:

img

第16行和第17行 静态成员变量不能在类体里初始化