记录详情

Compile Error

foo.c: In function 'main':
foo.c:5:9: warning: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         scanf_s("%d", &n);
      |         ^~~~~~~
      |         scanf
foo.c:20:28: error: expected expression before 'float'
   20 |         printf("%.2f%%\n", float(cnt1 *100/ n ));
      |                            ^~~~~
foo.c:21:28: error: expected expression before 'float'
   21 |         printf("%.2f%%\n", float(cnt2 *100/ n ));
      |                            ^~~~~
foo.c:22:28: error: expected expression before 'float'
   22 |         printf("%.2f%%\n", float(cnt3 *100/ n ));
      |                            ^~~~~
foo.c:23:28: error: expected expression before 'float'
   23 |         printf("%.2f%%\n", float(cnt4 *100/ n ));
      |                            ^~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1060 统计不同年龄段患者的比例
语言
C
递交时间
2023-11-11 14:18:31
评测时间
2023-11-11 14:18:31
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes