记录详情

Accepted

foo.c: In function ‘FindiMinPos’:
foo.c:15:16: warning: ‘p’ may be used uninitialized [-Wmaybe-uninitialized]
   15 |         return p;
      |                ^
foo.c:6:13: note: ‘p’ was declared here
    6 |         int p;
      |             ^
foo.c: In function ‘main’:
foo.c:32:9: warning: ‘p’ may be used uninitialized [-Wmaybe-uninitialized]
   32 |         printf("%d ",FindiMinPos(n1,arr1));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:6:13: note: ‘p’ was declared here
    6 |         int p;
      |             ^
foo.c:33:9: warning: ‘p’ may be used uninitialized [-Wmaybe-uninitialized]
   33 |         printf("%d",FindiMinPos(n2,arr2));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:6:13: note: ‘p’ was declared here
    6 |         int p;
      |             ^
# 状态 耗时 内存占用
#1 Accepted 1ms 288.0 KiB
#2 Accepted 1ms 320.0 KiB
#3 Accepted 1ms 288.0 KiB
#4 Accepted 1ms 512.0 KiB
#5 Accepted 1ms 288.0 KiB

信息

递交者
类型
递交
题目
A9-2 数组中最小正数的下标
比赛
2024程序设计与竞赛作业赛第一场(喜相逢)
语言
C
递交时间
2024-10-05 09:28:31
评测时间
2024-10-05 09:28:31
评测机
分数
100
总耗时
7ms
峰值内存
512.0 KiB