0_0_18316846_7443.cpp: In function 'bool bfs(int, int)':
0_0_18316846_7443.cpp:70:12: error: no match for 'operator=' (operand types are 'pi {aka std::pair<int, int>}' and '<unresolved overloaded function type>')
pai=q.front
^
0_0_18316846_7443.cpp:70:12: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
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_18316846_7443.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:158:7: note: std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(const std::pair<_T1, _T2>&) [with _T1 = int; _T2 = int]
operator=(const pair& __p)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:158:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const std::pair<int, int>&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:166:7: note: std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(std::pair<_T1, _T2>&&) [with _T1 = int; _T2 = int]
operator=(pair&& __p)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:166:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::pair<int, int>&&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:177:2: note: template<class _U1, class _U2> std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(const std::pair<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = int; _T2 = int]
operator=(const pair<_U1, _U2>& __p)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:177:2: note: template argument deduction/substitution failed:
0_0_18316846_7443.cpp:70:12: note: 'const std::pair<int, int>& (std::queue<std::pair<int, int> >::*)() const' is not derived from 'const std::pair<_T1, _T2>'
pai=q.front
^
0_0_18316846_7443.cpp:70:12: note: 'std::pair<int, int>& (std::queue<std::pair<int, int> >::*)()' is not derived from 'const std::pair<_T1, _T2>'
0_0_18316846_7443.cpp:70:12: note: could not resolve address from overloaded function 'q.std::queue<std::pair<int, int> >::front'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
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_18316846_7443.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:186:2: note: template<class _U1, class _U2> std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(std::pair<_U1, _U2>&&) [with _U1 = _U1; _U2 = _U2; _T1 = int; _T2 = int]
operator=(pair<_U1, _U2>&& __p)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:186:2: note: template argument deduction/substitution failed:
0_0_18316846_7443.cpp:70:12: note: 'const std::pair<int, int>& (std::queue<std::pair<int, int> >::*)() const' is not derived from 'std::pair<_T1, _T2>'
pai=q.front
^
0_0_18316846_7443.cpp:70:12: note: 'std::pair<int, int>& (std::queue<std::pair<int, int> >::*)()' is not derived from 'std::pair<_T1, _T2>'
0_0_18316846_7443.cpp:70:12: note: could not resolve address from overloaded function 'q.std::queue<std::pair<int, int> >::front'
0_0_18316846_7443.cpp:70:15: error: expected '}' at end of input
pai=q.front
^
0_0_18316846_7443.cpp:70:15: error: expected '}' at end of input
|