超级新手,有两个错误不明白什么意思,求助~O(∩_∩)O谢谢
error C2449: found '{' at file scope (missing function header?)error C2059: syntax error : '}'
下面是代码
int max(int a,int b);
main()
{
int x,y,z;
int max(int a,int b);
printf("input two numbers:\n");
scanf("%d%d",&x,&y);
z = max(x,y);
printf("maxnum = %d",z);
}
int max(int a, int b);
{
if(a>b) return a;
else return b;
}