记录详情

Wrong Answer

foo.c: In function 'count':
foo.c:4:8: warning: unused variable 'count' [-Wunused-variable]
    4 |  int i,count=0;
      |        ^~~~~
foo.c: In function 'main':
foo.c:15:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   15 |  while(s1[i]=getchar()!='\n')
      |        ^~
foo.c:18:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   18 |  while(s2[i]=getchar()!='\n')
      |        ^~
foo.c:15:13: warning: 'i' is used uninitialized in this function [-Wuninitialized]
   15 |  while(s1[i]=getchar()!='\n')
      |        ~~~~~^~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Standard answer longer than user output. 2ms 256.0 KiB
#2 Wrong Answer Standard answer longer than user output. 1ms 256.0 KiB
#3 Wrong Answer Standard answer longer than user output. 1ms 256.0 KiB
#4 Wrong Answer Standard answer longer than user output. 1ms 256.0 KiB
#5 Wrong Answer Standard answer longer than user output. 1ms 256.0 KiB

信息

递交者
类型
递交
比赛
中北 计算机2021级专业修读指导(4)
语言
C
递交时间
2021-12-23 22:04:17
评测时间
2021-12-23 22:04:17
评测机
分数
0
总耗时
8ms
峰值内存
256.0 KiB