记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:9:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=0;i<n;i++)
  ^~~
foo.c:13:10: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
          a[j]=a[j+1];
          ^
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ^~~~~~~~~~~~~~
foo.c:8:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&a[i]);
   ^~~~~~~~~~~~~~~~~
foo.c:13:18: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
          a[j]=a[j+1];
                 ~^~
foo.c:14:16: warning: 'temp' may be used uninitialized in this function [-Wmaybe-uninitialized]
          a[j+1]=temp;
          ~~~~~~^~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer User output longer than standard answer. 1ms 256.0 KiB
#2 Wrong Answer User output longer than standard answer. 1ms 256.0 KiB
#3 Wrong Answer User output longer than standard answer. 0ms 292.0 KiB
#4 Wrong Answer User output longer than standard answer. 1ms 256.0 KiB
#5 Wrong Answer User output longer than standard answer. 1ms 256.0 KiB

信息

递交者
类型
递交
语言
C
递交时间
2021-08-14 13:57:09
评测时间
2021-08-14 13:59:08
评测机
分数
0
总耗时
5ms
峰值内存
292.0 KiB