0_0_29454010_4391\Main.java:1: 错误: 非法字符: '#'
#include <stdio.h>
^
0_0_29454010_4391\Main.java:1: 错误: 需要class, interface或enum
#include <stdio.h>
^
0_0_29454010_4391\Main.java:2: 错误: 非法字符: '#'
#include <string.h>
^
0_0_29454010_4391\Main.java:3: 错误: 非法字符: '#'
#include <string>
^
0_0_29454010_4391\Main.java:4: 错误: 非法字符: '#'
#include <map>
^
0_0_29454010_4391\Main.java:5: 错误: 非法字符: '#'
#include <vector>
^
0_0_29454010_4391\Main.java:6: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_29454010_4391\Main.java:8: 错误: 非法字符: '#'
#define MIN 30
^
0_0_29454010_4391\Main.java:8: 错误: 需要class, interface或enum
#define MIN 30
^
0_0_29454010_4391\Main.java:9: 错误: 非法字符: '#'
#define MAX 300
^
0_0_29454010_4391\Main.java:10: 错误: 非法字符: '#'
#define max(a,b) (a)>(b)?(a):(b)
^
0_0_29454010_4391\Main.java:16: 错误: 需要class, interface或enum
}ver[MAX];
^
0_0_29454010_4391\Main.java:18: 错误: 需要class, interface或enum
vector<int> maze[MIN];
^
0_0_29454010_4391\Main.java:19: 错误: 需要class, interface或enum
map<string,int> mmap;
^
0_0_29454010_4391\Main.java:21: 错误: 需要class, interface或enum
int n,result,flag,maybe[MIN][4];
^
0_0_29454010_4391\Main.java:22: 错误: 需要class, interface或enum
int beg,end,maxx,tot,fa[MIN],vis[MIN];
^
0_0_29454010_4391\Main.java:23: 错误: 需要class, interface或enum
char str[MAX][MIN],ans[MAX][MIN];
^
0_0_29454010_4391\Main.java:26: 错误: 需要class, interface或enum
int cmp(node a,node b) {
^
0_0_29454010_4391\Main.java:30: 错误: 需要class, interface或enum
else return strcmp(a.s1,b.s1) < 0;
^
0_0_29454010_4391\Main.java:31: 错误: 需要class, interface或enum
}
^
0_0_29454010_4391\Main.java:35: 错误: 需要class, interface或enum
while (y != fa[y]) y = fa[y];
^
0_0_29454010_4391\Main.java:36: 错误: 需要class, interface或enum
return y;
^
0_0_29454010_4391\Main.java:37: 错误: 需要class, interface或enum
}
^
0_0_29454010_4391\Main.java:41: 错误: 需要class, interface或enum
int fav = GetFa(v);
^
0_0_29454010_4391\Main.java:42: 错误: 需要class, interface或enum
if (fav != fau) fa[fau] =fav;
^
0_0_29454010_4391\Main.java:43: 错误: 需要class, interface或enum
}
^
0_0_29454010_4391\Main.java:47: 错误: 需要class, interface或enum
for (i = 1; i <= 2 * n; ++i) {
^
0_0_29454010_4391\Main.java:47: 错误: 需要class, interface或enum
for (i = 1; i <= 2 * n; ++i) {
^
0_0_29454010_4391\Main.java:47: 错误: 需要class, interface或enum
for (i = 1; i <= 2 * n; ++i) {
^
0_0_29454010_4391\Main.java:50: 错误: 需要class, interface或enum
string tps2 = string(ver[i].s2);
^
0_0_29454010_4391\Main.java:51: 错误: 需要class, interface或enum
if (mmap.find(tps1) == mmap.end())
^
0_0_29454010_4391\Main.java:53: 错误: 需要class, interface或enum
else u = mmap[tps1];
^
0_0_29454010_4391\Main.java:54: 错误: 需要class, interface或enum
if (mmap.find(tps2) == mmap.end())
^
0_0_29454010_4391\Main.java:56: 错误: 需要class, interface或enum
else v = mmap[tps2];
^
0_0_29454010_4391\Main.java:57: 错误: 需要class, interface或enum
maze[u].push_back(v);
^
0_0_29454010_4391\Main.java:60: 错误: 需要class, interface或enum
UnionSet(u,v);
^
0_0_29454010_4391\Main.java:61: 错误: 需要class, interface或enum
strcpy(str[u],ver[i].s1);
^
0_0_29454010_4391\Main.java:62: 错误: 需要class, interface或enum
strcpy(str[v],ver[i].s2);
^
0_0_29454010_4391\Main.java:63: 错误: 需要class, interface或enum
if (tps1 == "sea") beg = u;
^
0_0_29454010_4391\Main.java:64: 错误: 需要class, interface或enum
else if (tps2 == "sea") beg = v;
^
0_0_29454010_4391\Main.java:65: 错误: 需要class, interface或enum
if (tps1 == "sky") end = u;
^
0_0_29454010_4391\Main.java:66: 错误: 需要class, interface或enum
else if (tps2 == "sky") end = v;
^
0_0_29454010_4391\Main.java:67: 错误: 需要class, interface或enum
}
^
0_0_29454010_4391\Main.java:74: 错误: 需要class, interface或enum
if (k == flag) return;
^
0_0_29454010_4391\Main.java:75: 错误: 需要class, interface或enum
for (int i = 0; i < maze[k].size(); ++i) {
^
0_0_29454010_4391\Main.java:75: 错误: 需要class, interface或enum
for (int i = 0; i < maze[k].size(); ++i) {
^
0_0_29454010_4391\Main.java:75: 错误: 需要class, interface或enum
for (int i = 0; i < maze[k].size(); ++i) {
^
0_0_29454010_4391\Main.java:78: 错误: 需要class, interface或enum
if (vis[v]) continue;
^
0_0_29454010_4391\Main.java:79: 错误: 需要class, interface或enum
LookConn(v,flag,in);
^
0_0_29454010_4391\Main.java:80: 错误: 需要class, interface或enum
}
^
0_0_29454010_4391\Main.java:85: 错误: 需要class, interface或enum
if (k == end) {
^
0_0_29454010_4391\Main.java:90: 错误: 需要class, interface或enum
for (int i = 1; i <= maxx; ++i)
^
0_0_29454010_4391\Main.java:90: 错误: 需要class, interface或enum
for (int i = 1; i <= maxx; ++i)
^
0_0_29454010_4391\Main.java:90: 错误: 需要class, interface或enum
for (int i = 1; i <= maxx; ++i)
^
0_0_29454010_4391\Main.java:92: 错误: 需要class, interface或enum
}
^
0_0_29454010_4391\Main.java:94: 错误: 需要class, interface或enum
return;
^
0_0_29454010_4391\Main.java:95: 错误: 需要class, interface或enum
}
^
0_0_29454010_4391\Main.java:98: 错误: 需要class, interface或enum
for (int i = 0; i < maze[k].size(); ++i) {
^
0_0_29454010_4391\Main.java:98: 错误: 需要class, interface或enum
for (int i = 0; i < maze[k].size(); ++i) {
^
0_0_29454010_4391\Main.java:101: 错误: 需要class, interface或enum
if (vis[v] == 0 && maybe[v][2] == 1) {
^
0_0_29454010_4391\Main.java:104: 错误: 需要class, interface或enum
Dfs(v,cnt+1,vis,arr);
^
0_0_29454010_4391\Main.java:105: 错误: 需要class, interface或enum
if (flag) return;
^
0_0_29454010_4391\Main.java:106: 错误: 需要class, interface或enum
vis[v] = 0;
^
0_0_29454010_4391\Main.java:107: 错误: 需要class, interface或enum
}
^
0_0_29454010_4391\Main.java:115: 错误: 需要class, interface或enum
memset(maybe,0,sizeof(maybe));
^
0_0_29454010_4391\Main.java:116: 错误: 需要class, interface或enum
memset(vis,0,sizeof(vis));
^
0_0_29454010_4391\Main.java:117: 错误: 需要class, interface或enum
LookConn(beg,end,0);
^
0_0_29454010_4391\Main.java:118: 错误: 需要class, interface或enum
memset(vis,0,sizeof(vis));
^
0_0_29454010_4391\Main.java:119: 错误: 需要class, interface或enum
LookConn(end,beg,1);
^
0_0_29454010_4391\Main.java:120: 错误: 需要class, interface或enum
result = 0;
^
0_0_29454010_4391\Main.java:121: 错误: 需要class, interface或enum
for (i = 1; i <= tot; ++i) {
^
0_0_29454010_4391\Main.java:121: 错误: 需要class, interface或enum
for (i = 1; i <= tot; ++i) {
^
0_0_29454010_4391\Main.java:121: 错误: 需要class, interface或enum
for (i = 1; i <= tot; ++i) {
^
0_0_29454010_4391\Main.java:125: 错误: 需要class, interface或enum
if (maybe[i][2]) result++;
^
0_0_29454010_4391\Main.java:126: 错误: 需要class, interface或enum
}
^
0_0_29454010_4391\Main.java:130: 错误: 需要class, interface或enum
Dfs(beg,1,vis,arr);
^
0_0_29454010_4391\Main.java:131: 错误: 需要class, interface或enum
return maxx;
^
0_0_29454010_4391\Main.java:132: 错误: 需要class, interface或enum
}
^
0_0_29454010_4391\Main.java:139: 错误: 需要class, interface或enum
int i,j,k,t,cas = 0;
^
0_0_29454010_4391\Main.java:142: 错误: 需要class, interface或enum
scanf("%d",&t);
^
0_0_29454010_4391\Main.java:143: 错误: 需要class, interface或enum
while (t--) {
^
0_0_29454010_4391\Main.java:146: 错误: 需要class, interface或enum
mmap.clear();
^
0_0_29454010_4391\Main.java:147: 错误: 需要class, interface或enum
flag = maxx = 0;
^
0_0_29454010_4391\Main.java:148: 错误: 需要class, interface或enum
tot = beg = end = 0;
^
0_0_29454010_4391\Main.java:149: 错误: 需要class, interface或enum
for (i = 1; i < MIN; ++i)
^
0_0_29454010_4391\Main.java:149: 错误: 需要class, interface或enum
for (i = 1; i < MIN; ++i)
^
0_0_29454010_4391\Main.java:149: 错误: 需要class, interface或enum
for (i = 1; i < MIN; ++i)
^
0_0_29454010_4391\Main.java:153: 错误: 需要class, interface或enum
for (i = 1; i <= n; ++i) {
^
0_0_29454010_4391\Main.java:153: 错误: 需要class, interface或enum
for (i = 1; i <= n; ++i) {
^
0_0_29454010_4391\Main.java:153: 错误: 需要class, interface或enum
for (i = 1; i <= n; ++i) {
^
0_0_29454010_4391\Main.java:156: 错误: 需要class, interface或enum
strcpy(ver[i+n].s1,ver[i].s2);
|