记录详情

Wrong Answer

foo.cc: In member function 'int SeqList::Search(int)':
foo.cc:14:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   14 |                 for (int i = 0; i < seq.size(); i++)
      |                                 ~~^~~~~~~~~~~~
foo.cc: In member function 'int SeqList::research(std::vector<int>)':
foo.cc:33:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   33 |                 for (j = 0; j < objseq.size(); j++)
      |                             ~~^~~~~~~~~~~~~~~
foo.cc: In member function 'void SeqList::Union(SeqList&)':
foo.cc:46:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   46 |                 for (int i = 0; i < seq.size(); i++)
      |                                 ~~^~~~~~~~~~~~
foo.cc:51:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   51 |                 for (int i = 0; i < obj.seq.size(); i++)
      |                                 ~~^~~~~~~~~~~~~~~~
foo.cc: In member function 'void SeqList::print()':
foo.cc:60:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   60 |                 for (int i = 0; i < seq.size(); i++)
      |                                 ~~^~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:81:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   81 |         for (int i = 0; i < objseq.size(); i++)
      |                         ~~^~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer User output longer than standard answer. 2ms 324.0 KiB

信息

递交者
类型
自测
题目
P1014 OO3-1 无序顺序表类的基本运算
语言
C++
递交时间
2024-03-18 21:56:46
评测时间
2024-03-18 21:56:46
评测机
分数
0
总耗时
2ms
峰值内存
324.0 KiB