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
^
|