记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:18:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int x1=3;x1<=x/2;x1++);
  ^~~
/in/foo.cc:19:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  {
  ^
/in/foo.cc:20:12: error: 'x1' was not declared in this scope
   int x2=x-x1;
            ^~
/in/foo.cc:24:9: error: expected ';' at end of input
  return 0
         ^
/in/foo.cc:24:9: error: expected '}' at end of input

信息

递交者
类型
自测
题目
A3-4 素数专题:验证哥德巴赫猜想
语言
C++
递交时间
2024-11-11 15:23:28
评测时间
2024-11-11 15:23:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes