0_0_32852544_3440.cpp:35:5: error: expected initializer before 'int'
int i;
^
0_0_32852544_3440.cpp:36:5: error: expected unqualified-id before 'for'
for(i=s;i<=t;i++) dis[i]=inf;
^
0_0_32852544_3440.cpp:36:13: error: 'i' does not name a type
for(i=s;i<=t;i++) dis[i]=inf;
^
0_0_32852544_3440.cpp:36:18: error: 'i' does not name a type
for(i=s;i<=t;i++) dis[i]=inf;
^
0_0_32852544_3440.cpp:37:11: error: expected constructor, destructor, or type conversion before '(' token
memset(vis,0,sizeof(vis));
^
0_0_32852544_3440.cpp:38:11: error: expected constructor, destructor, or type conversion before '(' token
memset(pre,-1,sizeof(pre));
^
0_0_32852544_3440.cpp:39:5: error: 'dis' does not name a type
dis[s] = 0;
^
0_0_32852544_3440.cpp:41:5: error: 'q' does not name a type
q.push(s);
^
0_0_32852544_3440.cpp:42:5: error: 'vis' does not name a type
vis[s] =1;
^
0_0_32852544_3440.cpp:43:2: error: expected unqualified-id before 'while'
while(!q.empty())
^
|