记录详情

Accepted

foo.c: In function ‘main’:
foo.c:35:15: warning: implicit declaration of function ‘strcspn’ [-Wimplicit-function-declaration]
   35 |     datetime1[strcspn(datetime1, "\n")] = '\0';
      |               ^~~~~~~
foo.c:3:1: note: include ‘<string.h>’ or provide a declaration of ‘strcspn’
    2 | #include <time.h>
  +++ |+#include <string.h>
    3 | 
foo.c:35:15: warning: incompatible implicit declaration of built-in function ‘strcspn’ [-Wbuiltin-declaration-mismatch]
   35 |     datetime1[strcspn(datetime1, "\n")] = '\0';
      |               ^~~~~~~
foo.c:35:15: note: include ‘<string.h>’ or provide a declaration of ‘strcspn’
# 状态 耗时 内存占用
#1 Accepted 1ms 328.0 KiB
#2 Accepted 1ms 288.0 KiB
#3 Accepted 1ms 288.0 KiB
#4 Accepted 1ms 320.0 KiB
#5 Accepted 1ms 288.0 KiB

信息

递交者
类型
递交
题目
P1008 OO1-6 日期时间类DateTime
语言
C
递交时间
2024-07-18 21:53:01
评测时间
2024-07-18 21:53:01
评测机
分数
100
总耗时
7ms
峰值内存
328.0 KiB