Problem | dijkstra |
---|---|
User | newperson |
Submission Time | 2024-12-03 23:05:16 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
dijkstra.cpp: In function ‘void solve()’:
dijkstra.cpp:36:22: error: ‘const value_type’ {aka ‘const class std::vector<long long int>’} has no member named ‘second’
36 | ll node = pq.top().second(); pq.pop();
| ^~~~~~
dijkstra.cpp:42:9: error: no match for ‘operator[]’ (operand types are ‘std::pair<long long int, long long int>’ and ‘int’)
42 | w = a[0]; b = a[1];
| ^
dijkstra.cpp:42:19: error: no match for ‘operator[]’ (operand types are ‘std::pair<long long int, long long int>’ and ‘int’)
42 | w = a[0]; b = a[1];
| ^