0_0_29615160_11518.cpp:5:13: error: expected primary-expression before '=' token
#define Max = 10086;
^
0_0_29615160_11518.cpp:7:7: note: in expansion of macro 'Max'
int g[Max][Max],d[Max];
^
0_0_29615160_11518.cpp:5:20: error: expected ']' before ';' token
#define Max = 10086;
^
0_0_29615160_11518.cpp:7:7: note: in expansion of macro 'Max'
int g[Max][Max],d[Max];
^
0_0_29615160_11518.cpp:7:10: error: expected unqualified-id before ']' token
int g[Max][Max],d[Max];
^
0_0_29615160_11518.cpp:7:15: error: expected unqualified-id before ']' token
int g[Max][Max],d[Max];
^
0_0_29615160_11518.cpp:7:22: error: expected unqualified-id before ']' token
int g[Max][Max],d[Max];
^
0_0_29615160_11518.cpp:5:13: error: expected primary-expression before '=' token
#define Max = 10086;
^
0_0_29615160_11518.cpp:8:10: note: in expansion of macro 'Max'
int cost[Max][Max];
^
0_0_29615160_11518.cpp:5:20: error: expected ']' before ';' token
#define Max = 10086;
^
0_0_29615160_11518.cpp:8:10: note: in expansion of macro 'Max'
int cost[Max][Max];
^
0_0_29615160_11518.cpp:8:13: error: expected unqualified-id before ']' token
int cost[Max][Max];
^
0_0_29615160_11518.cpp:8:18: error: expected unqualified-id before ']' token
int cost[Max][Max];
^
0_0_29615160_11518.cpp:5:13: error: expected primary-expression before '=' token
#define Max = 10086;
^
0_0_29615160_11518.cpp:9:8: note: in expansion of macro 'Max'
int co[Max];
^
0_0_29615160_11518.cpp:5:20: error: expected ']' before ';' token
#define Max = 10086;
^
0_0_29615160_11518.cpp:9:8: note: in expansion of macro 'Max'
int co[Max];
^
0_0_29615160_11518.cpp:9:11: error: expected unqualified-id before ']' token
int co[Max];
^
0_0_29615160_11518.cpp:11:8: error: 'maxn' was not declared in this scope
bool v[maxn];
^
0_0_29615160_11518.cpp: In function 'void dijkstra(int)':
0_0_29615160_11518.cpp:13:12: error: 'v' was not declared in this scope
memset(v,0,sizeof v);
^
0_0_29615160_11518.cpp:14:33: error: 'd' was not declared in this scope
for (int i = 0; i <= n; ++i)d[i] = (i == s ? 0 : INF),co[i] = INF;
^
0_0_29615160_11518.cpp:6:13: error: expected primary-expression before '=' token
#define INF = 100086;
^
0_0_29615160_11518.cpp:14:54: note: in expansion of macro 'INF'
for (int i = 0; i <= n; ++i)d[i] = (i == s ? 0 : INF),co[i] = INF;
^
0_0_29615160_11518.cpp:6:21: error: expected ')' before ';' token
#define INF = 100086;
^
0_0_29615160_11518.cpp:14:54: note: in expansion of macro 'INF'
for (int i = 0; i <= n; ++i)d[i] = (i == s ? 0 : INF),co[i] = INF;
^
0_0_29615160_11518.cpp:14:57: error: expected primary-expression before ')' token
for (int i = 0; i <= n; ++i)d[i] = (i == s ? 0 : INF),co[i] = INF;
^
0_0_29615160_11518.cpp:15:5: error: 'co' was not declared in this scope
co[s] = d[s] = 0;
^
0_0_29615160_11518.cpp:15:13: error: 'd' was not declared in this scope
co[s] = d[s] = 0;
^
0_0_29615160_11518.cpp:6:13: error: expected primary-expression before '=' token
#define INF = 100086;
^
0_0_29615160_11518.cpp:17:19: note: in expansion of macro 'INF'
int x,m = INF;
^
0_0_29615160_11518.cpp:21:31: error: 'g' was not declared in this scope
if (d[y] > d[x] + g[x][y]){
^
0_0_29615160_11518.cpp:23:33: error: 'cost' was not declared in this scope
co[y] = co[x] + cost[x][y];
^
0_0_29615160_11518.cpp:25:64: error: 'cost' was not declared in this scope
else if (d[y] == d[x] + g[x][y] && co[y] > co[x] + cost[x][y]){
^
0_0_29615160_11518.cpp: In function 'int main()':
0_0_29615160_11518.cpp:35:17: error: 'g' was not declared in this scope
g[i][j] = INF,cost[i][j] = INF;
^
0_0_29615160_11518.cpp:6:13: error: expected primary-expression before '=' token
#define INF = 100086;
^
0_0_29615160_11518.cpp:35:27: note: in expansion of macro 'INF'
g[i][j] = INF,cost[i][j] = INF;
^
0_0_29615160_11518.cpp:35:30: error: expected primary-expression before ',' token
g[i][j] = INF,cost[i][j] = INF;
^
0_0_29615160_11518.cpp:35:31: error: 'cost' was not declared in this scope
g[i][j] = INF,cost[i][j] = INF;
^
0_0_29615160_11518.cpp:35:36: error: 'i' was not declared in this scope
g[i][j] = INF,cost[i][j] = INF;
^
0_0_29615160_11518.cpp:35:39: error: 'j' was not declared in this scope
g[i][j] = INF,cost[i][j] = INF;
^
0_0_29615160_11518.cpp:6:13: error: expected primary-expression before '=' token
#define INF = 100086;
^
0_0_29615160_11518.cpp:35:44: note: in expansion of macro 'INF'
g[i][j] = INF,cost[i][j] = INF;
^
0_0_29615160_11518.cpp:39:17: error: 'g' was not declared in this scope
if (g[u][v] > w){
^
0_0_29615160_11518.cpp:49:26: error: 'd' was not declared in this scope
printf("%d %d\n",d[e],co[e]);
^
0_0_29615160_11518.cpp:49:31: error: 'co' was not declared in this scope
printf("%d %d\n",d[e],co[e]);
^
|