F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_39708155_25167.cpp: In function 'void skymaths()':
0_0_39708155_25167.cpp:94:31: error: reference to 'popcount' is ambiguous
   94 |     rep (i, 1, (1 << n1) - 1) popcount[i] = popcount[i >> 1] + (i & 1);
      |                               ^~~~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:76,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string:51,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/locale_classes.h:40,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:41,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:44,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:40,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:41,
                 from 0_0_39708155_25167.cpp:3:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bit:426:5: note: candidates are: 'template<class _Tp> constexpr std::_If_is_unsigned_integer<_Tp, int> std::popcount(_Tp)'
  426 |     popcount(_Tp __x) noexcept
      |     ^~~~~~~~
0_0_39708155_25167.cpp:34:5: note:                 'int popcount [131081]'
   34 | int popcount[N];
      |     ^~~~~~~~
0_0_39708155_25167.cpp:94:45: error: reference to 'popcount' is ambiguous
   94 |     rep (i, 1, (1 << n1) - 1) popcount[i] = popcount[i >> 1] + (i & 1);
      |                                             ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bit:426:5: note: candidates are: 'template<class _Tp> constexpr std::_If_is_unsigned_integer<_Tp, int> std::popcount(_Tp)'
  426 |     popcount(_Tp __x) noexcept
      |     ^~~~~~~~
0_0_39708155_25167.cpp:34:5: note:                 'int popcount [131081]'
   34 | int popcount[N];
      |     ^~~~~~~~
0_0_39708155_25167.cpp:101:31: error: reference to 'popcount' is ambiguous
  101 |         a0[s0] = make_pair(S, popcount[s0] & 1);
      |                               ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bit:426:5: note: candidates are: 'template<class _Tp> constexpr std::_If_is_unsigned_integer<_Tp, int> std::popcount(_Tp)'
  426 |     popcount(_Tp __x) noexcept
      |     ^~~~~~~~
0_0_39708155_25167.cpp:34:5: note:                 'int popcount [131081]'
   34 | int popcount[N];
      |     ^~~~~~~~
0_0_39708155_25167.cpp:108:31: error: reference to 'popcount' is ambiguous
  108 |         a1[s1] = make_pair(S, popcount[s1] & 1);
      |                               ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bit:426:5: note: candidates are: 'template<class _Tp> constexpr std::_If_is_unsigned_integer<_Tp, int> std::popcount(_Tp)'
  426 |     popcount(_Tp __x) noexcept
      |     ^~~~~~~~
0_0_39708155_25167.cpp:34:5: note:                 'int popcount [131081]'
   34 | int popcount[N];
      |     ^~~~~~~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-13 15:00:41, Gzip enabled