还有错误啊
#include "stdio.h"
#include "math.h"
main()
{
double a,b,c,p,s;
scanf("%d%d%d\n",a,b,c);
if (((a+b>c)&&(a-b<c))||((a+c>b)&&(a-c<b))||((b+c>a)&&(b-c<a)));
p=(a+b+c)/2;
s=sqrt(p(p-a)(p-b)(p-c));
printf("三角形面积=%d\n",s);
}
--------------------Configuration: Cpp1 - Win32 Debug--------------------
Compiling...
Cpp1.cpp
C:\Users\Administrator\Desktop\Cpp1.cpp(8) : warning C4390: ';' : empty controlled statement found; is this the intent?
C:\Users\Administrator\Desktop\Cpp1.cpp(9) : error C2064: term does not evaluate to a function
C:\Users\Administrator\Desktop\Cpp1.cpp(11) : warning C4508: 'main' : function should return a value; 'void' return type assumed
执行 cl.exe 时出错.