记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:9: warning: iteration 7 invokes undefined behavior [-Waggressive-loop-optimizations]
   if(a[i]> a[i+1])
      ~~~^
/in/foo.cc:10:17: note: within this loop
  for(int i = 0;i<=7;i++)
                ~^~~
/in/foo.cc:21:19: warning: 'in' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<ax<<" "<<in;
                   ^
/in/foo.cc:21:12: warning: 'ax' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<ax<<" "<<in;
            ^~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 356.0 KiB
#2 Wrong Answer 1ms 352.0 KiB
#3 Wrong Answer 1ms 376.0 KiB
#4 Wrong Answer 1ms 328.0 KiB
#5 Wrong Answer 1ms 324.0 KiB
#6 Wrong Answer 1ms 336.0 KiB
#7 Wrong Answer 1ms 324.0 KiB
#8 Wrong Answer 1ms 328.0 KiB
#9 Wrong Answer 1ms 324.0 KiB
#10 Wrong Answer 1ms 336.0 KiB

信息

递交者
类型
递交
题目
P1005 找出5个数的最大值和最小值
语言
C++
递交时间
2024-11-06 17:37:50
评测时间
2024-11-06 17:37:50
评测机
分数
0
总耗时
17ms
峰值内存
376.0 KiB