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_14298527_29635.cpp: In function 'void dfs(int, int)':
0_0_14298527_29635.cpp:34:8: error: reference to 'hash' is ambiguous
     if(hash(0,l)==hash(2*n-l,2*n)&&hash(l+1,r-1)==hash(2*n-r+1,2*n-l-1)&&hash(r,n-1)==hash(2*n-n+1,2*n-r))
        ^
0_0_14298527_29635.cpp:27:5: note: candidates are: ULL hash(int, int)
 ULL hash(int i,int j)
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_14298527_29635.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_14298527_29635.cpp:34:19: error: reference to 'hash' is ambiguous
     if(hash(0,l)==hash(2*n-l,2*n)&&hash(l+1,r-1)==hash(2*n-r+1,2*n-l-1)&&hash(r,n-1)==hash(2*n-n+1,2*n-r))
                   ^
0_0_14298527_29635.cpp:27:5: note: candidates are: ULL hash(int, int)
 ULL hash(int i,int j)
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_14298527_29635.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_14298527_29635.cpp:34:36: error: reference to 'hash' is ambiguous
     if(hash(0,l)==hash(2*n-l,2*n)&&hash(l+1,r-1)==hash(2*n-r+1,2*n-l-1)&&hash(r,n-1)==hash(2*n-n+1,2*n-r))
                                    ^
0_0_14298527_29635.cpp:27:5: note: candidates are: ULL hash(int, int)
 ULL hash(int i,int j)
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_14298527_29635.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_14298527_29635.cpp:34:51: error: reference to 'hash' is ambiguous
     if(hash(0,l)==hash(2*n-l,2*n)&&hash(l+1,r-1)==hash(2*n-r+1,2*n-l-1)&&hash(r,n-1)==hash(2*n-n+1,2*n-r))
                                                   ^
0_0_14298527_29635.cpp:27:5: note: candidates are: ULL hash(int, int)
 ULL hash(int i,int j)
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_14298527_29635.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_14298527_29635.cpp:34:74: error: reference to 'hash' is ambiguous
     if(hash(0,l)==hash(2*n-l,2*n)&&hash(l+1,r-1)==hash(2*n-r+1,2*n-l-1)&&hash(r,n-1)==hash(2*n-n+1,2*n-r))
                                                                          ^
0_0_14298527_29635.cpp:27:5: note: candidates are: ULL hash(int, int)
 ULL hash(int i,int j)
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_14298527_29635.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_14298527_29635.cpp:34:87: error: reference to 'hash' is ambiguous
     if(hash(0,l)==hash(2*n-l,2*n)&&hash(l+1,r-1)==hash(2*n-r+1,2*n-l-1)&&hash(r,n-1)==hash(2*n-n+1,2*n-r))
                                                                                       ^
0_0_14298527_29635.cpp:27:5: note: candidates are: ULL hash(int, int)
 ULL hash(int i,int j)
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_14298527_29635.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_14298527_29635.cpp:41:8: error: reference to 'hash' is ambiguous
     if(hash(0,l)==hash(2*n-l,2*n)&&hash(l+1,r-1)==hash(2*n-r+1,2*n-l-1)&&hash(r,n-1)==hash(2*n-n+1,2*n-r))
        ^
0_0_14298527_29635.cpp:27:5: note: candidates are: ULL hash(int, int)
 ULL hash(int i,int j)
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_14298527_29635.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_14298527_29635.cpp:41:19: error: reference to 'hash' is ambiguous
     if(hash(0,l)==hash(2*n-l,2*n)&&hash(l+1,r-1)==hash(2*n-r+1,2*n-l-1)&&hash(r,n-1)==hash(2*n-n+1,2*n-r))
                   ^
0_0_14298527_29635.cpp:27:5: note: candidates are: ULL hash(int, int)
 ULL hash(int i,int j)
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_14298527_29635.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_14298527_29635.cpp:41:36: error: reference to 'hash' is ambiguous
     if(hash(0,l)==hash(2*n-l,2*n)&&hash(l+1,r-1)=


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-17 09:03:10, Gzip enabled