Compile Error
foo.cc: In function 'int depth(int)':
foo.cc:9:10: error: 'pow' was not declared in this scope
9 | sum += pow(2, j);
| ^~~
foo.cc: In function 'int main()':
foo.cc:36:22: error: 'pow' was not declared in this scope; did you mean 'pos'?
36 | for (int j = 0;j < pow(2, i - 1);j++)
| ^~~
| pos
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- P1328 完全二叉树的权值
- 比赛
- 2022春季 荣誉练习赛1(2019蓝桥A组省赛重温)
- 语言
- C++
- 递交时间
- 2022-03-19 18:54:32
- 评测时间
- 2022-03-19 18:54:32
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes