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