Compile Error
foo.cc: In function 'int main()':
foo.cc:14:30: error: 'n' was not declared in this scope
14 | for (int i = 2; i <=sqrt(n); i++)
| ^
foo.cc:18:7: error: 'flag' was not declared in this scope
18 | flag = 2;
| ^~~~
foo.cc:22:14: error: 'flag' was not declared in this scope
22 | if (7 == flag)
| ^~~~
foo.cc:31:1: error: expected '}' at end of input
31 | }
| ^
foo.cc:5:1: note: to match this '{'
5 | {
| ^
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- P1037 素数
- 语言
- C++
- 递交时间
- 2021-12-10 21:22:06
- 评测时间
- 2021-12-10 21:22:06
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes