/ Vijos /

记录详情

Accepted

foo.cc: In function 'int get_hash(int, int)':
foo.cc:44:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   44 | for(int i = 0;i < T[u].size();i++){
      |               ~~^~~~~~~~~~~~~
foo.cc:57:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   57 | for(;start < kind[tot].size() && kind[tot][start] == 1;start++);
      |      ~~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:58:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   58 | for(int i = start + 1;i < kind[tot].size();i++){
      |                       ~~^~~~~~~~~~~~~~~~~~
foo.cc: In function 'int get_p(int, int)':
foo.cc:72:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   72 | for(int i = 0;i < T[u].size();i++){
      |               ~~^~~~~~~~~~~~~
foo.cc: In function 'int get_node(int, int, std::vector<int>*)':
foo.cc:106:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  106 | for(int j = 0;j < G[i].size();j++){
      |               ~~^~~~~~~~~~~~~
foo.cc:119:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  119 | for(int j = 0;j < G[i].size();j++){
      |               ~~^~~~~~~~~~~~~
foo.cc:128:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  128 | for (int j = 0; j < ed[i].size(); ++ j) if (ed[i][j]>0)
      |                 ~~^~~~~~~~~~~~~~
foo.cc:138:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  138 | for(int j = 0;j < G[i].size();j++) pst[j] = get_num(i , G[i][j]);
      |               ~~^~~~~~~~~~~~~
foo.cc:139:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  139 | for(int j = 0;j < G[i].size();j++){
      |               ~~^~~~~~~~~~~~~
foo.cc:140:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  140 | for(int k = j + 1;k < G[i].size();k++){
      |                   ~~^~~~~~~~~~~~~
foo.cc: In function 'int brout(std::vector<int>*)':
foo.cc:154:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  154 | for(int j = 0;j < G[i].size();j++){
      |               ~~^~~~~~~~~~~~~
foo.cc:155:24: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
  155 | neigh[i] |= (1<<G[i][j]-1);
foo.cc:157:13: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
  157 | connect[1<<i-1] = 1;
      |            ~^~
foo.cc:164:11: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
  164 | if((i >> j-1) & 1) mask |= neigh[j];
      |          ~^~
foo.cc:167:15: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
  167 | if((mask >> j - 1) & 1) {connect[i | (1<<j-1)] = 1;}
      |             ~~^~~
foo.cc:167:43: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
  167 | if((mask >> j - 1) & 1) {connect[i | (1<<j-1)] = 1;}
      |                                          ~^~
foo.cc:172:12: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
  172 | if(((i >> j-1) & 1) == 0) continue;
      |           ~^~
foo.cc:174:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  174 | for(int k = 0;k < G[j].size();k++){
      |               ~~^~~~~~~~~~~~~
foo.cc:175:15: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
  175 | if((i>>G[j][k]-1) & 1) {T[j].push_back(G[j][k]);}
foo.cc: In function 'void count()':
foo.cc:199:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  199 | for(int j = 0;j < T[i].size();j++) W[i].push_back(T[i][j]);
      |               ~~^~~~~~~~~~~~~
foo.cc: In function 'void find(int, int)':
foo.cc:220:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  220 | for(int i = 0;i < E[u].size();i++){
      |               ~~^~~~~~~~~~~~~
foo.cc:228:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  228 | for(int j = 0;j < kind[i].size();j++){
      |               ~~^~~~~~~~~~~~~~~~
foo.cc:238:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  238 | for(int j = 0;j < E[u].size();j++){
      |               ~~^~~~~~~~~~~~~
foo.cc:251:8: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  251 | if(siz >= kind[i].size()) dp[u][i] = (1LL * cop[siz][(1<<len) - 1] * C[siz - len][kind[i].size() - len]) % mod;
      |    ~~~~^~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:258:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  258 | scanf("%d%d",&n,&kk);
      | ~~~~~^~~~~~~~~~~~~~~
foo.cc:273:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  273 | int u , v;scanf("%d%d",&u,&v);
      |           ~~~~~^~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 20ms 20.625 MiB
#2 Accepted 20ms 20.75 MiB
#3 Accepted 26ms 20.617 MiB
#4 Accepted 50ms 20.742 MiB
#5 Accepted 40ms 20.992 MiB
#6 Accepted 59ms 21.371 MiB
#7 Accepted 86ms 22.742 MiB
#8 Accepted 248ms 24.684 MiB
#9 Accepted 2621ms 91.699 MiB
#10 Accepted 2360ms 100.547 MiB

信息

递交者
类型
递交
题目
P2041 线图
语言
C++
递交时间
2022-01-13 18:27:03
评测时间
2022-01-13 18:27:03
评测机
分数
100
总耗时
5534ms
峰值内存
100.547 MiB