0_0_32744355_15183.cpp: In function 'void dijkstra(int, int)':
0_0_32744355_15183.cpp:152:3: error: reference to 'distance' is ambiguous
distance[i]=(1<<30);
^
0_0_32744355_15183.cpp:9:5: note: candidates are: int distance [20010]
int distance[20010];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_32744355_15183.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:114:5: note: template<class _InputIterator> typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator)
distance(_InputIterator __first, _InputIterator __last)
^
0_0_32744355_15183.cpp:157:2: error: reference to 'distance' is ambiguous
distance[start]=0;
^
0_0_32744355_15183.cpp:9:5: note: candidates are: int distance [20010]
int distance[20010];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_32744355_15183.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:114:5: note: template<class _InputIterator> typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator)
distance(_InputIterator __first, _InputIterator __last)
^
0_0_32744355_15183.cpp:199:8: error: reference to 'distance' is ambiguous
if(distance[curr->city]>currCost+curr->cost)
^
0_0_32744355_15183.cpp:9:5: note: candidates are: int distance [20010]
int distance[20010];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_32744355_15183.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:114:5: note: template<class _InputIterator> typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator)
distance(_InputIterator __first, _InputIterator __last)
^
0_0_32744355_15183.cpp:201:6: error: reference to 'distance' is ambiguous
distance[curr->city]=currCost+curr->cost;
^
0_0_32744355_15183.cpp:9:5: note: candidates are: int distance [20010]
int distance[20010];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_32744355_15183.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:114:5: note: template<class _InputIterator> typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator)
distance(_InputIterator __first, _InputIterator __last)
^
0_0_32744355_15183.cpp:204:19: error: reference to 'distance' is ambiguous
insert2.cost=distance[curr->city];
^
0_0_32744355_15183.cpp:9:5: note: candidates are: int distance [20010]
int distance[20010];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_32744355_15183.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:114:5: note: template<class _InputIterator> typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator)
distance(_InputIterator __first, _InputIterator __last)
^
0_0_32744355_15183.cpp: In function 'int bfs()':
0_0_32744355_15183.cpp:271:24: error: reference to 'distance' is ambiguous
if(visited12[1]==0&&distance[0]<=600)
^
0_0_32744355_15183.cpp:9:5: note: candidates are: int distance [20010]
int distance[20010];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_32744355_15183.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:114:5: note: template<class _InputIterator> typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator)
distance(_InputIterator __first, _InputIterator __last)
^
0_0_32744355_15183.cpp:275:7: error: reference to 'distance' is ambiguous
if(distance[n]<=600)
^
0_0_32744355_15183.cpp:9:5: note: candidates are: int distance [20010]
int distance[20010];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_32744355_15183.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:114:5: note: template<class _InputIterator> typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator)
distance(_InputIterator __first, _InputIterator __last)
^
0_0_32744355_15183.cpp:284:32: error: reference to 'distance' is ambiguous
if(visited12[hotel[i]]==0&&distance[hotel[i]]<=600)
^
0_0_32744355_15183.cpp:9:5: note: candidates are: int distance [20010]
int distance[20010];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_32744355_15183.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:114:5: note: template<class _InputIterator> typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator)
distance(_InputIterator __first, _InputIterator __last)
^
|