Wrong Answer

foo.cc: In function 'int main()':
foo.cc:27:33: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   27 |                         if(a[i] = max) maxi = i;
      |                            ~~~~~^~~~~
foo.cc:39:41: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   39 |                                 if(a[i] = max) maxi = i;
      |                                    ~~~~~^~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read Win, expect Lost. 3ms 256.0 KiB
#2 Accepted 1ms 384.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 1ms 256.0 KiB
#5 Accepted 3ms 256.0 KiB
#6 Accepted 1ms 256.0 KiB
#7 Accepted 4ms 384.0 KiB
#8 Accepted 9ms 384.0 KiB
#9 Accepted 15ms 512.0 KiB
#10 Wrong Answer Read Win, expect Lost. 27ms 632.0 KiB

信息

递交者
类型
递交
题目
P1218 2 取最大数的博弈游戏
语言
C++
递交时间
2022-08-22 17:37:28
评测时间
2022-08-22 17:37:28
评测机
分数
80
总耗时
69ms
峰值内存
632.0 KiB