0_0_27966109_16843.cpp:31:27: error: 'EDGE' does not name a type
bool operator <(const EDGE &k)const
^
0_0_27966109_16843.cpp:24:8: error: field 'long long int EDGE::EDGE' with same name as class [-fpermissive]
ll EDGE;
^
0_0_27966109_16843.cpp: In member function 'bool EDGE::operator<(const int&) const':
0_0_27966109_16843.cpp:33:23: error: request for member 'EDGE' in 'k', which is of non-class type 'const int'
return EDGE>k.EDGE;
^
0_0_27966109_16843.cpp: In function 'void dijkstra(long long int)':
0_0_27966109_16843.cpp:48:24: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Sequence, class _Compare> class std::priority_queue'
priority_queue<EDGE>q;
^
0_0_27966109_16843.cpp:48:24: error: expected a type, got 'EDGE'
0_0_27966109_16843.cpp:48:24: error: template argument 2 is invalid
0_0_27966109_16843.cpp:48:24: error: template argument 3 is invalid
0_0_27966109_16843.cpp:48:26: error: invalid type in declaration before ';' token
priority_queue<EDGE>q;
^
0_0_27966109_16843.cpp:49:7: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(EDGE(s,EDGE[s]));
^
0_0_27966109_16843.cpp:49:26: error: 'EDGE' cannot be used as a function
q.push(EDGE(s,EDGE[s]));
^
0_0_27966109_16843.cpp:50:14: error: request for member 'empty' in 'q', which is of non-class type 'int'
while(!q.empty())
^
0_0_27966109_16843.cpp:52:14: error: expected ';' before 'top'
EDGE top=q.top();
^
0_0_27966109_16843.cpp:53:11: error: request for member 'pop' in 'q', which is of non-class type 'int'
q.pop();
^
0_0_27966109_16843.cpp:54:16: error: 'top' was not declared in this scope
if(vis[top.to])continue;
^
0_0_27966109_16843.cpp:55:13: error: 'top' was not declared in this scope
vis[top.to]=true;
^
0_0_27966109_16843.cpp:63:19: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(EDGE(tmp.to,EDGE[tmp.to]));
^
0_0_27966109_16843.cpp:63:48: error: 'EDGE' cannot be used as a function
q.push(EDGE(tmp.to,EDGE[tmp.to]));
^
|