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_20591853_27472.cpp: In function 'bool person_can_archieve(Point&, Point&)':
0_0_20591853_27472.cpp:71:17: error: reference to 'is_empty' is ambiguous
             if (is_empty(next) && !visit[next.row][next.col]) {
                 ^
0_0_20591853_27472.cpp:49:6: note: candidates are: bool is_empty(Point&)
 bool is_empty(Point &p)
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 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_20591853_27472.cpp:10:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:632:12: note:                 template<class _Tp> struct std::is_empty
     struct is_empty
            ^
0_0_20591853_27472.cpp: In function 'int f()':
0_0_20591853_27472.cpp:100:44: error: reference to 'is_empty' is ambiguous
             if (visit[b.row][b.col][i] || !is_empty(nextb) || !person_can_archieve(s.from, p)) {
                                            ^
0_0_20591853_27472.cpp:49:6: note: candidates are: bool is_empty(Point&)
 bool is_empty(Point &p)
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 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_20591853_27472.cpp:10:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:632:12: note:                 template<class _Tp> struct std::is_empty
     struct is_empty
            ^


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-12-02 04:12:53, Gzip enabled