Accepted
/in/foo.cc: In function 'bool operator==(Complex, Complex)': /in/foo.cc:30:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] return num1=num2; ~~~~^~~~~ /in/foo.cc: In function 'std::ostream& operator<<(std::ostream&, Complex&)': /in/foo.cc:40:2: warning: control reaches end of non-void function [-Wreturn-type] } ^
信息
- 递交者
- 类型
- 递交
- 题目
- P1012 OO2-2 复数类的比较运算符重载
- 语言
- C++
- 递交时间
- 2019-04-27 13:57:07
- 评测时间
- 2019-04-27 13:57:07
- 评测机
- 分数
- 100
- 总耗时
- 7ms
- 峰值内存
- 212.0 KiB