记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:28:13: error: 'x1' was not declared in this scope; did you mean 'x'?
   28 |         if (x1<x2&&x1+x2==10);
      |             ^~
      |             x
foo.cc:28:16: error: 'x2' was not declared in this scope; did you mean 'x'?
   28 |         if (x1<x2&&x1+x2==10);
      |                ^~
      |                x
foo.cc:29:15: error: 'x1' was not declared in this scope; did you mean 'x'?
   29 |         cout<<x1<<"+"<<x2<<"="<<x1+x2<<endl;
      |               ^~
      |               x
foo.cc:29:24: error: 'x2' was not declared in this scope; did you mean 'x'?
   29 |         cout<<x1<<"+"<<x2<<"="<<x1+x2<<endl;
      |                        ^~
      |                        x

信息

递交者
类型
递交
题目
A3-4 素数专题:验证哥德巴赫猜想
比赛
2024-3-15 信息教师练习赛(2)
语言
C++
递交时间
2024-03-21 16:12:45
评测时间
2024-03-21 16:12:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes