Problem car
User themadpotato
Submission Time 2023-04-26 16:10:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

car.cpp: In function ‘int main()’:
car.cpp:27:27: error: type/value mismatch at argument 2 in template parameter list for ‘template<class _Tp, class _Sequence, class _Compare> class std::priority_queue’
27 | priority_queue<edge, cmp> pq;
| ^
car.cpp:27:27: note: expected a type, got ‘cmp’
car.cpp:27:27: error: template argument 3 is invalid
car.cpp:35:8: error: request for member ‘push’ in ‘pq’, which is of non-class type ‘int’
35 | pq.push(temp);
| ^~~~
car.cpp:37:14: error: request for member ‘empty’ in ‘pq’, which is of non-class type ‘int’
37 | while (!pq.empty()) {
| ^~~~~
car.cpp:38:19: error: request for member ‘top’ in ‘pq’, which is of non-class type ‘int’
38 | edge curr = pq.top();
| ^~~
car.cpp:40:24: error: no match for ‘operator<’ (operand types are ‘long long int’ and ‘std::vector<std::pair<long