foo.cc: In member function 'void gjd::Add(std::vector<int>&)':
foo.cc:41:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | while(i<v.size()&&i<v2.size())
| ~^~~~~~~~~
foo.cc:41:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | while(i<v.size()&&i<v2.size())
| ~^~~~~~~~~~
foo.cc:48:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | while(i<v.size())
| ~^~~~~~~~~
foo.cc:55:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | while(i<v2.size())
| ~^~~~~~~~~~
foo.cc: In member function 'void gjd::Sub(std::vector<int>)':
foo.cc:71:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
71 | while(i<v.size()&&i<v1.size())
| ~^~~~~~~~~
foo.cc:71:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
71 | while(i<v.size()&&i<v1.size())
| ~^~~~~~~~~~
foo.cc: In member function 'void gjd::Mul(int)':
foo.cc:91:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
91 | while(i<v.size())
| ~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:146:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
146 | for(int i=0;i<a.v.size();i++)
| ~^~~~~~~~~~~
foo.cc:148:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
148 | for(int j=0;j<b.v.size();j++)
| ~^~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务