/in/foo.cc: In function 'int main()':
/in/foo.cc:128:9: warning: 'lastdis' may be used uninitialized in this function [-Wmaybe-uninitialized]
addedge(root, end, lastdis);
~~~~~~~^~~~~~~~~~~~~~~~~~~~
/in/foo.cc:45:53: warning: 'end' may be used uninitialized in this function [-Wmaybe-uninitialized]
to[edges] = u; wei[edges] = w; next[edges] = head[v];
~~~~~~^
/in/foo.cc:103:12: note: 'end' was declared here
int root, end, lastdis;
^~~
/in/foo.cc:130:21: warning: 'root' may be used uninitialized in this function [-Wmaybe-uninitialized]
for(int u = end; u != root; u = fa[u])
~~^~~~~~~
ValueError("invalid literal for int() with base 10: 'foodship1.in|foodship1.ans|1|10|128000\\n'",)