0_0_38833729_12414\Main.java:1: 错误: 非法字符: '#'
#include<cstring>
^
0_0_38833729_12414\Main.java:1: 错误: 需要class, interface或enum
#include<cstring>
^
0_0_38833729_12414\Main.java:2: 错误: 非法字符: '#'
#include<string>
^
0_0_38833729_12414\Main.java:3: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_38833729_12414\Main.java:4: 错误: 非法字符: '#'
#include<stdlib.h>
^
0_0_38833729_12414\Main.java:5: 错误: 非法字符: '#'
#include<iostream>
^
0_0_38833729_12414\Main.java:6: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_38833729_12414\Main.java:7: 错误: 非法字符: '#'
#include<math.h>
^
0_0_38833729_12414\Main.java:8: 错误: 非法字符: '#'
#include<map>
^
0_0_38833729_12414\Main.java:9: 错误: 非法字符: '#'
#include<vector>
^
0_0_38833729_12414\Main.java:10: 错误: 非法字符: '#'
#include<stack>
^
0_0_38833729_12414\Main.java:11: 错误: 非法字符: '#'
#define inf 0x3f3f3f3f
^
0_0_38833729_12414\Main.java:12: 错误: 非法字符: '#'
#include<queue>
^
0_0_38833729_12414\Main.java:13: 错误: 非法字符: '#'
#include<set>
^
0_0_38833729_12414\Main.java:15: 错误: 需要class, interface或enum
typedef long long ll;
^
0_0_38833729_12414\Main.java:16: 错误: 需要class, interface或enum
const int N=205;
^
0_0_38833729_12414\Main.java:18: 错误: 需要class, interface或enum
struct nod
^
0_0_38833729_12414\Main.java:21: 错误: 需要class, interface或enum
};
^
0_0_38833729_12414\Main.java:23: 错误: 需要class, interface或enum
struct node
^
0_0_38833729_12414\Main.java:26: 错误: 需要class, interface或enum
}edge[N*N*2];
^
0_0_38833729_12414\Main.java:28: 错误: 需要class, interface或enum
int head[N],pre[N],dist[N];//head[]为每个变得下标,pre[]用来记录前驱,dist[]最短路时的距离数组
^
0_0_38833729_12414\Main.java:29: 错误: 需要class, interface或enum
bool spaf_vis[N];//最短路的标记数组
^
0_0_38833729_12414\Main.java:30: 错误: 需要class, interface或enum
int s,t,e;
^
0_0_38833729_12414\Main.java:32: 错误: 需要class, interface或enum
char mp[N][N];
^
0_0_38833729_12414\Main.java:33: 错误: 需要class, interface或enum
int n,m;
^
0_0_38833729_12414\Main.java:34: 错误: 需要class, interface或enum
int size;
^
0_0_38833729_12414\Main.java:35: 错误: 需要class, interface或enum
int coss[N],num[N];//coss[]存人到每个房子的花费,num[]记录编号
^
0_0_38833729_12414\Main.java:36: 错误: 需要class, interface或enum
int mark[N][N],vis[N][N];//mark[]是bfs的标记数组,vis[]是记录房子的编号
^
0_0_38833729_12414\Main.java:37: 错误: 需要class, interface或enum
int dis[4][2]= {0,1,1,0,0,-1,-1,0};//方向数组
^
0_0_38833729_12414\Main.java:39: 错误: 需要class, interface或enum
void bfs(int x,int y)//找出人到房子的花费
^
0_0_38833729_12414\Main.java:42: 错误: 需要class, interface或enum
nod q1,q2;
^
0_0_38833729_12414\Main.java:43: 错误: 需要class, interface或enum
q1.x=x;
^
0_0_38833729_12414\Main.java:44: 错误: 需要class, interface或enum
q1.y=y;
^
0_0_38833729_12414\Main.java:45: 错误: 需要class, interface或enum
q1.s=0;
^
0_0_38833729_12414\Main.java:46: 错误: 需要class, interface或enum
que.push(q1);
^
0_0_38833729_12414\Main.java:47: 错误: 需要class, interface或enum
memset(mark,0,sizeof(mark));
^
0_0_38833729_12414\Main.java:48: 错误: 需要class, interface或enum
mark[x][y]=1;
^
0_0_38833729_12414\Main.java:49: 错误: 需要class, interface或enum
while(!que.empty())
^
0_0_38833729_12414\Main.java:52: 错误: 需要class, interface或enum
que.pop();
^
0_0_38833729_12414\Main.java:53: 错误: 需要class, interface或enum
for(int i=0; i<4; i++)
^
0_0_38833729_12414\Main.java:53: 错误: 需要class, interface或enum
for(int i=0; i<4; i++)
^
0_0_38833729_12414\Main.java:53: 错误: 需要class, interface或enum
for(int i=0; i<4; i++)
^
0_0_38833729_12414\Main.java:56: 错误: 需要class, interface或enum
q2.y=q1.y+dis[i][1];
^
0_0_38833729_12414\Main.java:57: 错误: 需要class, interface或enum
if(q2.x<n&&q2.x>=0&&q2.y>=0&&q2.y<m&&mark[q2.x][q2.y]==0)
^
0_0_38833729_12414\Main.java:60: 错误: 需要class, interface或enum
mark[q2.x][q2.y]=1;
^
0_0_38833729_12414\Main.java:61: 错误: 需要class, interface或enum
if(mp[q2.x][q2.y]=='H')
^
0_0_38833729_12414\Main.java:64: 错误: 需要class, interface或enum
num[size++]=vis[q2.x][q2.y];
^
0_0_38833729_12414\Main.java:65: 错误: 需要class, interface或enum
}
^
0_0_38833729_12414\Main.java:67: 错误: 需要class, interface或enum
}
^
0_0_38833729_12414\Main.java:75: 错误: 需要class, interface或enum
edge[e].f=c;
^
0_0_38833729_12414\Main.java:76: 错误: 需要class, interface或enum
edge[e].cos=d;
^
0_0_38833729_12414\Main.java:77: 错误: 需要class, interface或enum
edge[e].ne=head[a];
^
0_0_38833729_12414\Main.java:78: 错误: 需要class, interface或enum
head[a]=e++;
^
0_0_38833729_12414\Main.java:79: 错误: 需要class, interface或enum
}
^
0_0_38833729_12414\Main.java:84: 错误: 需要class, interface或enum
add_insert(b,a,0,-d);
^
0_0_38833729_12414\Main.java:85: 错误: 需要class, interface或enum
}
^
0_0_38833729_12414\Main.java:92: 错误: 需要class, interface或enum
memset(dist,inf,sizeof(dist));
^
0_0_38833729_12414\Main.java:93: 错误: 需要class, interface或enum
memset(pre,-1,sizeof(pre));
^
0_0_38833729_12414\Main.java:94: 错误: 需要class, interface或enum
queue<int>que;
^
0_0_38833729_12414\Main.java:95: 错误: 需要class, interface或enum
spaf_vis[s]=1;
^
0_0_38833729_12414\Main.java:96: 错误: 需要class, interface或enum
dist[s]=0;
^
0_0_38833729_12414\Main.java:97: 错误: 需要class, interface或enum
que.push(s);
^
0_0_38833729_12414\Main.java:98: 错误: 需要class, interface或enum
while(!que.empty())
^
0_0_38833729_12414\Main.java:101: 错误: 需要class, interface或enum
que.pop();
^
0_0_38833729_12414\Main.java:102: 错误: 需要class, interface或enum
spaf_vis[u]=0;
^
0_0_38833729_12414\Main.java:103: 错误: 需要class, interface或enum
for(int i=head[u];i!=-1;i=edge[i].ne)
^
0_0_38833729_12414\Main.java:103: 错误: 需要class, interface或enum
for(int i=head[u];i!=-1;i=edge[i].ne)
^
0_0_38833729_12414\Main.java:103: 错误: 需要class, interface或enum
for(int i=head[u];i!=-1;i=edge[i].ne)
^
0_0_38833729_12414\Main.java:106: 错误: 需要class, interface或enum
if(dist[v]>dist[u]+c&&f)
^
0_0_38833729_12414\Main.java:109: 错误: 需要class, interface或enum
pre[v]=i;//记录前驱的下标
^
0_0_38833729_12414\Main.java:110: 错误: 需要class, interface或enum
if(!spaf_vis[v])
^
0_0_38833729_12414\Main.java:113: 错误: 需要class, interface或enum
que.push(v);
^
0_0_38833729_12414\Main.java:114: 错误: 需要class, interface或enum
}
^
0_0_38833729_12414\Main.java:119: 错误: 需要class, interface或enum
}
^
0_0_38833729_12414\Main.java:124: 错误: 需要class, interface或enum
while(spaf())//寻找花销最小的路径
^
0_0_38833729_12414\Main.java:128: 错误: 需要class, interface或enum
for(int i=pre[t];i!=-1;i=pre[edge[i^1].v])
^
0_0_38833729_12414\Main.java:128: 错误: 需要class, interface或enum
for(int i=pre[t];i!=-1;i=pre[edge[i^1].v])
^
0_0_38833729_12414\Main.java:128: 错误: 需要class, interface或enum
for(int i=pre[t];i!=-1;i=pre[edge[i^1].v])
^
0_0_38833729_12414\Main.java:130: 错误: 需要class, interface或enum
for(int i=pre[t];i!=-1;i=pre[edge[i^1].v])
^
0_0_38833729_12414\Main.java:130: 错误: 需要class, interface或enum
for(int i=pre[t];i!=-1;i=pre[edge[i^1].v])
^
0_0_38833729_12414\Main.java:130: 错误: 需要class, interface或enum
for(int i=pre[t];i!=-1;i=pre[edge[i^1].v])
^
0_0_38833729_12414\Main.java:133: 错误: 需要class, interface或enum
edge[i^1].f+=mini;
^
0_0_38833729_12414\Main.java:134: 错误: 需要class, interface或enum
cost+=edge[i].cos*mini;
^
0_0_38833729_12414\Main.java:135: 错误: 需要class, interface或enum
}
^
0_0_38833729_12414\Main.java:137: 错误: 需要class, interface或enum
}
^
0_0_38833729_12414\Main.java:139: 错误: 需要class, interface或enum
}
^
0_0_38833729_12414\Main.java:146: 错误: 需要class, interface或enum
int home=0,man=0;e=0;
^
0_0_38833729_12414\Main.java:146: 错误: 需要class, interface或enum
int home=0,man=0;e=0;
^
0_0_38833729_12414\Main.java:147: 错误: 需要class, interface或enum
memset(coss,0,sizeof(coss));
^
0_0_38833729_12414\Main.java:148: 错误: 需要class, interface或enum
memset(vis,0,sizeof(vis));
^
0_0_38833729_12414\Main.java:149: 错误: 需要class, interface或enum
memset(head,-1,sizeof(head));
^
0_0_38833729_12414\Main.java:150: 错误: 需要class, interface或enum
for(int i=0; i<n; i++)
|