记录详情

Compile Error

foo.cc:20:31: error: duplicate ‘const’
   20 |         Complex(const Complex const* pObj)
      |                               ^~~~~
      |                               -----
foo.cc: In function ‘std::ostream operator<<(std::ostream&, const Complex&)’:
foo.cc:45:24: error: use of deleted function ‘std::basic_ostream<_CharT, _Traits>::basic_ostream(const std::basic_ostream<_CharT, _Traits>&) [with _CharT = char; _Traits = std::char_traits<char>]’
   45 |                 return out;
      |                        ^~~
In file included from iostream:41:
/nix/gcc-13.2.0/include/c++/13.2.0/ostream:438:7: note: declared here
  438 |       basic_ostream(const basic_ostream&) = delete;
      |       ^~~~~~~~~~~~~

信息

递交者
类型
递交
题目
P1013 OO2-3 复数数组类的冒泡排序
比赛
2024春 面向对象的程序设计方法(第2场作业赛)
语言
C++
递交时间
2024-04-06 16:27:41
评测时间
2024-04-06 16:27:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes