QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#214105#6549. Two Missing Numbersucup-team660#Compile Error//C++147.0kb2023-10-14 17:14:172023-10-14 17:14:18

詳細信息

answer.code: In member function ‘nimber nimber::operator*(const nimber&) const’:
answer.code:216:41: error: call of overloaded ‘product(const ull&, const ull&)’ is ambiguous
  216 |                 return {nimbers::product(x, rhs.x)};
      |                         ~~~~~~~~~~~~~~~~^~~~~~~~~~
answer.code:170:20: note: candidate: ‘u16 nimbers::product(u16, u16)’
  170 |         inline u16 product(u16 A, u16 B) {return A && B ? exp[ln[A] + ln[B]] : 0;}
      |                    ^~~~~~~
answer.code:175:20: note: candidate: ‘u32 nimbers::product(u32, u32)’
  175 |         inline u32 product(u32 A, u32 B) {
      |                    ^~~~~~~
answer.code:185:20: note: candidate: ‘u64 nimbers::product(u64, u64)’
  185 |         inline u64 product(u64 A, u64 B) {
      |                    ^~~~~~~
answer.code:216:51: error: could not convert ‘{<expression error>}’ from ‘<brace-enclosed initializer list>’ to ‘nimber’
  216 |                 return {nimbers::product(x, rhs.x)};
      |                                                   ^
      |                                                   |
      |                                                   <brace-enclosed initializer list>