foo.cc: In function 'std::vector<int> add(std::vector<int>&, std::vector<int>&)':
foo.cc:16:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | for (int i = 0; i < A.size(); i++)
| ~~^~~~~~~~~~
foo.cc:19:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | if (i < B.size())
| ~~^~~~~~~~~~
foo.cc: In function 'std::vector<int> mul(std::vector<int>&, LL)':
foo.cc:34:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | for (int i = 0; i < A.size() || t; i++)
| ~~^~~~~~~~~~
foo.cc:36:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | if (i < A.size())
| ~~^~~~~~~~~~
foo.cc:42:21: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
42 | while (C.size() > 1 & C.back() == 0)
| ~~~~~~~~~^~~
正在同步测试数据,请稍后
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务