0_0_26206179_17113\Main.java:1: 错误: 非法字符: '#'
#include <vector>
^
0_0_26206179_17113\Main.java:1: 错误: 需要class, interface或enum
#include <vector>
^
0_0_26206179_17113\Main.java:2: 错误: 非法字符: '#'
#include <map>
^
0_0_26206179_17113\Main.java:3: 错误: 非法字符: '#'
#include <set>
^
0_0_26206179_17113\Main.java:4: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_26206179_17113\Main.java:5: 错误: 非法字符: '#'
#include <iostream>
^
0_0_26206179_17113\Main.java:6: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_26206179_17113\Main.java:7: 错误: 非法字符: '#'
#include <cmath>
^
0_0_26206179_17113\Main.java:8: 错误: 非法字符: '#'
#include <cstdlib>
^
0_0_26206179_17113\Main.java:9: 错误: 非法字符: '#'
#include <string>
^
0_0_26206179_17113\Main.java:10: 错误: 非法字符: '#'
#include <queue>
^
0_0_26206179_17113\Main.java:11: 错误: 非法字符: '#'
#include <cstring>
^
0_0_26206179_17113\Main.java:19: 错误: 需要class, interface或enum
typedef long long LL;
^
0_0_26206179_17113\Main.java:20: 错误: 需要class, interface或enum
int n,m;
^
0_0_26206179_17113\Main.java:21: 错误: 需要class, interface或enum
vector <int> ans;
^
0_0_26206179_17113\Main.java:22: 错误: 需要class, interface或enum
const LL INF = 0x3f3f3f3f3f;
^
0_0_26206179_17113\Main.java:23: 错误: 需要class, interface或enum
const int MAXN = 3200010;
^
0_0_26206179_17113\Main.java:24: 错误: 需要class, interface或enum
struct qnode
^
0_0_26206179_17113\Main.java:27: 错误: 需要class, interface或enum
LL c;
^
0_0_26206179_17113\Main.java:28: 错误: 需要class, interface或enum
qnode (int _v = 0, LL _c = 0) : v(_v), c(_c) {}
^
0_0_26206179_17113\Main.java:29: 错误: 需要class, interface或enum
bool operator < (const qnode &r) const { return c > r.c; }
^
0_0_26206179_17113\Main.java:31: 错误: 需要class, interface或enum
struct Edge
^
0_0_26206179_17113\Main.java:34: 错误: 需要class, interface或enum
LL cost;
^
0_0_26206179_17113\Main.java:35: 错误: 需要class, interface或enum
Edge (int _v = 0,LL _cost = 0) : v(_v), cost (_cost){}
^
0_0_26206179_17113\Main.java:37: 错误: 需要class, interface或enum
vector <Edge> E[MAXN];
^
0_0_26206179_17113\Main.java:38: 错误: 需要class, interface或enum
bool vis[MAXN];
^
0_0_26206179_17113\Main.java:39: 错误: 需要class, interface或enum
LL dist[2][MAXN];
^
0_0_26206179_17113\Main.java:40: 错误: 需要class, interface或enum
void dijkstra(int n,int start,int poi) //点从编号1开始
^
0_0_26206179_17113\Main.java:43: 错误: 需要class, interface或enum
for (int i = 1; i <= MAXN; i++) dist[poi][i] = INF;
^
0_0_26206179_17113\Main.java:43: 错误: 需要class, interface或enum
for (int i = 1; i <= MAXN; i++) dist[poi][i] = INF;
^
0_0_26206179_17113\Main.java:43: 错误: 需要class, interface或enum
for (int i = 1; i <= MAXN; i++) dist[poi][i] = INF;
^
0_0_26206179_17113\Main.java:44: 错误: 需要class, interface或enum
priority_queue <qnode> que;
^
0_0_26206179_17113\Main.java:45: 错误: 需要class, interface或enum
while(!que.empty()) que.pop();
^
0_0_26206179_17113\Main.java:46: 错误: 需要class, interface或enum
dist[poi][start] = 0;
^
0_0_26206179_17113\Main.java:47: 错误: 需要class, interface或enum
que.push(qnode(start,0));
^
0_0_26206179_17113\Main.java:48: 错误: 需要class, interface或enum
qnode tmp;
^
0_0_26206179_17113\Main.java:49: 错误: 需要class, interface或enum
while(!que.empty())
^
0_0_26206179_17113\Main.java:52: 错误: 需要class, interface或enum
que.pop();
^
0_0_26206179_17113\Main.java:53: 错误: 需要class, interface或enum
int u = tmp.v;
^
0_0_26206179_17113\Main.java:54: 错误: 需要class, interface或enum
if (vis[u]) continue;
^
0_0_26206179_17113\Main.java:55: 错误: 需要class, interface或enum
vis[u] = true;
^
0_0_26206179_17113\Main.java:56: 错误: 需要class, interface或enum
for (int i = 0; i < E[u].size(); i++)
^
0_0_26206179_17113\Main.java:56: 错误: 需要class, interface或enum
for (int i = 0; i < E[u].size(); i++)
^
0_0_26206179_17113\Main.java:56: 错误: 需要class, interface或enum
for (int i = 0; i < E[u].size(); i++)
^
0_0_26206179_17113\Main.java:59: 错误: 需要class, interface或enum
LL cost = E[u][i].cost;
^
0_0_26206179_17113\Main.java:60: 错误: 需要class, interface或enum
if (!vis[v] && dist[poi][v] > dist[poi][u] + cost)
^
0_0_26206179_17113\Main.java:63: 错误: 需要class, interface或enum
que.push(qnode(v,dist[poi][v]));
^
0_0_26206179_17113\Main.java:64: 错误: 需要class, interface或enum
}
^
0_0_26206179_17113\Main.java:71: 错误: 需要class, interface或enum
}
^
0_0_26206179_17113\Main.java:75: 错误: 需要class, interface或enum
cin >> T;
^
0_0_26206179_17113\Main.java:76: 错误: 需要class, interface或enum
int cas = 1;
^
0_0_26206179_17113\Main.java:77: 错误: 需要class, interface或enum
while(T--)
^
0_0_26206179_17113\Main.java:79: 错误: 需要class, interface或enum
for (int i = 0; i < MAXN; i++)
^
0_0_26206179_17113\Main.java:79: 错误: 需要class, interface或enum
for (int i = 0; i < MAXN; i++)
^
0_0_26206179_17113\Main.java:82: 错误: 需要class, interface或enum
}
^
0_0_26206179_17113\Main.java:84: 错误: 需要class, interface或enum
int pos = n; //用于记录新创建的点
^
0_0_26206179_17113\Main.java:85: 错误: 需要class, interface或enum
while(m--)
^
0_0_26206179_17113\Main.java:88: 错误: 需要class, interface或enum
int s;
^
0_0_26206179_17113\Main.java:89: 错误: 需要class, interface或enum
scanf("%lld%d",&t,&s);
^
0_0_26206179_17113\Main.java:90: 错误: 需要class, interface或enum
pos++;
^
0_0_26206179_17113\Main.java:91: 错误: 需要class, interface或enum
while(s--)
^
0_0_26206179_17113\Main.java:94: 错误: 需要class, interface或enum
scanf("%d",&u);
^
0_0_26206179_17113\Main.java:95: 错误: 需要class, interface或enum
addedge(u,pos,t);
^
0_0_26206179_17113\Main.java:96: 错误: 需要class, interface或enum
addedge(pos,u,t);
^
0_0_26206179_17113\Main.java:97: 错误: 需要class, interface或enum
}
^
0_0_26206179_17113\Main.java:100: 错误: 需要class, interface或enum
dijkstra(pos,n,1); //从n出发,结果保存在dist[1][]中
^
0_0_26206179_17113\Main.java:101: 错误: 需要class, interface或enum
LL mindis = INF;
^
0_0_26206179_17113\Main.java:102: 错误: 需要class, interface或enum
ans.clear();
^
0_0_26206179_17113\Main.java:103: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_26206179_17113\Main.java:103: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_26206179_17113\Main.java:103: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_26206179_17113\Main.java:106: 错误: 需要class, interface或enum
}
^
0_0_26206179_17113\Main.java:108: 错误: 需要class, interface或enum
else
^
0_0_26206179_17113\Main.java:111: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_26206179_17113\Main.java:111: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_26206179_17113\Main.java:111: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_26206179_17113\Main.java:116: 错误: 需要class, interface或enum
}
^
0_0_26206179_17113\Main.java:119: 错误: 需要class, interface或enum
for (int i = 1; i < ans.size(); i++)
^
0_0_26206179_17113\Main.java:119: 错误: 需要class, interface或enum
for (int i = 1; i < ans.size(); i++)
^
0_0_26206179_17113\Main.java:119: 错误: 需要class, interface或enum
for (int i = 1; i < ans.size(); i++)
^
0_0_26206179_17113\Main.java:122: 错误: 需要class, interface或enum
}
^
0_0_26206179_17113\Main.java:124: 错误: 需要class, interface或enum
}
^
0_0_26206179_17113\Main.java:127: 错误: 需要class, interface或enum
}
^
83 个错误
|