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