记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:24:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   24 |  if(x%2==0&&y%2!=0||x%2!=0&&y%2==0)cout<<"Lost";
      |     ~~~~~~^~~~~~~~
foo.cc:24:8: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
   24 |  if(x%2==0&&y%2!=0||x%2!=0&&y%2==0)cout<<"Lost";
      |     ~~~^~~
foo.cc:5:24: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
    5 |  int n,a[100000],m=0,x,y;
      |                        ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 768.0 KiB
#2 Accepted 2ms 768.0 KiB
#3 Accepted 2ms 768.0 KiB
#4 Accepted 2ms 768.0 KiB
#5 Accepted 2ms 768.0 KiB
#6 Accepted 2ms 768.0 KiB
#7 Accepted 6ms 896.0 KiB
#8 Accepted 9ms 768.0 KiB
#9 Accepted 21ms 768.0 KiB
#10 Accepted 35ms 768.0 KiB

信息

递交者
类型
递交
题目
2 取最大数的博弈游戏
语言
C++
递交时间
2022-02-09 13:36:43
评测时间
2022-02-09 13:36:43
评测机
分数
100
总耗时
86ms
峰值内存
896.0 KiB