QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#872728#8613. Cardinalityucup-team6072#Compile Error//C++202.2kb2025-01-26 04:00:362025-01-26 04:00:37

Details

answer.code: In function ‘int main()’:
answer.code:83:24: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long unsigned int> >, std::vector<long long unsigned int> >::value_type’ {aka ‘std::vector<long long unsigned int>’} to ‘long long unsigned int’
   83 |                 z += pc(masks[6 * j + k]);
      |                      ~~^~~~~~~~~~~~~~~~~~
      |                        |
      |                        __gnu_cxx::__alloc_traits<std::allocator<std::vector<long long unsigned int> >, std::vector<long long unsigned int> >::value_type {aka std::vector<long long unsigned int>}
answer.code:14:27: note:   initializing argument 1 of ‘int pc(long long unsigned int)’
   14 | int pc(unsigned long long x) {
      |        ~~~~~~~~~~~~~~~~~~~^