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_13353403_24848.cpp: In function 'int main()':
0_0_13353403_24848.cpp:47:16: error: reference to 'hash' is ambiguous
         memset(hash, 0, sizeof(hash));
                ^
0_0_13353403_24848.cpp:16:5: note: candidates are: int hash [300][300]
 int hash[300][300];
     ^
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_13353403_24848.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_13353403_24848.cpp:47:32: error: reference to 'hash' is ambiguous
         memset(hash, 0, sizeof(hash));
                                ^
0_0_13353403_24848.cpp:16:5: note: candidates are: int hash [300][300]
 int hash[300][300];
     ^
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_13353403_24848.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_13353403_24848.cpp:51:13: error: reference to 'hash' is ambiguous
             hash[a[i].x][a[i].y] = i;
             ^
0_0_13353403_24848.cpp:16:5: note: candidates are: int hash [300][300]
 int hash[300][300];
     ^
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_13353403_24848.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_13353403_24848.cpp:75:21: error: reference to 'hash' is ambiguous
             int k = hash[x1][y2], l = hash[x2][y1];
                     ^
0_0_13353403_24848.cpp:16:5: note: candidates are: int hash [300][300]
 int hash[300][300];
     ^
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_13353403_24848.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_13353403_24848.cpp:77:17: error: 'l' was not declared in this scope
             if (l*k == 0 || k == i || k == j || l == i || l == j || l == k) continue;
                 ^
0_0_13353403_24848.cpp:82:56: error: 'l' was not declared in this scope
                 if (p == i || p == j || p == k || p == l) continue;
                                                        ^
0_0_13353403_24848.cpp:83:56: error: 'l' was not declared in this scope
                 if (q == i || q == j || q == k || q == l) continue;
                                                        ^
0_0_13353403_24848.cpp:86:25: error: reference to 'hash' is ambiguous
                 int r = hash[x3][y4], s = hash[x4][y3];
                         ^
0_0_13353403_24848.cpp:16:5: note: candidates are: int hash [300][300]
 int hash[300][300];
     ^
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_13353403_24848.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_13353403_24848.cpp:87:56: error: 'l' was not declared in this scope
                 if (r == i || r == j || r == k || r == l) continue;
                                                        ^
0_0_13353403_24848.cpp:88:21: error: 's' was not declared in this scope
                 if (s == i || s == j || s == k || s == l) continue;
                     ^
0_0_13353403_24848.cpp:88:56: error: 'l' was not declared in this scope
                 if (s == i || s == j || s == k || s == l) continue;
                                                        ^
0_0_13353403_24848.cpp:89:23: error: 's' was not declared in this scope
                 if (r*s == 0 || r == p || r == q || s == p || s == q || r == s) continue;
                       ^


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-16 06:13:13, Gzip enabled