Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(a+b>c && a+c>b && b+c>a)
  ^~
/in/foo.cc:10:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   s=sqrt(p*(p-a)*(p-b)*(p-c));
   ^
/in/foo.cc:12:2: error: 'else' without a previous 'if'
  else
  ^~~~

信息

递交者
类型
递交
题目
P1701 求三角形面积
语言
C++
递交时间
2024-02-18 20:36:19
评测时间
2024-02-18 20:36:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes