/in/foo.cc: In function 'void Add_Edge(int, int, int)':
/in/foo.cc:27:9: error: 'tot' was not declared in this scope
e[++tot].to=y; e[tot].w=w;
^~~
/in/foo.cc: In function 'void init()':
/in/foo.cc:40:12: error: 'Hash' was not declared in this scope
if(Hash[a])
^~~~
/in/foo.cc:41:13: error: 'w' was not declared in this scope
w[Hash[a]]+=tmp;
^
/in/foo.cc:44:23: error: 'n' was not declared in this scope
Hash[a]=++n;
^
/in/foo.cc:45:13: error: 'ip' was not declared in this scope
ip[n]=a;
^~
/in/foo.cc:46:13: error: 'w' was not declared in this scope
w[Hash[a]]=tmp;
^
/in/foo.cc:53:12: error: 'Hash' was not declared in this scope
if(Hash[a]&&Hash[b])
^~~~
/in/foo.cc:54:38: error: 'w' was not declared in this scope
Add_Edge(Hash[a],Hash[b],w[Hash[a]]+w[Hash[b]]),
^
/in/foo.cc: In function 'int SPFA(int)':
/in/foo.cc:62:20: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++)
^
/in/foo.cc:63:9: error: 'd' was not declared in this scope
d[i]=INF;
^
/in/foo.cc:64:12: error: 'in' was not declared in this scope
memset(in,0,sizeof(in));
^~
/in/foo.cc:65:5: error: 'd' was not declared in this scope
d[s]=0; in[s]=1; q.push(s);
^
/in/foo.cc:81:20: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++)
^
/in/foo.cc: In function 'void out()':
/in/foo.cc:97:17: error: 'ip' was not declared in this scope
cout << ip[sco[1].idx] << endl;
^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:103:20: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++)
^
/in/foo.cc:108:20: error: 'n' was not declared in this scope
sort(sco+1,sco+n+1);
^