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)提供评测服务