Problem | cyberland_apio23 |
---|---|
User | Hijackedsoul |
Submission Time | 2024-02-12 17:57:32 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cyberland_apio23.cpp: In function ‘void dijkstra(int, int, std::vector<int>)’:
cyberland_apio23.cpp:20:12: error: request for member ‘first’ in ‘i’, which is of non-class type ‘int’
20 | dist[i.first]=0;
| ^~~~~
cyberland_apio23.cpp:21:21: error: request for member ‘first’ in ‘i’, which is of non-class type ‘int’
21 | pq.push({dist[i.first], i.first});
| ^~~~~
cyberland_apio23.cpp:21:31: error: request for member ‘first’ in ‘i’, which is of non-class type ‘int’
21 | pq.push({dist[i.first], i.first});
| ^~~~~
cyberland_apio23.cpp:21:37: error: no matching function for call to ‘std::priority_queue<std::pair<long long int, int>, std::vector<std::pair<long long int, int> >, std::greater<std::pair<long long int, int> > >::push(<brace-enclosed initializer list>)’
21 | pq.push({dist[i.first], i.first});