记录详情

Accepted

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 Accepted 2ms 1.125 MiB
#2 Accepted 3ms 1.012 MiB
#3 Accepted 2ms 1.0 MiB
#4 Accepted 3ms 1.0 MiB
#5 Accepted 3ms 1.0 MiB

信息

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