0_0_35136000_30646.cpp: In function 'void Dijkstra(int)':
0_0_35136000_30646.cpp:30:6: error: type/value mismatch at argument 2 in template parameter list for 'template<class _Tp, class _Sequence, class _Compare> class std::priority_queue'
, cmp> pq;
^
0_0_35136000_30646.cpp:30:6: error: expected a type, got 'vector'
0_0_35136000_30646.cpp:30:10: error: invalid type in declaration before ';' token
, cmp> pq;
^
0_0_35136000_30646.cpp:33:8: error: request for member 'push' in 'pq', which is of non-class type 'int'
pq.push(P(0, 1));
^
0_0_35136000_30646.cpp:34:16: error: request for member 'empty' in 'pq', which is of non-class type 'int'
while( !pq.empty() )
^
0_0_35136000_30646.cpp:36:18: error: request for member 'top' in 'pq', which is of non-class type 'int'
P t = pq.top();
^
0_0_35136000_30646.cpp:37:12: error: request for member 'pop' in 'pq', which is of non-class type 'int'
pq.pop();
^
0_0_35136000_30646.cpp:48:20: error: request for member 'push' in 'pq', which is of non-class type 'int'
pq.push(P(m, i));
^
|