记录详情

Wrong Answer

/in/foo.cc: In function 'int read()':
/in/foo.cc:17:41: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
  for(;c>='0'&&c<='9';c=getchar()) x=x<<3+x<<1+c-48;
                                        ~^~
/in/foo.cc:17:48: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
  for(;c>='0'&&c<='9';c=getchar()) x=x<<3+x<<1+c-48;
                                             ~~~^~~
/in/foo.cc: In function 'void work()':
/in/foo.cc:17:38: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
  for(;c>='0'&&c<='9';c=getchar()) x=x<<3+x<<1+c-48;
                                     ~^~~~~
/in/foo.cc:14:6: note: 'x' was declared here
  int x;
      ^
/in/foo.cc:17:38: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
  for(;c>='0'&&c<='9';c=getchar()) x=x<<3+x<<1+c-48;
                                     ~^~~~~
/in/foo.cc:14:6: note: 'x' was declared here
  int x;
      ^
/in/foo.cc:17:38: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
  for(;c>='0'&&c<='9';c=getchar()) x=x<<3+x<<1+c-48;
                                     ~^~~~~
/in/foo.cc:14:6: note: 'x' was declared here
  int x;
      ^
# 状态 耗时 内存占用
#1 Wrong Answer 3ms 344.0 KiB
#2 Wrong Answer 2ms 256.0 KiB
#3 Wrong Answer 3ms 348.0 KiB
#4 Wrong Answer 2ms 364.0 KiB
#5 Wrong Answer 3ms 340.0 KiB
#6 Wrong Answer 3ms 256.0 KiB
#7 Wrong Answer 2ms 256.0 KiB
#8 Wrong Answer 3ms 256.0 KiB
#9 Wrong Answer 2ms 352.0 KiB
#10 Wrong Answer 2ms 360.0 KiB

信息

递交者
类型
递交
题目
降临小行星
语言
C++
递交时间
2017-08-20 12:16:58
评测时间
2017-08-20 12:16:58
评测机
分数
0
总耗时
28ms
峰值内存
364.0 KiB