Wrong Answer

foo.cc: In function 'int main()':
foo.cc:23:19: 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. 1ms 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. 3ms 256.0 KiB
#6 Accepted 3ms 256.0 KiB
#7 Accepted 4ms 384.0 KiB
#8 Accepted 13ms 384.0 KiB
#9 Accepted 12ms 512.0 KiB
#10 Accepted 18ms 640.0 KiB

信息

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