/in/foo.cc:28:10: error: 'N' was not declared in this scope
double d[N];
^
/in/foo.cc:29:10: error: 'M' was not declared in this scope
point pt[M*4];
^
/in/foo.cc:30:9: error: 'M' was not declared in this scope
wall wl[M*3];
^
/in/foo.cc:32:18: error: 'N' was not declared in this scope
vector<edge> adj[N];
^
/in/foo.cc: In function 'void dijkstra()':
/in/foo.cc:51:27: error: 'd' was not declared in this scope
for(int i=1;i<=n;++i) d[i] = inf;
^
/in/foo.cc:51:34: error: 'inf' was not declared in this scope
for(int i=1;i<=n;++i) d[i] = inf;
^~~
/in/foo.cc:51:34: note: suggested alternative: 'ynf'
for(int i=1;i<=n;++i) d[i] = inf;
^~~
ynf
/in/foo.cc:52:5: error: 'd' was not declared in this scope
d[s] = 0;
^
/in/foo.cc:61:13: error: 'adj' was not declared in this scope
l = adj[u].size();
^~~
/in/foo.cc: In function 'void build(int, point)':
/in/foo.cc:77:15: error: 'pt' was not declared in this scope
pt2 = pt[i];
^~
/in/foo.cc:77:15: note: suggested alternative: 'pt2'
pt2 = pt[i];
^~
pt2
/in/foo.cc:79:35: error: 'wl' was not declared in this scope
if(!intersect(pt1,pt2,wl[j])) continue;
^~
/in/foo.cc:84:9: error: 'adj' was not declared in this scope
adj[from].push_back(edge(i,dis(pt1.x,pt1.y,pt2.x,pt2.y)));
^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:92:5: error: 'pt' was not declared in this scope
pt[1] = point(0,5);
^~
/in/foo.cc:96:9: error: 'wl' was not declared in this scope
wl[(i-1)*3+1] = wall(x,10,b2);
^~
/in/foo.cc:109:20: error: 'd' was not declared in this scope
printf("%.2lf",d[n]);
^