记录详情

Wrong Answer

foo.cc: In member function 'int SeqList::Search(int)':
foo.cc:16:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   16 |                 for (int i = 0; i < seq.size(); i++)
      |                                 ~~^~~~~~~~~~~~
foo.cc: In member function 'std::vector<int> SeqList::Union(SeqList&)':
foo.cc:42:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   42 |                 for (int i = 0; i < seq.size(); i++)
      |                                 ~~^~~~~~~~~~~~
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 < obj.seq.size(); i++)
      |                                 ~~^~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:71:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   71 |         for (int i = 0; i < res.size(); i++)
      |                         ~~^~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer User output longer than standard answer. 2ms 536.0 KiB

信息

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