prog.cpp:4:1: error: 'LL' does not name a type
LL d[1000000];//Distance function
^
prog.cpp:6:1: error: 'list' does not name a type
list<pair<int,int> > *graph;
^
prog.cpp: In function 'void dijkstra(int)':
prog.cpp:10:1: error: 'set' was not declared in this scope
set<pair<int,int> > pq;
^
prog.cpp:10:19: error: expected primary-expression before '>' token
set<pair<int,int> > pq;
^
prog.cpp:10:21: error: 'pq' was not declared in this scope
set<pair<int,int> > pq;
^
prog.cpp:13:19: error: expected primary-expression before '>' token
set<pair<int,int> > ::iterator it;
^
prog.cpp:13:32: error: missing template arguments before 'it'
set<pair<int,int> > ::iterator it;
^
prog.cpp:17:1: error: 'list' was not declared in this scope
list<pair<int,int> > :: iterator i;
^
prog.cpp:17:20: error: expected primary-expression before '>' token
list<pair<int,int> > :: iterator i;
^
prog.cpp:17:34: error: missing template arguments before 'i'
list<pair<int,int> > :: iterator i;
^
prog.cpp:22:1: error: 'd' was not declared in this scope
d[root]=0;
^
prog.cpp:28:5: error: 'it' was not declared in this scope
it=pq.begin();
^
prog.cpp:34:9: error: 'i' was not declared in this scope
for(i=graph[u].begin(); i!=graph[u].end(); i++)
^
prog.cpp:34:11: error: 'graph' was not declared in this scope
for(i=graph[u].begin(); i!=graph[u].end(); i++)
^
prog.cpp: In function 'void addedge(int, int, int)':
prog.cpp:60:1: error: 'graph' was not declared in this scope
graph[src].push_front(x);
^
prog.cpp:68:2: error: expected primary-expression before '/' token
*/ //This algorithm works in same way for undirected graph }
^
prog.cpp:70:1: error: expected primary-expression before 'int'
int main() {
^
prog.cpp:113:1: error: expected '}' at end of input
}
^