字符重载lnk2019 1120错误


#include<iostream>
using namespace std;
class person
{
public:
    //不能利用成员函数来重载左移运算符
    person(int a, int b)
    {
        this->a = a;
        this->b = b;
    }
    int a;
    int b;
};
ostream& operator<<(ostream &cout, person &p)//本质:operator<<(cout,p) 简化cout<<p
{
    cout << "a=" << p.a << "b=" << p.b;
    return cout;
}
void test()
{
    person p(10,20);
    cout << p << endl;
}
int mian()
{
    test();
    return 0;
}
问题相关代码,请勿粘贴截图
运行结果及报错内容
我的解答思路和尝试过的方法
我想要达到的结果

main函数名字写错了