0_0_27101313_26049\Main.java:1: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_27101313_26049\Main.java:1: 错误: 需要class, interface或enum
#include<cstdio>
^
0_0_27101313_26049\Main.java:2: 错误: 非法字符: '#'
#include<cstring>
^
0_0_27101313_26049\Main.java:3: 错误: 非法字符: '#'
#include<vector>
^
0_0_27101313_26049\Main.java:4: 错误: 非法字符: '#'
#include<cmath>
^
0_0_27101313_26049\Main.java:5: 错误: 非法字符: '#'
#include<iostream>
^
0_0_27101313_26049\Main.java:6: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_27101313_26049\Main.java:7: 错误: 非法字符: '#'
#include<queue>
^
0_0_27101313_26049\Main.java:8: 错误: 非法字符: '#'
#include<set>
^
0_0_27101313_26049\Main.java:9: 错误: 非法字符: '#'
#include<map>
^
0_0_27101313_26049\Main.java:12: 错误: 需要class, interface或enum
const int maxn = 1000 + 10;
^
0_0_27101313_26049\Main.java:13: 错误: 需要class, interface或enum
const int INF = 1e9+10;
^
0_0_27101313_26049\Main.java:14: 错误: 需要class, interface或enum
map<string, int> ID;
^
0_0_27101313_26049\Main.java:15: 错误: 需要class, interface或enum
vector<string> names;
^
0_0_27101313_26049\Main.java:16: 错误: 需要class, interface或enum
int id, n, m, dist[maxn][maxn], vis[maxn];
^
0_0_27101313_26049\Main.java:17: 错误: 需要class, interface或enum
vector<int> con[maxn];
^
0_0_27101313_26049\Main.java:19: 错误: 需要class, interface或enum
int getID(string &s)
^
0_0_27101313_26049\Main.java:22: 错误: 需要class, interface或enum
else return ID[s] = id++;
^
0_0_27101313_26049\Main.java:23: 错误: 需要class, interface或enum
}
^
0_0_27101313_26049\Main.java:28: 错误: 需要class, interface或enum
while(!q.empty()) q.pop();
^
0_0_27101313_26049\Main.java:29: 错误: 需要class, interface或enum
memset(vis, 0, sizeof vis);
^
0_0_27101313_26049\Main.java:30: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) d[i] = INF;
^
0_0_27101313_26049\Main.java:30: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) d[i] = INF;
^
0_0_27101313_26049\Main.java:30: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) d[i] = INF;
^
0_0_27101313_26049\Main.java:31: 错误: 需要class, interface或enum
d[s] = 0;
^
0_0_27101313_26049\Main.java:32: 错误: 需要class, interface或enum
vis[s] = 1;
^
0_0_27101313_26049\Main.java:33: 错误: 需要class, interface或enum
q.push(s);
^
0_0_27101313_26049\Main.java:34: 错误: 需要class, interface或enum
while(!q.empty()) {
^
0_0_27101313_26049\Main.java:35: 错误: 需要class, interface或enum
int m = q.front(); q.pop();
^
0_0_27101313_26049\Main.java:36: 错误: 需要class, interface或enum
for (int i = 0; i < con[m].size(); i++) {
^
0_0_27101313_26049\Main.java:36: 错误: 需要class, interface或enum
for (int i = 0; i < con[m].size(); i++) {
^
0_0_27101313_26049\Main.java:36: 错误: 需要class, interface或enum
for (int i = 0; i < con[m].size(); i++) {
^
0_0_27101313_26049\Main.java:38: 错误: 需要class, interface或enum
if (vis[x]) continue;
^
0_0_27101313_26049\Main.java:39: 错误: 需要class, interface或enum
vis[x] = 1;
^
0_0_27101313_26049\Main.java:40: 错误: 需要class, interface或enum
d[x] = d[m]+1;
^
0_0_27101313_26049\Main.java:41: 错误: 需要class, interface或enum
q.push(x);
^
0_0_27101313_26049\Main.java:42: 错误: 需要class, interface或enum
}
^
0_0_27101313_26049\Main.java:50: 错误: 需要class, interface或enum
names.clear();
^
0_0_27101313_26049\Main.java:51: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) con[i].clear();
^
0_0_27101313_26049\Main.java:51: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) con[i].clear();
^
0_0_27101313_26049\Main.java:51: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) con[i].clear();
^
0_0_27101313_26049\Main.java:52: 错误: 需要class, interface或enum
id = 1;
^
0_0_27101313_26049\Main.java:53: 错误: 需要class, interface或enum
string s;
^
0_0_27101313_26049\Main.java:54: 错误: 需要class, interface或enum
for (int i = 0; i < n; i++) {
^
0_0_27101313_26049\Main.java:54: 错误: 需要class, interface或enum
for (int i = 0; i < n; i++) {
^
0_0_27101313_26049\Main.java:54: 错误: 需要class, interface或enum
for (int i = 0; i < n; i++) {
^
0_0_27101313_26049\Main.java:56: 错误: 需要class, interface或enum
getID(s);
^
0_0_27101313_26049\Main.java:57: 错误: 需要class, interface或enum
}
^
0_0_27101313_26049\Main.java:59: 错误: 需要class, interface或enum
while(m--) {
^
0_0_27101313_26049\Main.java:61: 错误: 需要class, interface或enum
cin >> s1 >> s2;
^
0_0_27101313_26049\Main.java:62: 错误: 需要class, interface或enum
int x = getID(s1), y = getID(s2);
^
0_0_27101313_26049\Main.java:63: 错误: 需要class, interface或enum
con[x].push_back(y);
^
0_0_27101313_26049\Main.java:64: 错误: 需要class, interface或enum
con[y].push_back(x);
^
0_0_27101313_26049\Main.java:65: 错误: 需要class, interface或enum
}
^
0_0_27101313_26049\Main.java:66: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) bfs(i, dist[i]);
^
0_0_27101313_26049\Main.java:66: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) bfs(i, dist[i]);
^
0_0_27101313_26049\Main.java:67: 错误: 需要class, interface或enum
int ans = -1;
^
0_0_27101313_26049\Main.java:68: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_27101313_26049\Main.java:68: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_27101313_26049\Main.java:68: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_27101313_26049\Main.java:69: 错误: 需要class, interface或enum
for (int j = i+1; j <= n; j++)
^
0_0_27101313_26049\Main.java:69: 错误: 需要class, interface或enum
for (int j = i+1; j <= n; j++)
^
0_0_27101313_26049\Main.java:71: 错误: 需要class, interface或enum
printf("%d\n",ans == INF ? -1 : ans);
^
0_0_27101313_26049\Main.java:72: 错误: 需要class, interface或enum
}
^
64 个错误
|