foo.cc: In function 'std::vector<long long int> convolution::operator*(std::vector<long long int>, ll)':
foo.cc:75:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
75 | for(auto&it: a) it = (it*(k % mod))%mod; return a;
| ^~~
foo.cc:75:50: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
75 | for(auto&it: a) it = (it*(k % mod))%mod; return a;
| ^~~~~~
foo.cc: In function 'std::vector<long long int> convolution::inv(std::vector<long long int>)':
foo.cc:170:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
170 | int limit = 1; while(limit < a.size() + 2 * b.size()) limit*=2;
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'std::vector<long long int> convolution::Der(std::vector<long long int>)':
foo.cc:183:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
183 | for(int i=0;i<a.size()-1; i++) a[i] = a[i+1] * (i+1) % mod;
| ~^~~~~~~~~~~
foo.cc: In function 'std::vector<long long int> convolution::exp(std::vector<long long int>)':
foo.cc:203:36: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
203 | int siz = a.size(), half = siz+1>>1;
| ~~~^~
foo.cc: In function 'std::vector<long long int> convolution::pow(std::vector<long long int>, ll, ll)':
foo.cc:223:38: warning: comparison of integer expressions of different signedness: 'std::vector<long long int>::size_type' {aka 'long unsigned int'} and 'll' {aka 'long long int'} [-Wsign-compare]
223 | for(auto it: tmp) if(res.size() < siz) res.push_back(it);
| ~~~~~~~~~~~^~~~~
foo.cc: In function 'int main()':
foo.cc:258:45: warning: narrowing conversion of 'v[1].std::vector<int>::size()' from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'long long int' [-Wnarrowing]
258 | pq.push(make_pair(1, vector<ll>{1,v[1].size()}));
| ~~~~~~~~~^~
foo.cc:258:45: warning: narrowing conversion of 'v[1].std::vector<int>::size()' from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'long long int' [-Wnarrowing]
foo.cc:260:52: warning: narrowing conversion of '(v[i].std::vector<int>::size() - 1)' from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'long long int' [-Wnarrowing]
260 | pq.push(make_pair(1, vector<ll>{1, v[i].size()-1}));
| ~~~~~~~~~~~^~
foo.cc:260:52: warning: narrowing conversion of '(v[i].std::vector<int>::size() - 1)' from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'long long int' [-Wnarrowing]
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务