Problem | dijkstra |
---|---|
User | nminhnguyenle |
Submission Time | 2025-06-11 16:14:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:20:22: error: ‘n’ was not declared in this scope
20 | vector<pi> graph[n];
| ^
dijkstra.cpp:25:9: error: ‘graph’ was not declared in this scope; did you mean ‘isgraph’?
25 | graph[x].push_back({y, w});
| ^~~~~
| isgraph
dijkstra.cpp:37:38: error: ‘graph’ was not declared in this scope; did you mean ‘isgraph’?
37 | for (auto [neighbor, edge] : graph[node]) {
| ^~~~~
| isgraph
dijkstra.cpp:40:51: error: no matching function for call to ‘std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >::push(<brace-enclosed initializer list>)’
40 | pq.push({dis