记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:11:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  for(x1=3;x1=x/2;x1+2)
           ~~^~~~
foo.cc:11:20: warning: for increment expression has no effect [-Wunused-value]
  for(x1=3;x1=x/2;x1+2)
                  ~~^~
foo.cc:21:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    if(x1=x2)
       ~~^~~
foo.cc:33:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    if(x1=x2)
       ~~^~~
foo.cc:10:6: warning: unused variable 'r' [-Wunused-variable]
  int r;
      ^
foo.cc:6:18: warning: 'x1' is used uninitialized in this function [-Wuninitialized]
  int x1,x2,x;x=x1+x2;
                ~~^~~
foo.cc:6:18: warning: 'x2' is used uninitialized in this function [-Wuninitialized]
foo.cc:38:6: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized]
   cnt++;
   ~~~^~
# 状态 耗时 内存占用
#1 Wrong Answer Read {0}, expect {1}. ["-91694111","2"] 1ms 384.0 KiB
#2 Wrong Answer Read {0}, expect {1}. ["-1222210591","2"] 1ms 384.0 KiB
#3 Wrong Answer Read {0}, expect {1}. ["2039491553","3"] 1ms 384.0 KiB
#4 Wrong Answer Read {0}, expect {1}. ["2102578145","6"] 1ms 384.0 KiB
#5 Wrong Answer Read {0}, expect {1}. ["-443446303","28"] 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1210 C4 验证哥德巴赫猜想的加式的个数
比赛
2020苏青奥赛集训营(2021-1-30课堂小练)
语言
C++
递交时间
2021-01-30 17:50:13
评测时间
2021-01-30 17:50:13
评测机
分数
0
总耗时
9ms
峰值内存
384.0 KiB