foo.c: In function 'main':
foo.c:6:2: warning: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
scanf_s("%d %d %d\n%d", &h, &m, &s,&num);
^~~~~~~
scanf
foo.c:16:3: warning: statement with no effect [-Wunused-value]
for (h ; h > 23; h - 24)h = h - 24;
^~~
foo.c:16:22: warning: statement with no effect [-Wunused-value]
for (h ; h > 23; h - 24)h = h - 24;
~~^~~~
foo.c:20:3: warning: statement with no effect [-Wunused-value]
for (m; m > 59; m - 60)m = m - 60;
^~~
foo.c:20:21: warning: statement with no effect [-Wunused-value]
for (m; m > 59; m - 60)m = m - 60;
~~^~~~
foo.c:24:3: warning: statement with no effect [-Wunused-value]
for (s; s > 59; s - 60)s = s - 60;
^~~
foo.c:24:21: warning: statement with no effect [-Wunused-value]
for (s; s > 59; s - 60)s = s - 60;
~~^~~~
/tmp/cck8O7Ch.o: In function `main':
foo.c:(.text.startup+0x30): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务