foo.cc: In function 'std::vector<int> Add(const std::vector<int>&, const std::vector<int>&)':
foo.cc:8:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | while (i < num1.size() || j < num2.size() || carry > 0) {
| ~~^~~~~~~~~~~~~
foo.cc:8:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | while (i < num1.size() || j < num2.size() || carry > 0) {
| ~~^~~~~~~~~~~~~
foo.cc:10:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | if (i < num1.size()) {
| ~~^~~~~~~~~~~~~
foo.cc:14:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | if (j < num2.size()) {
| ~~^~~~~~~~~~~~~
foo.cc: In function 'std::vector<int> Mul(const std::vector<int>&, int)':
foo.cc:30:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | for (int i = 0; i < num.size(); i++) {
| ~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务