记录详情

Accepted

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)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 8ms 7.25 MiB
#2 Accepted 20ms 7.246 MiB
#3 Accepted 8ms 7.25 MiB
#4 Accepted 13ms 7.5 MiB
#5 Accepted 13ms 7.5 MiB
#6 Accepted 29ms 7.5 MiB
#7 Accepted 17ms 7.375 MiB
#8 Accepted 2082ms 42.457 MiB
#9 Accepted 2061ms 43.332 MiB

信息

递交者
类型
递交
题目
P1314 J. Game on tree
语言
C++
递交时间
2021-12-20 20:59:44
评测时间
2021-12-20 21:01:29
评测机
分数
700
总耗时
4256ms
峰值内存
43.332 MiB