记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:12:10: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[1000]' [-Wformat=]
   12 |  scanf("%s",&s1);
      |         ~^  ~~~
      |          |  |
      |          |  char (*)[1000]
      |          char *
foo.c:13:10: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[1000]' [-Wformat=]
   13 |  scanf("%s",&s2);
      |         ~^  ~~~
      |          |  |
      |          |  char (*)[1000]
      |          char *
foo.c:12:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   12 |  scanf("%s",&s1);
      |  ^~~~~~~~~~~~~~~
foo.c:13:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   13 |  scanf("%s",&s2);
      |  ^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 3, expect 19. 2ms 384.0 KiB

信息

递交者
类型
自测
题目
P2997 A8-1 字符串的输出函数
语言
C
递交时间
2022-01-08 12:30:12
评测时间
2022-01-08 12:30:12
评测机
分数
0
总耗时
2ms
峰值内存
384.0 KiB