0_0_32170400_20801.cpp:16:16: error: 'node' was not declared in this scope
priority_queue<node> q;
^
0_0_32170400_20801.cpp:16:20: error: template argument 1 is invalid
priority_queue<node> q;
^
0_0_32170400_20801.cpp:16:20: error: template argument 2 is invalid
0_0_32170400_20801.cpp:16:20: error: template argument 3 is invalid
0_0_32170400_20801.cpp:16:23: error: invalid type in declaration before ';' token
priority_queue<node> q;
^
0_0_32170400_20801.cpp: In function 'void dijkstra()':
0_0_32170400_20801.cpp:49:7: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push((node){s, dis[s]});
^
0_0_32170400_20801.cpp:50:15: error: request for member 'empty' in 'q', which is of non-class type 'int'
while (!q.empty())
^
0_0_32170400_20801.cpp:52:22: error: request for member 'top' in 'q', which is of non-class type 'int'
node out = q.top();
^
0_0_32170400_20801.cpp:53:11: error: request for member 'pop' in 'q', which is of non-class type 'int'
q.pop();
^
0_0_32170400_20801.cpp:79:19: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push((node){v, dis[v]});
^
0_0_32170400_20801.cpp: In function 'void init()':
0_0_32170400_20801.cpp:89:15: error: request for member 'empty' in 'q', which is of non-class type 'int'
while (!q.empty())
^
0_0_32170400_20801.cpp:91:11: error: request for member 'pop' in 'q', which is of non-class type 'int'
q.pop();
^
|