QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#96088#5093. 会议LeafSeekCompile Error//C++142.6kb2023-04-13 10:28:152023-04-13 10:28:20

詳細信息

answer.code: In function ‘bool insert(const D_t&)’:
answer.code:97:40: error: invalid initialization of reference of type ‘const std::bitset<100005>&’ from expression of type ‘std::bitset<50005>’
   97 |                 const int u=sample(T[n]&alive);
      |                                    ~~~~^~~~~~
answer.code:23:33: note: in passing argument 1 of ‘int sample(const std::bitset<100005>&)’
   23 | int sample(const bitset<n_MAX> &S)
      |            ~~~~~~~~~~~~~~~~~~~~~^
answer.code: In function ‘bool erase(int)’:
answer.code:108:28: error: invalid initialization of reference of type ‘const std::bitset<100005>&’ from expression of type ‘std::bitset<50005>’
  108 |         const int v=sample(alive);
      |                            ^~~~~
answer.code:23:33: note: in passing argument 1 of ‘int sample(const std::bitset<100005>&)’
   23 | int sample(const bitset<n_MAX> &S)
      |            ~~~~~~~~~~~~~~~~~~~~~^
answer.code:112:40: error: invalid initialization of reference of type ‘const std::bitset<100005>&’ from expression of type ‘std::bitset<50005>’
  112 |                 const int w=sample(T[v]&alive);
      |                                    ~~~~^~~~~~
answer.code:23:33: note: in passing argument 1 of ‘int sample(const std::bitset<100005>&)’
   23 | int sample(const bitset<n_MAX> &S)
      |            ~~~~~~~~~~~~~~~~~~~~~^