记录详情

Wrong Answer

foo.cc: In static member function 'static void Complex::Sort(std::vector<Complex>*)':
foo.cc:100:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Complex>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  100 |                 for (i = 0; i<ptr_vtInstance->size(); i++)
      |                             ~^~~~~~~~~~~~~~~~~~~~~~~
foo.cc:107:47: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Complex>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  107 |                                 for (j = 0; j < ptr_vtComplex->size(); j++)
      |                                             ~~^~~~~~~~~~~~~~~~~~~~~~~
foo.cc:116:39: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Complex>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  116 |                                 if (j == ptr_vtComplex->size())
      |                                     ~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:121:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Complex>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  121 |                 for (i = 0; i<ptr_vtComplex->size(); i++)
      |                             ~^~~~~~~~~~~~~~~~~~~~~~
foo.cc: In static member function 'static void Complex::VectorDisplay(std::vector<Complex>*)':
foo.cc:157:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Complex>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  157 |                 for (i = 0; i < ptr_vtInstance->size(); i++)
      |                             ~~^~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 2ms 412.0 KiB
#3 Accepted 9ms 412.0 KiB
#4 Wrong Answer 0a1 > 0+1i 6d6 < 0+1i 7ms 412.0 KiB
#5 Wrong Answer Read 0+1i, expect 16+18i. 4ms 412.0 KiB

信息

递交者
类型
递交
题目
P1013 OO2-3 复数数组类的冒泡排序
语言
C++
递交时间
2023-10-03 08:08:38
评测时间
2023-10-03 08:08:38
评测机
分数
60
总耗时
27ms
峰值内存
412.0 KiB