记录详情

Wrong Answer

foo.cc: In function ‘int FindMinPos(int*, int)’:
foo.cc:11:16: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
   11 |         return index;
      |                ^~~~~
foo.cc:4:24: note: ‘index’ was declared here
    4 |         int min=100000,index;
      |                        ^~~~~
foo.cc: In function ‘int main()’:
foo.cc:22:33: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
   22 |         cout<<FindMinPos(a,n1)<<" "<<FindMinPos(b,n2);
      |                                 ^~~
foo.cc:4:24: note: ‘index’ was declared here
    4 |         int min=100000,index;
      |                        ^~~~~
foo.cc:22:53: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized]
   22 |         cout<<FindMinPos(a,n1)<<" "<<FindMinPos(b,n2);
      |                                                     ^
foo.cc:4:24: note: ‘index’ was declared here
    4 |         int min=100000,index;
      |                        ^~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 764.0 KiB
#2 Accepted 2ms 324.0 KiB
#3 Accepted 3ms 528.0 KiB
#4 Wrong Answer Read 3, expect 4. 3ms 532.0 KiB
#5 Accepted 3ms 536.0 KiB

信息

递交者
类型
递交
比赛
2024程序设计与竞赛作业赛第一场(喜相逢)
语言
C++
递交时间
2024-10-03 09:03:15
评测时间
2024-10-03 09:03:15
评测机
分数
80
总耗时
16ms
峰值内存
764.0 KiB