foo.cc: In function 'void Mul(std::vector<int>&, int)':
foo.cc:10:24: 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<v.size(); i++) {
| ~^~~~~~~~~
foo.cc: In function 'void Add(std::vector<int>&, int, std::vector<int>&, int, std::vector<int>&, int)':
foo.cc:24:31: warning: operation on 'i' may be undefined [-Wsequence-point]
24 | c[i]+=a[i]+b[i++];
| ~^~
foo.cc:26:26: warning: operation on 'i' may be undefined [-Wsequence-point]
26 | c[i]+=a[i++];
| ~^~
foo.cc:28:26: warning: operation on 'i' may be undefined [-Wsequence-point]
28 | c[i]+=b[i++];
| ~^~
foo.cc: At global scope:
foo.cc:35:3: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
35 | } main() {
| ^~~~
[Hydro](https://hydro.ac)提供评测服务