记录详情

Accepted

foo.cc: In constructor ‘ComplexArray::ComplexArray()’:
foo.cc:49:26: warning: unused variable ‘c’ [-Wunused-variable]
   49 |                 Complex* c = new Complex[100];
      |                          ^
foo.cc: In constructor ‘ComplexArray::ComplexArray(int)’:
foo.cc:54:26: warning: unused variable ‘c’ [-Wunused-variable]
   54 |                 Complex* c = new Complex[100];
      |                          ^
foo.cc: In member function ‘void ComplexArray::Sort()’:
foo.cc:69:42: warning: suggest parentheses around comparison in operand of ‘==’ [-Wparentheses]
   69 |                                 if (c[j] < c[j + 1] == false)
      |                                     ~~~~~^~~~~~~~~~
foo.cc: In member function ‘bool Complex::operator<(Complex)’:
foo.cc:24:9: warning: control reaches end of non-void function [-Wreturn-type]
   24 |         }
      |         ^
# 状态 耗时 内存占用
#1 Accepted 2ms 536.0 KiB
#2 Accepted 2ms 556.0 KiB
#3 Accepted 3ms 764.0 KiB
#4 Accepted 2ms 532.0 KiB
#5 Accepted 3ms 320.0 KiB

信息

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