记录详情

Compile Error

foo.cc: In function ‘int main()’:
foo.cc:7:16: error: ‘x1’ was not declared in this scope; did you mean ‘x’?
    7 |         cin>>x,x1;
      |                ^~
      |                x
foo.cc:10:21: error: ‘i’ was not declared in this scope
   10 |                 for(i=2; i<=x1-1; i++)
      |                     ^
foo.cc:13:33: error: ‘n’ was not declared in this scope
   13 |                                 n+=1;
      |                                 ^
foo.cc:15:21: error: ‘i’ was not declared in this scope
   15 |                 for(i=2; i<=x-x1-1; i++)
      |                     ^
foo.cc:18:33: error: ‘n’ was not declared in this scope
   18 |                                 n+=1;
      |                                 ^
foo.cc:20:20: error: ‘n’ was not declared in this scope
   20 |                 if(n==0)
      |                    ^
foo.cc:22:17: error: ‘n’ was not declared in this scope
   22 |                 n=0;
      |                 ^

信息

递交者
类型
自测
题目
A3-4 素数专题:验证哥德巴赫猜想
语言
C++
递交时间
2025-08-10 17:21:45
评测时间
2025-08-10 17:21:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes