记录详情

Wrong Answer

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

信息

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