记录详情

Accepted

foo.cc: In function ‘int FindiMinPos(int, int*)’:
foo.cc:15:16: warning: ‘num’ may be used uninitialized [-Wmaybe-uninitialized]
   15 |         return num;
      |                ^~~
foo.cc:6:27: note: ‘num’ was declared here
    6 |         int minpro=100000,num;
      |                           ^~~
foo.cc: In function ‘int main()’:
foo.cc:31:33: warning: ‘num’ may be used uninitialized [-Wmaybe-uninitialized]
   31 |         cout<<FindiMinPos(n,a)<<" "<<FindiMinPos(m,b)<<endl;
      |                                 ^~~
foo.cc:6:27: note: ‘num’ was declared here
    6 |         int minpro=100000,num;
      |                           ^~~
foo.cc:31:53: warning: ‘num’ may be used uninitialized [-Wmaybe-uninitialized]
   31 |         cout<<FindiMinPos(n,a)<<" "<<FindiMinPos(m,b)<<endl;
      |                                                     ^
foo.cc:6:27: note: ‘num’ was declared here
    6 |         int minpro=100000,num;
      |                           ^~~
# 状态 耗时 内存占用
#1 Accepted 3ms 512.0 KiB
#2 Accepted 3ms 556.0 KiB
#3 Accepted 2ms 536.0 KiB
#4 Accepted 3ms 536.0 KiB
#5 Accepted 2ms 324.0 KiB

信息

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