记录详情

Compile Error

/in/foo.cc: In member function 'double Complex::modulus() const':
/in/foo.cc:15:16: error: 'sqrt' was not declared in this scope
   15 |         return sqrt(real * real + imag * imag);
      |                ^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:37:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   37 |     sort(complexes.begin(), complexes.end());
      |     ^~~~
      |     short

信息

递交者
类型
自测
题目
P1012 OO2-2 复数类的比较运算符重载
语言
C++
递交时间
2025-03-22 13:46:26
评测时间
2025-03-22 13:46:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes