记录详情

Compile Error

/in/foo.cc:12:7: error: extra qualification 'Complex::' on member 'operator<' [-fpermissive]
  bool Complex::operator<(Complex &c)
       ^~~~~~~
/in/foo.cc:16:7: error: extra qualification 'Complex::' on member 'operator>' [-fpermissive]
  bool Complex::operator>(Complex &c)
       ^~~~~~~
/in/foo.cc: In member function 'void Complex::Output()':
/in/foo.cc:27:26: warning: format '%d' expects a matching 'int' argument [-Wformat=]
    printf("%d+%di\n",real);
                          ^

信息

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