记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:19:11: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
   19 |  printf("%s",a[j]);
      |          ~^  ~~~~
      |           |   |
      |           |   int
      |           char *
      |          %d
foo.c:8:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    8 |  {scanf("%s ",&a[j]);
      |   ^~~~~~~~~~~~~~~~~~
foo.c:9:6: warning: iteration 100 invokes undefined behavior [-Waggressive-loop-optimizations]
    9 |  b[j]=sizeof(a[j]);
      |  ~~~~^~~~~~~~~~~~~
foo.c:7:2: note: within this loop
    7 |  for(j=0;j<=101;j++)
      |  ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read (null), expect thoughts. 1ms 256.0 KiB

信息

递交者
类型
自测
语言
C
递交时间
2022-01-30 21:46:20
评测时间
2022-01-30 22:00:53
评测机
分数
0
总耗时
1ms
峰值内存
256.0 KiB