0_0_31982111_17923.cpp:17:2: error: type/value mismatch at argument 2 in template parameter list for 'template<class _Tp, class _Sequence, class _Compare> class std::priority_queue'
> Q;
^
0_0_31982111_17923.cpp:17:2: error: expected a type, got 'vector'
0_0_31982111_17923.cpp:17:2: error: type/value mismatch at argument 3 in template parameter list for 'template<class _Tp, class _Sequence, class _Compare> class std::priority_queue'
0_0_31982111_17923.cpp:17:2: error: expected a type, got 'greater'
0_0_31982111_17923.cpp:17:5: error: invalid type in declaration before ';' token
> Q;
^
0_0_31982111_17923.cpp:20:2: error: invalid use of template-name 'std::vector' without an argument list
vector
^
0_0_31982111_17923.cpp: In function 'void gao(int)':
0_0_31982111_17923.cpp:29:8: error: request for member 'push' in 'Q', which is of non-class type 'int'
Q.push(mp(0,x));
^
0_0_31982111_17923.cpp:30:16: error: request for member 'empty' in 'Q', which is of non-class type 'int'
while (!Q.empty())
^
0_0_31982111_17923.cpp:32:18: error: request for member 'top' in 'Q', which is of non-class type 'int'
P tmp=Q.top();
^
0_0_31982111_17923.cpp:33:12: error: request for member 'pop' in 'Q', which is of non-class type 'int'
Q.pop();
^
0_0_31982111_17923.cpp:36:21: error: 'e' was not declared in this scope
for (i=0;i<e[x].size();i++)
^
0_0_31982111_17923.cpp:41:16: error: request for member 'push' in 'Q', which is of non-class type 'int'
Q.push(mp(dis[e[x][i].fi],e[x][i].fi));
^
0_0_31982111_17923.cpp: In function 'int main()':
0_0_31982111_17923.cpp:96:25: error: 'e' was not declared in this scope
for (i=1;i<=n;i++) e[i].clear();
^
0_0_31982111_17923.cpp:101:10: error: 'e' was not declared in this scope
e[a].pb(mp(b,c));
^
0_0_31982111_17923.cpp:145:24: error: 'e' was not declared in this scope
for (int k=0;k<e[i].size();k++)
^
|