0_0_36679004_3737.cpp:51:1: error: expected initializer before 'int'
int i;
^
0_0_36679004_3737.cpp:52:1: error: expected unqualified-id before 'for'
for(i=s;i<=t;i++) dis[i]=inf;
^
0_0_36679004_3737.cpp:52:9: error: 'i' does not name a type
for(i=s;i<=t;i++) dis[i]=inf;
^
0_0_36679004_3737.cpp:52:14: error: 'i' does not name a type
for(i=s;i<=t;i++) dis[i]=inf;
^
0_0_36679004_3737.cpp:53:7: error: expected constructor, destructor, or type conversion before '(' token
memset(vis,0,sizeof(vis));
^
0_0_36679004_3737.cpp:54:7: error: expected constructor, destructor, or type conversion before '(' token
memset(pre,-1,sizeof(pre));
^
0_0_36679004_3737.cpp:55:1: error: 'dis' does not name a type
dis[s] = 0;
^
0_0_36679004_3737.cpp:57:1: error: 'q' does not name a type
q.push(s);
^
0_0_36679004_3737.cpp:58:1: error: 'vis' does not name a type
vis[s] =1;
^
0_0_36679004_3737.cpp:59:1: error: expected unqualified-id before 'while'
while(!q.empty())
^
|