0_0_18882965_9771.cpp:4:15: error: reference to 'max' is ambiguous
int n, m, map[max][max], wan[max][max];
^
0_0_18882965_9771.cpp:3:11: note: candidates are: const int max
const int max = 1005, inf = 1 << 30;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
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_18882965_9771.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:217:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
0_0_18882965_9771.cpp:4:20: error: reference to 'max' is ambiguous
int n, m, map[max][max], wan[max][max];
^
0_0_18882965_9771.cpp:3:11: note: candidates are: const int max
const int max = 1005, inf = 1 << 30;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
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_18882965_9771.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:217:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
0_0_18882965_9771.cpp:4:30: error: reference to 'max' is ambiguous
int n, m, map[max][max], wan[max][max];
^
0_0_18882965_9771.cpp:3:11: note: candidates are: const int max
const int max = 1005, inf = 1 << 30;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
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_18882965_9771.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:217:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
0_0_18882965_9771.cpp:4:35: error: reference to 'max' is ambiguous
int n, m, map[max][max], wan[max][max];
^
0_0_18882965_9771.cpp:3:11: note: candidates are: const int max
const int max = 1005, inf = 1 << 30;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
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_18882965_9771.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:217:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
0_0_18882965_9771.cpp: In function 'void dfs(int, int, int, int)':
0_0_18882965_9771.cpp:18:49: error: 'map' was not declared in this scope
if (1 <= nx && nx<= n && 1 <= ny &&ny<= m && (map[nx][ny] == map[ex][ey] || map[nx][ny] == 0))
^
0_0_18882965_9771.cpp:22:5: error: 'wan' was not declared in this scope
wan[nx][ny] = cnt;
^
0_0_18882965_9771.cpp:26:17: error: 'wan' was not declared in this scope
if (cnt<2 && wan[nx][ny]>wan[x][y])
^
0_0_18882965_9771.cpp: In function 'int main()':
0_0_18882965_9771.cpp:44:12: error: 'map' was not declared in this scope
cin >> map[i][j];
^
0_0_18882965_9771.cpp:54:14: error: 'map' was not declared in this scope
cin >> map[i][j];
^
0_0_18882965_9771.cpp:59:10: error: 'map' was not declared in this scope
if (map[sx][sy] != map[ex][ey]) { cout << "NO" << endl; continue; }
^
0_0_18882965_9771.cpp:60:10: error: 'map' was not declared in this scope
if (map[sx][sy] == 0) { cout << "NO" << endl; continue; }
^
0_0_18882965_9771.cpp:62:12: error: 'wan' was not declared in this scope
fill(&wan[0][0], &wan[max][0], inf);
^
0_0_18882965_9771.cpp:62:28: error: reference to 'max' is ambiguous
fill(&wan[0][0], &wan[max][0], inf);
^
0_0_18882965_9771.cpp:3:11: note: candidates are: const int max
const int max = 1005, inf = 1 << 30;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
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_18882965_9771.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:217:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
|