foo.cc: In function 'std::vector<int> add(std::vector<int>&, std::vector<int>&)':
foo.cc:10:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for(int i = 0; i < a.size()|| i < b.size(); i++){
| ~~^~~~~~~~~~
foo.cc:10:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for(int i = 0; i < a.size()|| i < b.size(); i++){
| ~~^~~~~~~~~~
foo.cc:11:8: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | if(i < a.size()) t += a[i];
| ~~^~~~~~~~~~
foo.cc:12:8: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | if(i < b.size()) t += b[i];
| ~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务