记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:6:17: warning: format '%c' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
    6 |         scanf("%c",str[0]);
      |                ~^  ~~~~~~
      |                 |     |
      |                 |     int
      |                 char *
foo.c:6:23: warning: 'str' is used uninitialized [-Wuninitialized]
    6 |         scanf("%c",str[0]);
      |                    ~~~^~~
foo.c:5:10: note: 'str' declared here
    5 |     char str[100];
      |          ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read -1, expect 1. 1ms 284.0 KiB
#2 Wrong Answer Read -1, expect 2. 1ms 284.0 KiB
#3 Accepted 2ms 284.0 KiB

信息

递交者
类型
自测
题目
P1484 J. Every cloud has a silver lining
语言
C
递交时间
2023-08-25 10:35:11
评测时间
2023-08-25 10:35:11
评测机
分数
10
总耗时
5ms
峰值内存
284.0 KiB