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