0_0_21148045_9869\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_21148045_9869\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
^
0_0_21148045_9869\Main.java:5: 错误: 需要class, interface或enum
typedef long long LL;
^
0_0_21148045_9869\Main.java:7: 错误: 需要class, interface或enum
const LL mod = 1e9+7;
^
0_0_21148045_9869\Main.java:9: 错误: 需要class, interface或enum
struct MCMF {
^
0_0_21148045_9869\Main.java:11: 错误: 需要class, interface或enum
static const LL INF = 1e18;
^
0_0_21148045_9869\Main.java:12: 错误: 需要class, interface或enum
static const LL maxn = 440;
^
0_0_21148045_9869\Main.java:13: 错误: 需要class, interface或enum
static const LL maxm = 16000;
^
0_0_21148045_9869\Main.java:15: 错误: 需要class, interface或enum
struct Edge {
^
0_0_21148045_9869\Main.java:17: 错误: 需要class, interface或enum
} edge[maxm*2];
^
0_0_21148045_9869\Main.java:19: 错误: 需要class, interface或enum
LL head[maxn], eg;
^
0_0_21148045_9869\Main.java:20: 错误: 需要class, interface或enum
LL dis[maxn], vis[maxn], p[maxn], a[maxn];
^
0_0_21148045_9869\Main.java:22: 错误: 需要class, interface或enum
void AddEdge(LL u, LL v, LL cap, LL cost) {
^
0_0_21148045_9869\Main.java:24: 错误: 需要class, interface或enum
swap(u, v);
^
0_0_21148045_9869\Main.java:25: 错误: 需要class, interface或enum
edge[eg] = {u, v, head[u], 0, 0, -cost}, head[u] = eg++;
^
0_0_21148045_9869\Main.java:26: 错误: 需要class, interface或enum
}
^
0_0_21148045_9869\Main.java:30: 错误: 需要class, interface或enum
memset(head, -1, sizeof head);
^
0_0_21148045_9869\Main.java:31: 错误: 需要class, interface或enum
}
^
0_0_21148045_9869\Main.java:34: 错误: 需要class, interface或enum
for(LL i = 1; i <= n; i++) dis[i] = INF, vis[i] = 0;
^
0_0_21148045_9869\Main.java:34: 错误: 需要class, interface或enum
for(LL i = 1; i <= n; i++) dis[i] = INF, vis[i] = 0;
^
0_0_21148045_9869\Main.java:35: 错误: 需要class, interface或enum
dis[s] = 0, vis[s] = 1, p[s] = 0, a[s] = INF;
^
0_0_21148045_9869\Main.java:36: 错误: 需要class, interface或enum
queue<LL> Q;
^
0_0_21148045_9869\Main.java:37: 错误: 需要class, interface或enum
Q.push(s);
^
0_0_21148045_9869\Main.java:38: 错误: 需要class, interface或enum
while(!Q.empty()) {
^
0_0_21148045_9869\Main.java:39: 错误: 需要class, interface或enum
LL u = Q.front(); Q.pop();
^
0_0_21148045_9869\Main.java:40: 错误: 需要class, interface或enum
vis[u] = 0;
^
0_0_21148045_9869\Main.java:41: 错误: 需要class, interface或enum
for(LL i = head[u]; ~i; i = edge[i].next) {
^
0_0_21148045_9869\Main.java:41: 错误: 需要class, interface或enum
for(LL i = head[u]; ~i; i = edge[i].next) {
^
0_0_21148045_9869\Main.java:41: 错误: 需要class, interface或enum
for(LL i = head[u]; ~i; i = edge[i].next) {
^
0_0_21148045_9869\Main.java:43: 错误: 需要class, interface或enum
if(e.flow < e.cap && dis[e.v] > dis[u] + e.cost) {
^
0_0_21148045_9869\Main.java:45: 错误: 需要class, interface或enum
p[e.v] = i;
^
0_0_21148045_9869\Main.java:46: 错误: 需要class, interface或enum
a[e.v] = min(a[u], e.cap - e.flow);
^
0_0_21148045_9869\Main.java:47: 错误: 需要class, interface或enum
if(!vis[e.v]) vis[e.v] = 1, Q.push(e.v);
^
0_0_21148045_9869\Main.java:48: 错误: 需要class, interface或enum
}
^
0_0_21148045_9869\Main.java:52: 错误: 需要class, interface或enum
flow += a[t];
^
0_0_21148045_9869\Main.java:53: 错误: 需要class, interface或enum
cost += a[t] * dis[t];
^
0_0_21148045_9869\Main.java:54: 错误: 需要class, interface或enum
int u = t;
^
0_0_21148045_9869\Main.java:55: 错误: 需要class, interface或enum
while(s != u) {
^
0_0_21148045_9869\Main.java:57: 错误: 需要class, interface或enum
edge[p[u]^1].flow -= a[t];
^
0_0_21148045_9869\Main.java:58: 错误: 需要class, interface或enum
u = edge[p[u]].u;
^
0_0_21148045_9869\Main.java:59: 错误: 需要class, interface或enum
}
^
0_0_21148045_9869\Main.java:61: 错误: 需要class, interface或enum
}
^
0_0_21148045_9869\Main.java:64: 错误: 需要class, interface或enum
while(SPFA(s, t, n, flow, cost)) ;
^
0_0_21148045_9869\Main.java:65: 错误: 需要class, interface或enum
}
^
0_0_21148045_9869\Main.java:68: 错误: 需要class, interface或enum
string str[222];
^
0_0_21148045_9869\Main.java:70: 错误: 需要class, interface或enum
int main() {
^
0_0_21148045_9869\Main.java:72: 错误: 需要class, interface或enum
while(~scanf("%d", &n)) {
^
0_0_21148045_9869\Main.java:73: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++) cin >> str[i];
^
0_0_21148045_9869\Main.java:73: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++) cin >> str[i];
^
0_0_21148045_9869\Main.java:74: 错误: 需要class, interface或enum
mcmf.init();
^
0_0_21148045_9869\Main.java:75: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++) {
^
0_0_21148045_9869\Main.java:75: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++) {
^
0_0_21148045_9869\Main.java:75: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++) {
^
0_0_21148045_9869\Main.java:76: 错误: 需要class, interface或enum
for(int j = 1; j <= n; j++) {
^
0_0_21148045_9869\Main.java:76: 错误: 需要class, interface或enum
for(int j = 1; j <= n; j++) {
^
0_0_21148045_9869\Main.java:78: 错误: 需要class, interface或enum
int len1 = str[i].size(), len2 = str[j].size();
^
0_0_21148045_9869\Main.java:79: 错误: 需要class, interface或enum
int p1 = len1-1, p2 = 0;
^
0_0_21148045_9869\Main.java:80: 错误: 需要class, interface或enum
while(p1 >= 0 && p2 <= len2-1) {
^
0_0_21148045_9869\Main.java:82: 错误: 需要class, interface或enum
else break;
^
0_0_21148045_9869\Main.java:83: 错误: 需要class, interface或enum
}
^
0_0_21148045_9869\Main.java:86: 错误: 需要class, interface或enum
}
^
0_0_21148045_9869\Main.java:88: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++) mcmf.AddEdge(0, i, 1, 0);
^
0_0_21148045_9869\Main.java:88: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++) mcmf.AddEdge(0, i, 1, 0);
^
0_0_21148045_9869\Main.java:89: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++) mcmf.AddEdge(i+n, 2*n+1, 1, 0);
^
0_0_21148045_9869\Main.java:89: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++) mcmf.AddEdge(i+n, 2*n+1, 1, 0);
^
0_0_21148045_9869\Main.java:89: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++) mcmf.AddEdge(i+n, 2*n+1, 1, 0);
^
0_0_21148045_9869\Main.java:90: 错误: 需要class, interface或enum
LL flow, cost;
^
0_0_21148045_9869\Main.java:91: 错误: 需要class, interface或enum
mcmf(0, 2*n+1, 2*n+2, flow, cost);
^
0_0_21148045_9869\Main.java:92: 错误: 需要class, interface或enum
cout<<-cost<<endl;
^
0_0_21148045_9869\Main.java:93: 错误: 需要class, interface或enum
}
^
0_0_21148045_9869\Main.java:95: 错误: 需要class, interface或enum
}
^
71 个错误
|