c语言 帮我找下错
#include <stdio.h>#include <math.h>
int main()
{
float a, b, c,p,area,perimeter;
scanf("%f", &a);
scanf("%f", &b);
scanf("%f", &c);
p=(a+b+c)/2;
area=(p(p - a)(p - b)(p - c)) ^0.5;
perimeter=a+b+c;
if(a+b>c||a+c>b||b+c>a)
{
printf("area = %f",area);
printf("perimeter = %f",perimeter);
}
else
{
printf("This is not a valid triangle");
}
return 0;
}
build出来是
D:\编程\biancheng1.c|10|error: called object 'p' is not a function|
什么意思 错哪了 急急急!!!