Compile Error
/in/foo.c: In function 'main':
/in/foo.c:6:17: warning: format '%c' expects argument of type 'char *', but argument 3 has type 'float *' [-Wformat=]
6 | scanf("%f,%c",&f,&c);
| ~^ ~~
| | |
| | float *
| char *
| %e
/in/foo.c:8:31: warning: unknown conversion type character ' ' in format [-Wformat=]
8 | printf("摄氏温度:%0.2 ");
| ^
/in/foo.c:8:9: error: expected declaration or statement at end of input
8 | printf("摄氏温度:%0.2 ");
| ^~~~~~
信息
- 递交者
- 类型
- 自测
- 语言
- C
- 递交时间
- 2025-11-06 16:34:20
- 评测时间
- 2025-11-06 16:34:20
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes