记录详情

Compile Error

foo.cc: In member function ‘bool Complex::operator>(const Complex&) const’:
foo.cc:42:30: error: ‘pow’ was not declared in this scope
   42 |                 double sq1 = pow(r, 2) + pow(i, 2);
      |                              ^~~
foo.cc:43:33: error: ‘sqrt’ was not declared in this scope
   43 |                 double sq1rt1 = sqrt(sq1);
      |                                 ^~~~

信息

递交者
类型
递交
题目
P1012 OO2-2 复数类的比较运算符重载
语言
C++
递交时间
2024-05-07 21:13:36
评测时间
2024-05-07 21:13:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes