Problem | car |
---|---|
User | themadpotato |
Submission Time | 2023-04-26 16:24:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
car.cpp: In function ‘int main()’:
car.cpp:27:26: 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:26: note: expected a type, got ‘cmp’
car.cpp:27:26: 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:13: error: request for member ‘size’ in ‘pq’, which is of non-class type ‘int’
37 | while (pq.size()) {
| ^~~~
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:45:8: error: request for member ‘push’ in ‘pq’, which is of non-class type ‘int’
45 | pq.push(temp);
|