记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:44:7: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
  if(c1<c2==true)
     ~~^~~
/in/foo.cc:45:10: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
   if (c1 < c3 == true)
       ~~~^~~~
/in/foo.cc:48:11: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
    if (c2 < c3==true)
        ~~~^~~~
/in/foo.cc:66:10: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
   if (c2 < c3 == true)
       ~~~^~~~
/in/foo.cc:69:11: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
    if (c1 < c3 == true)
        ~~~^~~~
/in/foo.cc: In member function 'bool Complex::operator<(Complex)':
/in/foo.cc:24:2: warning: control reaches end of non-void function [-Wreturn-type]
  }
  ^
# 状态 耗时 内存占用
#1 Accepted 1ms 312.0 KiB
#2 Accepted 1ms 400.0 KiB
#3 Accepted 1ms 344.0 KiB
#4 Accepted 1ms 404.0 KiB
#5 Accepted 1ms 340.0 KiB

信息

递交者
类型
递交
题目
P1012 OO2-2 复数类的比较运算符重载
比赛
2024春 面向对象的程序设计方法(第2场作业赛)
语言
C++
递交时间
2024-04-06 17:33:55
评测时间
2024-04-06 17:33:55
评测机
分数
100
总耗时
7ms
峰值内存
404.0 KiB