Wrong Answer

foo.cc: In function 'int read()':
foo.cc:9:15: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return y=='-'?-x:x;
         ~~~~~~^~~~~
foo.cc: In function 'int main()':
foo.cc:9:15: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return y=='-'?-x:x;
         ~~~~~~^~~~~
foo.cc:6:15: note: 'y' was declared here
  int x=0;char y;char o=getchar();
               ^
foo.cc:9:15: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return y=='-'?-x:x;
         ~~~~~~^~~~~
foo.cc:6:15: note: 'y' was declared here
  int x=0;char y;char o=getchar();
               ^
foo.cc:9:15: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return y=='-'?-x:x;
         ~~~~~~^~~~~
foo.cc:6:15: note: 'y' was declared here
  int x=0;char y;char o=getchar();
               ^

自豪的采用 HydroJudger 进行评测(github.com/hydro-dev/HydroJudger)
{"receive":"2020-05-23T07:08:10.854Z","handle":"2020-05-23T07:08:10.854Z","cache_start":"2020-05-23T07:08:10.860Z","read_cases":"2020-05-23T07:08:10.983Z","judge":"2020-05-23T07:08:10.988Z","done":"2020-05-23T07:08:12.555Z"}
# 状态 耗时 内存占用
#1 Wrong Answer 0a1 > 29513 \ No newline at en 1ms 480.0 KiB
#2 Accepted 1ms 404.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 1ms 384.0 KiB
#5 Accepted 1ms 384.0 KiB
#6 Accepted 3ms 384.0 KiB
#7 Wrong Answer 0a1 > 5002 1ms 384.0 KiB
#8 Wrong Answer 0a1 > 1 1ms 384.0 KiB
#9 Wrong Answer 0a1 > 9999 \ No newline at end 1ms 384.0 KiB
#10 Wrong Answer 0a1 > 29150 1ms 384.0 KiB
#11 Wrong Answer 0a1 > 28848 1ms 384.0 KiB
#12 Wrong Answer 0a1 > 29576 \ No newline at en 1ms 384.0 KiB
#13 Wrong Answer 0a1 > 29636 \ No newline at en 1ms 384.0 KiB

信息

递交者
类型
递交
题目
「一本通 1.1 例 2」种树
语言
C++
递交时间
2020-05-23 15:08:10
评测时间
2020-05-23 15:08:10
评测机
分数
35
总耗时
22ms
峰值内存
480.0 KiB