0_0_26295450_5919.cpp:7:21: error: expected ']' before ';' token
#define maxn 0xfffff;
^
0_0_26295450_5919.cpp:17:9: note: in expansion of macro 'maxn'
int pre[maxn];
^
0_0_26295450_5919.cpp:17:13: error: expected unqualified-id before ']' token
int pre[maxn];
^
0_0_26295450_5919.cpp:7:21: error: expected ']' before ';' token
#define maxn 0xfffff;
^
0_0_26295450_5919.cpp:18:11: note: in expansion of macro 'maxn'
int first[maxn];
^
0_0_26295450_5919.cpp:18:15: error: expected unqualified-id before ']' token
int first[maxn];
^
0_0_26295450_5919.cpp:7:21: error: expected ']' before ';' token
#define maxn 0xfffff;
^
0_0_26295450_5919.cpp:20:9: note: in expansion of macro 'maxn'
int dis[maxn];
^
0_0_26295450_5919.cpp:20:13: error: expected unqualified-id before ']' token
int dis[maxn];
^
0_0_26295450_5919.cpp:7:21: error: expected ']' before ';' token
#define maxn 0xfffff;
^
0_0_26295450_5919.cpp:21:11: note: in expansion of macro 'maxn'
int visit[maxn];
^
0_0_26295450_5919.cpp:21:15: error: expected unqualified-id before ']' token
int visit[maxn];
^
0_0_26295450_5919.cpp: In function 'void add(int, int, int, int)':
0_0_26295450_5919.cpp:27:15: error: 'first' was not declared in this scope
e[cnt].next=first[u];
^
0_0_26295450_5919.cpp: In function 'int spfa()':
0_0_26295450_5919.cpp:40:3: error: 'dis' was not declared in this scope
dis[i]=INF;
^
0_0_26295450_5919.cpp:40:10: error: 'INF' was not declared in this scope
dis[i]=INF;
^
0_0_26295450_5919.cpp:41:3: error: 'pre' was not declared in this scope
pre[i]=-1;
^
0_0_26295450_5919.cpp:42:3: error: 'visit' was not declared in this scope
visit[i]=0;
^
0_0_26295450_5919.cpp:46:2: error: 'visit' was not declared in this scope
visit[0]=1;
^
0_0_26295450_5919.cpp:47:2: error: 'dis' was not declared in this scope
dis[0]=0;
^
0_0_26295450_5919.cpp:52:15: error: 'first' was not declared in this scope
for(i=first[a];i!=-1;i=e[i].next) {
^
0_0_26295450_5919.cpp:56:5: error: 'pre' was not declared in this scope
pre[to]=i;
^
0_0_26295450_5919.cpp:65:19: error: 'INF' was not declared in this scope
if(dis[tot*2-1]==INF) return 0;
^
0_0_26295450_5919.cpp: In function 'void solve()':
0_0_26295450_5919.cpp:72:12: error: 'pre' was not declared in this scope
for(i=pre[tot*2-1];i!=-1;i=pre[e[i].u])
^
0_0_26295450_5919.cpp:77:8: error: 'dis' was not declared in this scope
MIN+=dis[tot*2-1];
^
0_0_26295450_5919.cpp: In function 'int main()':
0_0_26295450_5919.cpp:7:21: error: expected ']' before ';' token
#define maxn 0xfffff;
^
0_0_26295450_5919.cpp:82:12: note: in expansion of macro 'maxn'
char str[maxn];
^
0_0_26295450_5919.cpp:82:16: error: expected primary-expression before ']' token
char str[maxn];
^
0_0_26295450_5919.cpp:87:12: error: 'first' was not declared in this scope
memset(first,-1,sizeof(first));
^
0_0_26295450_5919.cpp:89:17: error: 'str' was not declared in this scope
scanf("%s",str);
^
|