Wrong Answer

foo.cc: In function 'int main()':
foo.cc:23:18: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]
   23 |         if(r>l&&n-r-1%2==0){
      |                 ~^~
foo.cc:20:20: warning: 'l' may be used uninitialized in this function [-Wmaybe-uninitialized]
   20 |         if(l>1&&l%2==0){
      |                 ~~~^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Wrong Answer Read Lost, expect Win. 3ms 256.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Wrong Answer Read Lost, expect Win. 1ms 256.0 KiB
#5 Wrong Answer Read Lost, expect Win. 1ms 256.0 KiB
#6 Accepted 3ms 256.0 KiB
#7 Accepted 6ms 384.0 KiB
#8 Accepted 5ms 384.0 KiB
#9 Accepted 13ms 512.0 KiB
#10 Accepted 21ms 640.0 KiB

信息

递交者
类型
递交
题目
P1218 2 取最大数的博弈游戏
语言
C++
递交时间
2022-08-21 19:45:00
评测时间
2022-08-21 19:45:00
评测机
分数
70
总耗时
59ms
峰值内存
640.0 KiB