0_0_17782559_14030.cpp: In function 'void SPFA(int, int)':
0_0_17782559_14030.cpp:3:5: error: 'queue' was not declared in this scope
queue<int> Q;
^
0_0_17782559_14030.cpp:3:11: error: expected primary-expression before 'int'
queue<int> Q;
^
0_0_17782559_14030.cpp:4:25: error: 'n' was not declared in this scope
for(int i = 1; i <= n; i++)
^
0_0_17782559_14030.cpp:5:5: error: 'dist' was not declared in this scope
dist[i] = i==s ? 0 : INF;
^
0_0_17782559_14030.cpp:5:26: error: 'INF' was not declared in this scope
dist[i] = i==s ? 0 : INF;
^
0_0_17782559_14030.cpp:6:12: error: 'vis' was not declared in this scope
memset(vis, false, sizeof(vis));
^
0_0_17782559_14030.cpp:6:35: error: 'memset' was not declared in this scope
memset(vis, false, sizeof(vis));
^
0_0_17782559_14030.cpp:8:5: error: 'Q' was not declared in this scope
Q.push(s);
^
0_0_17782559_14030.cpp:14:21: error: 'head' was not declared in this scope
for(int i = head[u]; i != -1; i = edge[i].next)
^
0_0_17782559_14030.cpp:14:43: error: 'edge' was not declared in this scope
for(int i = head[u]; i != -1; i = edge[i].next)
^
0_0_17782559_14030.cpp:16:13: error: 'Edge' was not declared in this scope
Edge E = edge[i];
^
0_0_17782559_14030.cpp:17:16: error: 'dist' was not declared in this scope
if(dist[E.to] > dist[u] + E.val)
^
0_0_17782559_14030.cpp:17:21: error: 'E' was not declared in this scope
if(dist[E.to] > dist[u] + E.val)
^
0_0_17782559_14030.cpp:20:17: error: 'pre' was not declared in this scope
pre[E.to] = u;
^
|