记录详情

Compile Error

foo.cc: In function 'bool operator==(Vector, Vector)':
foo.cc:99:22: error: 'pow' was not declared in this scope
   99 |                 if ((pow(objLeftValue.x, 2) + pow(objLeftValue.y, 2) + pow(objLeftValue.z, 2)) ==
      |                      ^~~
foo.cc: In function 'bool operator>(Vector, Vector)':
foo.cc:107:22: error: 'pow' was not declared in this scope
  107 |                 if ((pow(objLeftValue.x, 2) + pow(objLeftValue.y, 2) + pow(objLeftValue.z, 2)) >
      |                      ^~~
foo.cc: In function 'bool operator>=(Vector, Vector)':
foo.cc:115:22: error: 'pow' was not declared in this scope
  115 |                 if ((pow(objLeftValue.x, 2) + pow(objLeftValue.y, 2) + pow(objLeftValue.z, 2)) >=
      |                      ^~~
foo.cc: In function 'bool operator>(Vector, Vector)':
foo.cc:112:9: warning: control reaches end of non-void function [-Wreturn-type]
  112 |         }
      |         ^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1018 OO4-2 向量的比较、赋值及向量集合类的排序
语言
C++
递交时间
2023-10-07 04:38:14
评测时间
2023-10-07 04:38:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes