Compile Error
foo.cc: In function 'int main()':
foo.cc:7:13: error: 'sqrt' was not declared in this scope
7 | int k = sqrt(n);
| ^~~~
foo.cc:18:6: error: expected '}' at end of input
18 | }
| ^
foo.cc:4:1: note: to match this '{'
4 | {
| ^
foo.cc:5:9: warning: unused variable 'i' [-Wunused-variable]
5 | int i, n;
| ^
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- A3-2 素数专题:素数判断
- 比赛
- 2023年新生赛(第一场)
- 语言
- C++
- 递交时间
- 2023-08-15 12:35:59
- 评测时间
- 2023-08-15 12:35:59
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes