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)提供评测服务