c错误cpp(9) : error C2064: term does not evaluate to a function
#include<stdio.h>main()
{
int n;float x1,x2,y1,y2,max;
printf("please input two points:");
scanf("%f,%f %f,%f",&x1,&y1,&x2,&y2);
printf("please input the coordinate:");
scanf("%d",&n);
max=max(x2,y1,y2);
putchar('^');
putchar('\n');
for(int i=1;i<=n-1;i++)
{
putchar('+');
for(int j=1;j<=n-1;j++)
putchar(' ');
putchar('\n');
}
for(int a=1;a<=n;a++)
{putchar('+');putchar(' ');}
putchar('>');
return(0);
}
float max(float a, float b, float c)
{float z,x;
z=a>b?a:b;
x=z>c?z:c;
return(x);
}