/in/foo.cc:3:7: error: 'll' does not name a type
const ll maxn=100010;
^~
/in/foo.cc:4:1: error: 'll' does not name a type
ll n,tot=1,k,flag,head[maxn],vis[maxn],dis[maxn];
^~
/in/foo.cc:8:5: error: 'll' does not name a type
ll v,w,nxt;
^~
/in/foo.cc:9:4: error: 'maxn' was not declared in this scope
}e[maxn*2];
^~~~
/in/foo.cc:10:8: error: 'll' does not name a type
inline ll read()
^~
/in/foo.cc:17:10: error: variable or field 'add' declared void
void add(ll u,ll v,ll w)
^~
/in/foo.cc:17:10: error: 'll' was not declared in this scope
/in/foo.cc:17:15: error: 'll' was not declared in this scope
void add(ll u,ll v,ll w)
^~
/in/foo.cc:17:20: error: 'll' was not declared in this scope
void add(ll u,ll v,ll w)
^~
/in/foo.cc: In function 'bool spfa()':
/in/foo.cc:26:9: error: 'll' was not declared in this scope
for(ll i=1;i<=n;i++)
^~
/in/foo.cc:26:16: error: 'i' was not declared in this scope
for(ll i=1;i<=n;i++)
^
/in/foo.cc:26:19: error: 'n' was not declared in this scope
for(ll i=1;i<=n;i++)
^
/in/foo.cc:27:15: error: 'vis' was not declared in this scope
s.push(i),vis[i]=dis[i]=1;
^~~
/in/foo.cc:27:22: error: 'dis' was not declared in this scope
s.push(i),vis[i]=dis[i]=1;
^~~
/in/foo.cc:30:9: error: 'll' was not declared in this scope
ll u=s.front();s.pop();
^~
/in/foo.cc:31:12: error: 'dis' was not declared in this scope
if(dis[u]>n)
^~~
/in/foo.cc:31:16: error: 'u' was not declared in this scope
if(dis[u]>n)
^
/in/foo.cc:31:19: error: 'n' was not declared in this scope
if(dis[u]>n)
^
/in/foo.cc:35:16: error: expected ';' before 'i'
for(ll i=head[u];i;i=e[i].nxt)
^
/in/foo.cc:35:26: error: 'i' was not declared in this scope
for(ll i=head[u];i;i=e[i].nxt)
^
/in/foo.cc:35:30: error: 'e' was not declared in this scope
for(ll i=head[u];i;i=e[i].nxt)
^
/in/foo.cc:37:16: error: expected ';' before 'j'
ll j=e[i].v;
^
/in/foo.cc:38:16: error: 'dis' was not declared in this scope
if(dis[u]+e[i].w>dis[j])
^~~
/in/foo.cc:38:20: error: 'u' was not declared in this scope
if(dis[u]+e[i].w>dis[j])
^
/in/foo.cc:38:34: error: 'j' was not declared in this scope
if(dis[u]+e[i].w>dis[j])
^
/in/foo.cc:41:21: error: 'vis' was not declared in this scope
if(!vis[j]) s.push(j),vis[j]=true;
^~~
/in/foo.cc:44:9: error: 'vis' was not declared in this scope
vis[u]=false;
^~~
/in/foo.cc:44:13: error: 'u' was not declared in this scope
vis[u]=false;
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:50:2: error: 'n' was not declared in this scope
n=read();
^
/in/foo.cc:50:9: error: 'read' was not declared in this scope
n=read();
^
/in/foo.cc:51:5: error: 'k' was not declared in this scope
k=read();
^
/in/foo.cc:52:5: error: 'll' was not declared in this scope
ll x,a,b;
^~
/in/foo.cc:55:9: error: 'x' was not declared in this scope
x=read();
^
/in/foo.cc:56:9: error: 'a' was not declared in this scope
a=read();
^
/in/foo.cc:57:9: error: 'b' was not declared in this scope
b=read();
^
/in/foo.cc:60:29: error: 'add' was not declared in this scope
case 1:add(a,b,0),add(b,a,0);break;
^
/in/foo.cc:61:40: error: 'flag' was not declared in this scope
case 2:add(a,b,1);if(a==b) flag=true;break;
^~~~
/in/foo.cc:63:40: error: 'flag' was not declared in this scope
case 4:add(b,a,1);if(a==b) flag=true;break;
^~~~
/in/foo.cc:67:8: error: 'flag' was not declared in this scope
if(flag||spfa())
^~~~
/in/foo.cc:73:12: error: expected ';' before 'x'
ll x=0;
^
/in/foo.cc:74:16: error: expected ';' before 'i'
for(ll i=1;i<=n;i++)
^
/in/foo.cc:74:20: error: 'i' was not declared in this scope
for(ll i=1;i<=n;i++)
^
/in/foo.cc:76:13: error: 'x' was not declared in this scope
x+=dis[i];
^
/in/foo.cc:76:16: error: 'dis' was not declared in this scope
x+=dis[i];
^~~
/in/foo.cc:78:15: error: 'x' was not declared in this scope
cout<<x<<endl;
^