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_19109814_26559.cpp: In function 'int main()':
0_0_19109814_26559.cpp:34:6: error: reference to 'forward' is ambiguous
      forward[i][j][k] = ((j & (((mask[M + 1]) - 1) ^ mask[i] ^ mask[M])) | (((bool)(k & 2))<<M)) | (((bool)(k & 1))<<i);
      ^
0_0_19109814_26559.cpp:12:45: note: candidates are: short int forward [7][128][4]
 short mask[MMAX], degree[MMAX][1<<MMAX][4], forward[MMAX][1<<MMAX][4];
                                             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_19109814_26559.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:87:5: note:                 template<class _Tp> constexpr _Tp&& std::forward(typename std::remove_reference<_From>::type&&)
     forward(typename std::remove_reference<_Tp>::type&& __t) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:76:5: note:                 template<class _Tp> constexpr _Tp&& std::forward(typename std::remove_reference<_From>::type&)
     forward(typename std::remove_reference<_Tp>::type& __t) noexcept
     ^
0_0_19109814_26559.cpp:67:21: error: reference to 'forward' is ambiguous
         (f[pos ^ 1][forward[j][S1][lu1]][forward[j][S2][lu2]] += f[pos][S1][S2]) %= MOD;
                     ^
0_0_19109814_26559.cpp:12:45: note: candidates are: short int forward [7][128][4]
 short mask[MMAX], degree[MMAX][1<<MMAX][4], forward[MMAX][1<<MMAX][4];
                                             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_19109814_26559.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:87:5: note:                 template<class _Tp> constexpr _Tp&& std::forward(typename std::remove_reference<_From>::type&&)
     forward(typename std::remove_reference<_Tp>::type&& __t) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:76:5: note:                 template<class _Tp> constexpr _Tp&& std::forward(typename std::remove_reference<_From>::type&)
     forward(typename std::remove_reference<_Tp>::type& __t) noexcept
     ^
0_0_19109814_26559.cpp:67:42: error: reference to 'forward' is ambiguous
         (f[pos ^ 1][forward[j][S1][lu1]][forward[j][S2][lu2]] += f[pos][S1][S2]) %= MOD;
                                          ^
0_0_19109814_26559.cpp:12:45: note: candidates are: short int forward [7][128][4]
 short mask[MMAX], degree[MMAX][1<<MMAX][4], forward[MMAX][1<<MMAX][4];
                                             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_19109814_26559.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:87:5: note:                 template<class _Tp> constexpr _Tp&& std::forward(typename std::remove_reference<_From>::type&&)
     forward(typename std::remove_reference<_Tp>::type&& __t) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:76:5: note:                 template<class _Tp> constexpr _Tp&& std::forward(typename std::remove_reference<_From>::type&)
     forward(typename std::remove_reference<_Tp>::type& __t) noexcept
     ^


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-07-02 15:22:27, Gzip enabled