/in/foo.cc:3:1: warning: 'typedef' was ignored in this declaration
typedef struct Edge
^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:22:17: error: 'INFINITY' was not declared in this scope
distance[i] = INFINITY;
^~~~~~~~
/in/foo.cc:22:17: note: suggested alternative: 'NFDBITS'
distance[i] = INFINITY;
^~~~~~~~
NFDBITS
/in/foo.cc:29:17: error: 'INFINITY' was not declared in this scope
distance[i] = INFINITY;
^~~~~~~~
/in/foo.cc:29:17: note: suggested alternative: 'NFDBITS'
distance[i] = INFINITY;
^~~~~~~~
NFDBITS
/in/foo.cc:39:28: error: 'INFINITY' was not declared in this scope
if (distance[e[i].s] != INFINITY && distance[e[i].t] >(distance[e[i].s] + e[i].cost))
^~~~~~~~
/in/foo.cc:39:28: note: suggested alternative: 'NFDBITS'
if (distance[e[i].s] != INFINITY && distance[e[i].t] >(distance[e[i].s] + e[i].cost))
^~~~~~~~
NFDBITS
/in/foo.cc:11:12: warning: unused variable 'result' [-Wunused-variable]
int i, n, result = 1, j = 0, s, t;
^~~~~~
/in/foo.cc:11:24: warning: unused variable 'j' [-Wunused-variable]
int i, n, result = 1, j = 0, s, t;
^