记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:21:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   21 |     scanf("%d%d", &n1, &n2);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
foo.c:23:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   23 |         scanf("%d",&s1[i]);
      |         ^~~~~~~~~~~~~~~~~~
foo.c:26:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   26 |         scanf("%d",&s2[i]);
      |         ^~~~~~~~~~~~~~~~~~
foo.c: In function 'FindMinPos':
foo.c:17:12: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
   17 |     return res;
      |            ^~~
foo.c:12:11: warning: 'num' may be used uninitialized in this function [-Wmaybe-uninitialized]
   12 |         if(s[i]<=num&&s[i]>0){
      |           ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 1, expect 2. 2ms 1.0 MiB
#2 Wrong Answer Read 1, expect 2. 2ms 1.0 MiB
#3 Wrong Answer Read 1, expect 4. 2ms 1.0 MiB
#4 Wrong Answer Read 1, expect 8. 2ms 1.0 MiB
#5 Wrong Answer Read 0, expect 3. 1ms 1.0 MiB

信息

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