Problem sightseeing
User personjs
Submission Time 2025-03-03 08:17:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sightseeing.cpp: In function ‘std::vector<int> dijkstra(std::vector<std::vector<Edge> >&)’:
sightseeing.cpp:16:22: error: ‘V’ was not declared in this scope
16 | vector<int> dist(V + 1, INF); // Distance array initialized to "infinity"
| ^
sightseeing.cpp: In function ‘int main()’:
sightseeing.cpp:56:10: error: ‘x’ was not declared in this scope
56 | cin >> x;
| ^