运行不了 说undefined reference to 'WinMain'
#include <stdio.h>
int factorial(int n)
{
int result;
if(n<=0)
{
printf("输入错误\n");
return 0;
}
else if(n==1)
{
return 10;
}
else
{
result = factorial(n-1)+2;
printf("result为%d\n",result);
return result;
}
}
int mian()
{
factorial(5);
return 0;
}