记录详情

Compile Error

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

信息

递交者
类型
递交
题目
P1000 OO1-1 时间类Time
语言
C
递交时间
2021-08-29 16:23:54
评测时间
2021-08-29 16:23:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes