记录详情

Compile Error

/in/foo.cc: In function 'bool isPrime(int)':
/in/foo.cc:7:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(x%i==0)
   ^~
/in/foo.cc:9:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    return true;
    ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:15:2: error: expected ';' before 'for'
  for(int x1=3;x1<=x/2;x1=x1+2)
  ^~~
/in/foo.cc:15:15: error: 'x1' was not declared in this scope
  for(int x1=3;x1<=x/2;x1=x1+2)
               ^~

信息

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