记录详情

Runtime Error

foo.c: In function 'main':
foo.c:19:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
   19 |         printf("%d %d",strlen(a)-1,strlen(b)-1);
      |                 ~^     ~~~~~~~~~~~
      |                  |              |
      |                  int            size_t {aka long unsigned int}
      |                 %ld
foo.c:19:21: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
   19 |         printf("%d %d",strlen(a)-1,strlen(b)-1);
      |                    ~^              ~~~~~~~~~~~
      |                     |                       |
      |                     int                     size_t {aka long unsigned int}
      |                    %ld
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 20, expect 19. 1ms 268.0 KiB
#2 Accepted 3ms 256.0 KiB
#3 Wrong Answer Read 47, expect 40. 1ms 256.0 KiB
#4 Accepted 1ms 256.0 KiB
#5 Runtime Error Segmentation fault 2ms 256.0 KiB

信息

递交者
类型
递交
题目
A8-1 字符串的输出函数
语言
C
递交时间
2022-09-30 17:18:52
评测时间
2022-09-30 17:18:52
评测机
分数
40
总耗时
10ms
峰值内存
268.0 KiB