一个无法解析的外部命令

project产生如下报错:
1.一个无法解析的外部命令
2.无法解析的外部符号 _main,该符号在函数 "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ) 中被引用

#include<stdio.h>
#include<stdlib.h>
struct student {
    char name[20];
    int score;
    struct student* pnext;//指向下一个学生的指针
};
int count=0;
struct student* create() {
    struct student *phead = NULL;
    struct student* pend, * pnew;
    pend = (struct student*)malloc(sizeof(struct student));
    pnew = (struct student*)malloc(sizeof(struct student));
    scanf_s("%s", &pnew->name, 20);
    scanf_s("%d", &pnew->score);
    while (pnew->score != 0) {
        count++;
        if (count == 1) {
            pend = pnew;
            phead = pnew;
        }
        else {
            pnew->pnext = NULL;
            pend->pnext = pnew;
            pend = pnew;
        }
        pnew = (struct student*)malloc(sizeof(struct student));
        scanf_s("%s", &pnew->name, 20);
        scanf_s("%d", &pnew->score);

    }
    free(pnew);
    return phead;


}

你的程序缺少main函数
可以写一个
int main()
{
struct student* p = create();
}