Runtime Error

foo.cc: In function 'int main()':
foo.cc:18:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   18 |    if(a[imax]<a[j]||a[imax]==a[j]&&b[imax]>b[j])
      |                     ~~~~~~~~~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 2783, expect 2274. 31ms 384.0 KiB
#2 Wrong Answer Read 2024, expect 2251. 26ms 384.0 KiB
#3 Time Exceeded ≥1098ms ≥1.492 MiB
#4 Time Exceeded ≥1097ms ≥1.492 MiB
#5 Time Exceeded ≥1092ms ≥1.492 MiB
#6 Runtime Error Segmentation fault 39ms 1.742 MiB
#7 Runtime Error Segmentation fault 50ms 1.746 MiB
#8 Runtime Error Segmentation fault 35ms 1.617 MiB
#9 Runtime Error Segmentation fault 36ms 1.617 MiB
#10 Wrong Answer Read 2, expect 10. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1900 假期作业
语言
C++
递交时间
2022-06-29 09:35:24
评测时间
2022-06-29 09:35:24
评测机
分数
0
总耗时
3510ms
峰值内存
1.746 MiB