0_0_18210814_14548.cpp:9:1: error: 'priority_queue' does not name a type
priority_queue <nide> q;
^
0_0_18210814_14548.cpp: In function 'int dij(int, int, int)':
0_0_18210814_14548.cpp:12:12: error: 'q' was not declared in this scope
while(!q.empty())
^
0_0_18210814_14548.cpp:15:9: error: 'dis' was not declared in this scope
dis[i]=Inf,pre[i]=-1;
^
0_0_18210814_14548.cpp:15:16: error: 'Inf' was not declared in this scope
dis[i]=Inf,pre[i]=-1;
^
0_0_18210814_14548.cpp:15:20: error: 'pre' was not declared in this scope
dis[i]=Inf,pre[i]=-1;
^
0_0_18210814_14548.cpp:16:5: error: 'dis' was not declared in this scope
dis[s]=0;
^
0_0_18210814_14548.cpp:17:5: error: 'q' was not declared in this scope
q.push(nide {s,dis[s]});
^
0_0_18210814_14548.cpp:22:19: error: 'head' was not declared in this scope
for(int i=head[p1.v]; i!=-1; i=tu[i].next)
^
0_0_18210814_14548.cpp:22:40: error: 'tu' was not declared in this scope
for(int i=head[p1.v]; i!=-1; i=tu[i].next)
^
0_0_18210814_14548.cpp:28:17: error: 'pre' was not declared in this scope
pre[v]=i;
^
0_0_18210814_14548.cpp:33:16: error: 'Inf' was not declared in this scope
if(dis[t]==Inf)
^
|