记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  for(int x1=3; x1=x/2;x1+=2)
                     ^
/in/foo.cc:13:6: error: 'i' was not declared in this scope
   if(i<x1)
      ^
/in/foo.cc:17:8: error: 'i' was not declared in this scope
    for(i=2; i<x2; i++)
        ^
/in/foo.cc:17:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    for(i=2; i<x2; i++)
    ^~~
/in/foo.cc:20:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
     if(i==x2)
     ^~
/in/foo.cc:20:8: error: 'i' was not declared in this scope
     if(i==x2)
        ^

信息

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