Accepted

foo.cc: In function 'int FindMinPos(int, int*)':
foo.cc:15:12: warning: 'x' may be used uninitialized [-Wmaybe-uninitialized]
   15 |     return x;
      |            ^
foo.cc:6:22: note: 'x' was declared here
    6 |     int _min=INT_MAX,x;
      |                      ^
foo.cc: In function 'int main()':
foo.cc:24:29: warning: 'x' may be used uninitialized [-Wmaybe-uninitialized]
   24 |     cout<<FindMinPos(n1,a)<<' '<<FindMinPos(n2,b);
      |                             ^~~
foo.cc:6:22: note: 'x' was declared here
    6 |     int _min=INT_MAX,x;
      |                      ^
foo.cc:24:49: warning: 'x' may be used uninitialized [-Wmaybe-uninitialized]
   24 |     cout<<FindMinPos(n1,a)<<' '<<FindMinPos(n2,b);
      |                                                 ^
foo.cc:6:22: note: 'x' was declared here
    6 |     int _min=INT_MAX,x;
      |                      ^
正在同步测试数据,请稍后
# 状态 耗时 内存占用
#1 Accepted 3ms 768.0 KiB
#2 Accepted 2ms 552.0 KiB
#3 Accepted 2ms 532.0 KiB
#4 Accepted 2ms 536.0 KiB
#5 Accepted 2ms 548.0 KiB

信息

递交者
类型
递交
题目
P1068 A9-2 数组中最小正数的下标
语言
C++
递交时间
2024-03-19 21:18:10
评测时间
2024-03-19 21:18:10
评测机
分数
100
总耗时
13ms
峰值内存
768.0 KiB