0_0_15122056_19466\Main.java:2: 错误: 非法字符: '#'
#pragma comment(linker, "/STACK:102400000,102400000")
^
0_0_15122056_19466\Main.java:2: 错误: 需要class, interface或enum
#pragma comment(linker, "/STACK:102400000,102400000")
^
0_0_15122056_19466\Main.java:3: 错误: 非法字符: '#'
#include
^
0_0_15122056_19466\Main.java:4: 错误: 非法字符: '#'
#include
^
0_0_15122056_19466\Main.java:6: 错误: 需要class, interface或enum
const int EM = 1000005;
^
0_0_15122056_19466\Main.java:8: 错误: 需要class, interface或enum
struct Edeg
^
0_0_15122056_19466\Main.java:11: 错误: 需要class, interface或enum
}edge[EM<<1],tree[EM<<1];
^
0_0_15122056_19466\Main.java:13: 错误: 需要class, interface或enum
int head[VM],vis[VM],thead[VM];
^
0_0_15122056_19466\Main.java:14: 错误: 需要class, interface或enum
int dfn[VM],low[VM],stack[VM],belong[VM];
^
0_0_15122056_19466\Main.java:15: 错误: 需要class, interface或enum
int ep,bridge,son,maxn,src,n,cnt,scc,top;
^
0_0_15122056_19466\Main.java:17: 错误: 需要class, interface或enum
int max (int a,int b)
^
0_0_15122056_19466\Main.java:20: 错误: 需要class, interface或enum
}
^
0_0_15122056_19466\Main.java:24: 错误: 需要class, interface或enum
}
^
0_0_15122056_19466\Main.java:28: 错误: 需要class, interface或enum
edge[ep].vis = 0;
^
0_0_15122056_19466\Main.java:29: 错误: 需要class, interface或enum
edge[ep].nxt = head[cu];
^
0_0_15122056_19466\Main.java:30: 错误: 需要class, interface或enum
head[cu] = ep ++;
^
0_0_15122056_19466\Main.java:31: 错误: 需要class, interface或enum
edge[ep].to = cu;
^
0_0_15122056_19466\Main.java:32: 错误: 需要class, interface或enum
edge[ep].vis = 0;
^
0_0_15122056_19466\Main.java:33: 错误: 需要class, interface或enum
edge[ep].nxt = head[cv];
^
0_0_15122056_19466\Main.java:34: 错误: 需要class, interface或enum
head[cv] = ep ++;
^
0_0_15122056_19466\Main.java:35: 错误: 需要class, interface或enum
}
^
0_0_15122056_19466\Main.java:39: 错误: 需要class, interface或enum
tree[son].nxt = thead[cu];
^
0_0_15122056_19466\Main.java:40: 错误: 需要class, interface或enum
thead[cu] = son ++;
^
0_0_15122056_19466\Main.java:41: 错误: 需要class, interface或enum
}
^
0_0_15122056_19466\Main.java:45: 错误: 需要class, interface或enum
vis[u] = 1;
^
0_0_15122056_19466\Main.java:46: 错误: 需要class, interface或enum
dfn[u] = low[u] = ++cnt;
^
0_0_15122056_19466\Main.java:47: 错误: 需要class, interface或enum
stack[top++] = u;
^
0_0_15122056_19466\Main.java:48: 错误: 需要class, interface或enum
for (int i = head[u];i != -1;i = edge[i].nxt)
^
0_0_15122056_19466\Main.java:48: 错误: 需要class, interface或enum
for (int i = head[u];i != -1;i = edge[i].nxt)
^
0_0_15122056_19466\Main.java:48: 错误: 需要class, interface或enum
for (int i = head[u];i != -1;i = edge[i].nxt)
^
0_0_15122056_19466\Main.java:51: 错误: 需要class, interface或enum
if (edge[i].vis) continue; //
^
0_0_15122056_19466\Main.java:52: 错误: 需要class, interface或enum
edge[i].vis = edge[i^1].vis = 1; //正向边访问过了,反向边得标志,否则两点会成一块。
^
0_0_15122056_19466\Main.java:53: 错误: 需要class, interface或enum
if (vis[v] == 1)
^
0_0_15122056_19466\Main.java:55: 错误: 需要class, interface或enum
if (!vis[v])
^
0_0_15122056_19466\Main.java:58: 错误: 需要class, interface或enum
low[u] = min(low[u],low[v]);
^
0_0_15122056_19466\Main.java:59: 错误: 需要class, interface或enum
if (low[v] > dfn[u])
^
0_0_15122056_19466\Main.java:61: 错误: 需要class, interface或enum
}
^
0_0_15122056_19466\Main.java:66: 错误: 需要class, interface或enum
do{
^
0_0_15122056_19466\Main.java:68: 错误: 需要class, interface或enum
vis[v] = 0;
^
0_0_15122056_19466\Main.java:69: 错误: 需要class, interface或enum
belong[v] = scc;
^
0_0_15122056_19466\Main.java:70: 错误: 需要class, interface或enum
}while (u != v);
^
0_0_15122056_19466\Main.java:71: 错误: 需要class, interface或enum
}
^
0_0_15122056_19466\Main.java:76: 错误: 需要class, interface或enum
int front ,rear,i,v;
^
0_0_15122056_19466\Main.java:77: 错误: 需要class, interface或enum
front = rear = 0;
^
0_0_15122056_19466\Main.java:78: 错误: 需要class, interface或enum
memset (vis,0,sizeof(vis));
^
0_0_15122056_19466\Main.java:79: 错误: 需要class, interface或enum
que[rear++] = u;
^
0_0_15122056_19466\Main.java:80: 错误: 需要class, interface或enum
vis[u] = 1;
^
0_0_15122056_19466\Main.java:81: 错误: 需要class, interface或enum
while (front != rear)
^
0_0_15122056_19466\Main.java:84: 错误: 需要class, interface或enum
front = front % (n+1);
^
0_0_15122056_19466\Main.java:85: 错误: 需要class, interface或enum
for (i = thead[u];i != -1;i = tree[i].nxt)
^
0_0_15122056_19466\Main.java:85: 错误: 需要class, interface或enum
for (i = thead[u];i != -1;i = tree[i].nxt)
^
0_0_15122056_19466\Main.java:85: 错误: 需要class, interface或enum
for (i = thead[u];i != -1;i = tree[i].nxt)
^
0_0_15122056_19466\Main.java:88: 错误: 需要class, interface或enum
if (vis[v]) continue;
^
0_0_15122056_19466\Main.java:89: 错误: 需要class, interface或enum
vis[v] = 1;
^
0_0_15122056_19466\Main.java:90: 错误: 需要class, interface或enum
que[rear++] = v;
^
0_0_15122056_19466\Main.java:91: 错误: 需要class, interface或enum
rear = rear%(n+1);
^
0_0_15122056_19466\Main.java:92: 错误: 需要class, interface或enum
}
^
0_0_15122056_19466\Main.java:95: 错误: 需要class, interface或enum
}
^
0_0_15122056_19466\Main.java:99: 错误: 需要class, interface或enum
vis[u] = 1;
^
0_0_15122056_19466\Main.java:100: 错误: 需要class, interface或enum
for (int i = thead[u]; i != -1; i = tree[i].nxt)
^
0_0_15122056_19466\Main.java:100: 错误: 需要class, interface或enum
for (int i = thead[u]; i != -1; i = tree[i].nxt)
^
0_0_15122056_19466\Main.java:100: 错误: 需要class, interface或enum
for (int i = thead[u]; i != -1; i = tree[i].nxt)
^
0_0_15122056_19466\Main.java:103: 错误: 需要class, interface或enum
if (!vis[v])
^
0_0_15122056_19466\Main.java:105: 错误: 需要class, interface或enum
}
^
0_0_15122056_19466\Main.java:110: 错误: 需要class, interface或enum
memset (vis,0,sizeof(vis));
^
0_0_15122056_19466\Main.java:111: 错误: 需要class, interface或enum
cnt = bridge = scc = top = 0;
^
0_0_15122056_19466\Main.java:112: 错误: 需要class, interface或enum
Tarjan (1);
^
0_0_15122056_19466\Main.java:113: 错误: 需要class, interface或enum
memset (thead,-1,sizeof(thead));
^
0_0_15122056_19466\Main.java:114: 错误: 需要class, interface或enum
son = 0;
^
0_0_15122056_19466\Main.java:115: 错误: 需要class, interface或enum
for (u = 1;u <= n;u ++) //重构图
^
0_0_15122056_19466\Main.java:115: 错误: 需要class, interface或enum
for (u = 1;u <= n;u ++) //重构图
^
0_0_15122056_19466\Main.java:115: 错误: 需要class, interface或enum
for (u = 1;u <= n;u ++) //重构图
^
0_0_15122056_19466\Main.java:116: 错误: 需要class, interface或enum
for (int i = head[u];i != -1;i = edge[i].nxt)
^
0_0_15122056_19466\Main.java:116: 错误: 需要class, interface或enum
for (int i = head[u];i != -1;i = edge[i].nxt)
^
0_0_15122056_19466\Main.java:119: 错误: 需要class, interface或enum
if (belong[u]!=belong[v])
^
0_0_15122056_19466\Main.java:122: 错误: 需要class, interface或enum
Buildtree (belong[v],belong[u]);
^
0_0_15122056_19466\Main.java:123: 错误: 需要class, interface或enum
}
^
0_0_15122056_19466\Main.java:126: 错误: 需要class, interface或enum
BFS(1); //求树直径的一个端点
^
0_0_15122056_19466\Main.java:127: 错误: 需要class, interface或enum
memset (vis,0,sizeof(vis));
^
0_0_15122056_19466\Main.java:128: 错误: 需要class, interface或enum
DFS(src,0); //求树的最长直径
^
0_0_15122056_19466\Main.java:129: 错误: 需要class, interface或enum
printf ("%d\n",bridge-maxn);
^
0_0_15122056_19466\Main.java:130: 错误: 需要class, interface或enum
}
^
0_0_15122056_19466\Main.java:134: 错误: 非法字符: '#'
#ifdef LOCAL
^
0_0_15122056_19466\Main.java:136: 错误: 非法字符: '#'
#endif
^
0_0_15122056_19466\Main.java:137: 错误: 需要class, interface或enum
int m,u,v;
^
0_0_15122056_19466\Main.java:138: 错误: 需要class, interface或enum
while (~scanf ("%d%d",&n,&m))
^
0_0_15122056_19466\Main.java:142: 错误: 需要class, interface或enum
memset (head,-1,sizeof(head));
^
0_0_15122056_19466\Main.java:143: 错误: 需要class, interface或enum
ep = 0;
^
0_0_15122056_19466\Main.java:144: 错误: 需要class, interface或enum
while (m --)
|