Wrong Answer

foo.cc: In function 'int main()':
foo.cc:13:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   13 |   if(a[z]>max||a[z]==max&&z>m)max=a[z],m=z;
      |                ~~~~~~~~~^~~~~
foo.cc:13:25: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
   13 |   if(a[z]>max||a[z]==max&&z>m)max=a[z],m=z;
      |                ~~~~~~~~~^~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 20, expect 407. 2ms 384.0 KiB
#2 Wrong Answer Read 40, expect 677. 5ms 384.0 KiB
#3 Wrong Answer Read 40, expect 677. 2ms 384.0 KiB
#4 Wrong Answer Read 301, expect 677. 1ms 384.0 KiB
#5 Wrong Answer Read 301, expect 667. 4ms 384.0 KiB
#6 Wrong Answer Read 40, expect 893. 4ms 512.0 KiB
#7 Wrong Answer Read 40, expect 679. 1ms 384.0 KiB
#8 Wrong Answer Read 40, expect 815. 4ms 384.0 KiB
#9 Wrong Answer Read 407, expect 899. 1ms 384.0 KiB
#10 Wrong Answer Read 40, expect 321. 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1806 哪种苹果最多
语言
C++
递交时间
2022-01-23 18:44:48
评测时间
2022-01-23 18:44:48
评测机
分数
0
总耗时
30ms
峰值内存
512.0 KiB