记录详情

Accepted

foo.cc: In function 'void DifferenceSet(std::vector<int>, std::vector<int>, std::vector<int>*)':
foo.cc:13:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   13 |         for (i = 0; i < vtSet_A.size(); i++)
      |                     ~~^~~~~~~~~~~~~~~~
foo.cc:16:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   16 |                 for (j = 0; j < vtSet_B.size(); j++)
      |                             ~~^~~~~~~~~~~~~~~~
foo.cc:21:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   21 |                 if (j == vtSet_B.size())
      |                     ~~^~~~~~~~~~~~~~~~~
foo.cc: In function 'void MergeSet(std::vector<int>&, std::vector<int>&, std::vector<int>&)':
foo.cc:32:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   32 |         for (i = 0; i < vtSet_A.size(); i++)
      |                     ~~^~~~~~~~~~~~~~~~
foo.cc:37:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   37 |         for (i = 0; i < vtSet_B.size(); i++)
      |                     ~~^~~~~~~~~~~~~~~~
foo.cc:40:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   40 |                 for (j = 0; j < vtMergeSet.size(); j++)
      |                             ~~^~~~~~~~~~~~~~~~~~~
foo.cc:52:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   52 |                 if (j == vtMergeSet.size())
      |                     ~~^~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main(int, char**)':
foo.cc:80:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   80 |         for (int i = 0; i < vtSet_C.size(); i++)
      |                         ~~^~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 3ms 412.0 KiB
#3 Accepted 5ms 412.0 KiB
#4 Accepted 3ms 412.0 KiB
#5 Accepted 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1050 OO11-2 vector<int>中的有序插入
语言
C++
递交时间
2023-10-17 23:02:20
评测时间
2023-10-17 23:02:20
评测机
分数
100
总耗时
20ms
峰值内存
412.0 KiB