foo.c: In function 'main':
foo.c:8:36: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
8 | switch(a>=b+c||b>=a+c||c>=a+b||a<=abs(b-c)||b<=abs(a-c)||c<=abs(a-b))
| ^~~
foo.c:8:41: warning: 'abs' argument 1 promotes to 'double' where 'int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
8 | switch(a>=b+c||b>=a+c||c>=a+b||a<=abs(b-c)||b<=abs(a-c)||c<=abs(a-b))
| ~^~
<built-in>: note: built-in 'abs' declared here
foo.c:8:54: warning: 'abs' argument 1 promotes to 'double' where 'int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
8 | switch(a>=b+c||b>=a+c||c>=a+b||a<=abs(b-c)||b<=abs(a-c)||c<=abs(a-b))
| ~^~
<built-in>: note: built-in 'abs' declared here
foo.c:8:67: warning: 'abs' argument 1 promotes to 'double' where 'int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
8 | switch(a>=b+c||b>=a+c||c>=a+b||a<=abs(b-c)||b<=abs(a-c)||c<=abs(a-b))
| ~^~
<built-in>: note: built-in 'abs' declared here
foo.c:20:13: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
20 | switch(a==b&&a!=c||a==c&&a!=b||b==c&&b!=a)
| ~~~~^~~~~~
foo.c:20:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
20 | switch(a==b&&a!=c||a==c&&a!=b||b==c&&b!=a)
| ~~~~^~~~~~
foo.c:10:3: warning: statement will never be executed [-Wswitch-unreachable]
10 | printf("NO");
| ^~~~~~~~~~~~
foo.c:15:14: warning: statement will never be executed [-Wswitch-unreachable]
15 | s=sqrt(p*(p-a)*(p-b)*(p-c));
| ~~^~~
foo.c:22:14: warning: statement will never be executed [-Wswitch-unreachable]
22 | s=sqrt(p*(p-a)*(p-b)*(p-c));
| ~~^~~
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
6 | scanf("%f%f%f",&a,&b,&c);
| ^~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务