记录详情

Accepted

/in/foo.cc: In constructor 'Vector3Array::Vector3Array()':
/in/foo.cc:81:12: warning: unused variable 'v' [-Wunused-variable]
   Vector3* v = new Vector3[100];
            ^
/in/foo.cc: In constructor 'Vector3Array::Vector3Array(int)':
/in/foo.cc:86:12: warning: unused variable 'v' [-Wunused-variable]
   Vector3* v = new Vector3[100];
            ^
/in/foo.cc: In member function 'void Vector3Array::Sort()':
/in/foo.cc:101:14: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
     if (v[j] < v[j + 1] == false)
         ~~~~~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 404.0 KiB
#2 Accepted 2ms 420.0 KiB
#3 Accepted 1ms 340.0 KiB
#4 Accepted 1ms 348.0 KiB
#5 Accepted 1ms 344.0 KiB

信息

递交者
类型
递交
题目
P1018 OO4-2 向量的比较、赋值及向量集合类的排序
比赛
2024春 面向对象的程序设计方法(第2场作业赛)
语言
C++
递交时间
2024-04-06 19:14:21
评测时间
2024-04-06 19:14:21
评测机
分数
100
总耗时
9ms
峰值内存
420.0 KiB