/in/foo.cc:68:1: error: expected '}' at end of input
}
^
/in/foo.cc: In member function 'void node::add(int, int, int)':
/in/foo.cc:13:5: error: 'e' was not declared in this scope
e[++cnt]=(node){to,head[from],w};
^
/in/foo.cc: In member function 'void node::spfa()':
/in/foo.cc:32:33: error: 'e' was not declared in this scope
for(int i=head[now];i;i=e[i].nxt)
^
/in/foo.cc: In member function 'int node::main()':
/in/foo.cc:55:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(x==2) if(a==b) {printf("-1\n");return 0;}else add(a,b,1);
^
/in/foo.cc:64:3: error: 'ans' was not declared in this scope
ans+=dis[i];
^~~
/in/foo.cc:66:16: error: 'ans' was not declared in this scope
printf("%lld",ans);
^~~
/in/foo.cc: At global scope:
/in/foo.cc:68:1: error: expected unqualified-id at end of input
}
^