Problem dijkstra
User Henries
Submission Time 2024-12-01 23:00:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp: In function ‘long long int dijkstra()’:
dijkstra.cpp:9:2: error: reference to ‘distance’ is ambiguous
9 | distance[0] = 0;
| ^~~~~~~~
In file included from /usr/include/c++/9/filesystem:37,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:129,
from dijkstra.cpp:1:
/usr/include/c++/9/bits/fs_path.h:1274:1: note: candidates are: ‘std::ptrdiff_t std::distance(std::filesystem::__cxx11::path::iterator, std::filesystem::__cxx11::path::iterator)’
1274 | distance(filesystem::path::iterator __first, filesystem::path::iterator __last)
| ^~~~~~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:66,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from dijkstra.cpp:1:
/usr/include/c++/9/bits/stl_iterator_base_funcs.