Compile Error

foo.cc: In function 'int main()':
foo.cc:9:10: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    9 |    if(a>b&&b>c||a>c&&c>b)
      |       ~~~^~~~~
foo.cc:15:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   15 |    else if(b>a&&a>c||b>c&&c>a)
      |            ~~~^~~~~
foo.cc:31:31: error: expected ';' before 'if'
   31 |    s=sqrt(p*(p-a)*(p-b)*(p-c))
      |                               ^
      |                               ;
   32 |    if(a==c&&b==c&&a==b)
      |    ~~                          
foo.cc:36:4: error: expected '}' before 'else'
   36 |    else if(a==b&&b==a)
      |    ^~~~
foo.cc:29:4: note: to match this '{'
   29 |    {
      |    ^
foo.cc: At global scope:
foo.cc:50:4: error: expected unqualified-id before 'else'
   50 |    else
      |    ^~~~
foo.cc:54:4: error: expected unqualified-id before 'return'
   54 |    return 0;
      |    ^~~~~~
foo.cc:55:1: error: expected declaration before '}' token
   55 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1161 识别三角形
语言
C++
递交时间
2021-12-11 21:34:32
评测时间
2021-12-11 21:34:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes