Wrong Answer

foo.cc: In function 'int main()':
foo.cc:15:5: warning: 'sum' is used uninitialized in this function [-Wuninitialized]
  sum+=g+s+t;
  ~~~^~~~~~~
foo.cc:15:10: warning: 't' may be used uninitialized in this function [-Wmaybe-uninitialized]
  sum+=g+s+t;
       ~~~^~
foo.cc:12:4: warning: 's' may be used uninitialized in this function [-Wmaybe-uninitialized]
   s+=x2;
   ~^~~~
foo.cc:11:4: warning: 'g' may be used uninitialized in this function [-Wmaybe-uninitialized]
   g+=x1;
   ~^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 94818278488692, expect 4. 1ms 384.0 KiB
#2 Wrong Answer Read 94921093454463, expect 15. 2ms 384.0 KiB
#3 Wrong Answer Read 93825037146889, expect 153. 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P2357 1.5.7:奥运奖牌计数
语言
C++
递交时间
2021-08-24 14:20:35
评测时间
2021-08-24 14:20:35
评测机
分数
0
总耗时
6ms
峰值内存
384.0 KiB