Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:18:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(a < min2)min2 = a; i2 = i;
   ^~
/in/foo.cc:18:25: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   if(a < min2)min2 = a; i2 = i;
                         ^~
/in/foo.cc:20:32: warning: 'i2' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout << i1 - 1 << " " << i2 - 1;
                                ^
/in/foo.cc:20:20: warning: 'i1' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout << i1 - 1 << " " << i2 - 1;
                    ^~~
# 状态 耗时 内存占用
#1 Accepted 2ms 388.0 KiB
#2 Wrong Answer 2ms 376.0 KiB
#3 Wrong Answer 2ms 348.0 KiB
#4 Wrong Answer 2ms 340.0 KiB
#5 Accepted 2ms 328.0 KiB

信息

递交者
类型
递交
题目
P1068 A9-2 数组中最小正数的下标
语言
C++
递交时间
2024-05-31 21:56:53
评测时间
2024-05-31 21:56:53
评测机
分数
40
总耗时
10ms
峰值内存
388.0 KiB