Problem | dijkstra |
---|---|
User | wrizz69 |
Submission Time | 2023-11-09 15:30:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
dijkstra.cpp:4:39: error: template argument 1 is invalid
4 | vector<pair<int,int>adjilist[100000001];
| ^
dijkstra.cpp:4:39: error: template argument 2 is invalid
dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:10:9: error: ‘adjilist’ was not declared in this scope
10 | adjilist[x].push_back({y,w});
| ^~~~~~~~
dijkstra.cpp:19:5: error: ‘visited’ was not declared in this scope
19 | visited[1]=1;
| ^~~~~~~
dijkstra.cpp:23:21: error: ‘adjilist’ was not declared in this scope
23 | for(auto i: adjilist[c]){
| ^~~~~~~~
dijkstra.cpp:26:48: 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 ini