0_0_14247194_7426.cpp:44:9: error: 'N' was not declared in this scope
int num[N];
^
0_0_14247194_7426.cpp: In function 'int spfa()':
0_0_14247194_7426.cpp:50:10: error: 'num' was not declared in this scope
mset(num,INF);
^
0_0_14247194_7426.cpp:13:26: note: in definition of macro 'mset'
#define mset(A,B) memset(A,B,sizeof(A))
^
0_0_14247194_7426.cpp:61:24: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++)
^
0_0_14247194_7426.cpp:63:21: error: expected primary-expression before '[' token
if(!edge[at][i])continue;
^
0_0_14247194_7426.cpp:64:35: error: expected primary-expression before '[' token
int tmp = dis[at]+edge[at][i];
^
0_0_14247194_7426.cpp:71:36: error: expected primary-expression before '[' token
dis[i]=dis[at]+edge[at][i];
^
0_0_14247194_7426.cpp:78:16: error: 'n' was not declared in this scope
return dis[n];
^
|