Wrong Answer
/in/foo.c: In function 'main':
/in/foo.c:6:12: warning: format '%f' expects argument of type 'float *', but argument 2 has type 'double *' [-Wformat=]
6 | scanf("%f", &a);
| ~^ ~~
| | |
| | double *
| float *
| %lf
/in/foo.c:15:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
15 | else
| ^~~~
/in/foo.c:17:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
17 | printf("%.2f\n", b);
| ^~~~~~
信息
- 递交者
- 类型
- 自测
- 语言
- C
- 递交时间
- 2026-11-13 20:30:54
- 评测时间
- 2026-11-13 20:30:54
- 评测机
- 分数
- 0
- 总耗时
- 1ms
- 峰值内存
- 284.0 KiB