foo.cc: In function 'void dgmult(std::vector<int>&, int)':
foo.cc:6:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
6 | for(int i=0;i<a.size();i++)
| ~^~~~~~~~~
foo.cc:6:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
6 | for(int i=0;i<a.size();i++)
| ^~~
foo.cc:8:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
8 | for(int i=0;i<a.size()-1;i++) {
| ^~~
foo.cc:8:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | for(int i=0;i<a.size()-1;i++) {
| ~^~~~~~~~~~~
foo.cc: In function 'std::vector<int> Add(std::vector<int>&, std::vector<int>&)':
foo.cc:21:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int i=0;i<a.size()||i<b.size();i++) {
| ~^~~~~~~~~
foo.cc:21:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int i=0;i<a.size()||i<b.size();i++) {
| ~^~~~~~~~~
foo.cc:22:7: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | if(i<a.size())
| ~^~~~~~~~~
foo.cc:24:7: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | if(i<b.size())
| ~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务