foo.cc: In function 'int main()':
foo.cc:32:49: warning: narrowing conversion of 'x1' from 'double' to 'int' [-Wnarrowing]
32 | result1 = Mul(result1, std::vector<int>{x1});
| ^~
foo.cc:32:49: warning: narrowing conversion of 'x1' from 'double' to 'int' [-Wnarrowing]
foo.cc:35:49: warning: narrowing conversion of 'x2' from 'double' to 'int' [-Wnarrowing]
35 | result2 = Mul(result2, std::vector<int>{x2});
| ^~
foo.cc:35:49: warning: narrowing conversion of 'x2' from 'double' to 'int' [-Wnarrowing]
foo.cc:38:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for (int i = 0; i < product.size(); i++) {
| ~~^~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务