Wrong Answer

foo.cc: In function 'int main()':
foo.cc:21:19: warning: 'ans' may be used uninitialized [-Wmaybe-uninitialized]
   21 |         cout<<ans+ans;
      |                   ^~~
foo.cc:13:17: note: 'ans' was declared here
   13 |         int m,n,ans;
      |                 ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 1233088436, expect 4. 2ms 284.0 KiB
#2 Wrong Answer Read 456301042, expect 2. 1ms 284.0 KiB
#3 Wrong Answer Read 1121521298, expect 2. 2ms 284.0 KiB
#4 Wrong Answer Read -357804112, expect 0. 2ms 284.0 KiB
#5 Wrong Answer Read -785870540, expect 4. 1ms 284.0 KiB

信息

递交者
类型
递交
题目
P1741 最大公约数和最小公倍数问题
比赛
2023.5.20中级班期中测试赛
语言
C++
递交时间
2023-05-20 09:27:02
评测时间
2023-05-20 09:27:02
评测机
分数
0
总耗时
9ms
峰值内存
284.0 KiB