F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_21034554_12305\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_21034554_12305\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_21034554_12305\Main.java:2: 错误: 非法字符: '#'
#include <string.h>
^
0_0_21034554_12305\Main.java:3: 错误: 非法字符: '#'
#include <stdio.h>
^
0_0_21034554_12305\Main.java:4: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_21034554_12305\Main.java:5: 错误: 非法字符: '#'
#include <queue>
^
0_0_21034554_12305\Main.java:6: 错误: 非法字符: '#'
#include <vector>
^
0_0_21034554_12305\Main.java:9: 错误: 需要class, interface或enum
const int INF=0x3f3f3f3f;
^
0_0_21034554_12305\Main.java:10: 错误: 需要class, interface或enum
const int MAXN=100010;
^
0_0_21034554_12305\Main.java:11: 错误: 需要class, interface或enum
struct qnode{
^
0_0_21034554_12305\Main.java:13: 错误: 需要class, interface或enum
    int c;
    ^
0_0_21034554_12305\Main.java:14: 错误: 需要class, interface或enum
    qnode(int _v=0,int _c=0):v(_v),c(_c){}
    ^
0_0_21034554_12305\Main.java:17: 错误: 需要class, interface或enum
    }
    ^
0_0_21034554_12305\Main.java:19: 错误: 需要class, interface或enum
struct Edge{
^
0_0_21034554_12305\Main.java:21: 错误: 需要class, interface或enum
    int next;
    ^
0_0_21034554_12305\Main.java:22: 错误: 需要class, interface或enum
};
^
0_0_21034554_12305\Main.java:24: 错误: 需要class, interface或enum
Edge edge[200000];
^
0_0_21034554_12305\Main.java:25: 错误: 需要class, interface或enum
int tol;
^
0_0_21034554_12305\Main.java:26: 错误: 需要class, interface或enum
int head[MAXN];
^
0_0_21034554_12305\Main.java:27: 错误: 需要class, interface或enum
bool vis[MAXN];
^
0_0_21034554_12305\Main.java:28: 错误: 需要class, interface或enum
int dist[MAXN];
^
0_0_21034554_12305\Main.java:30: 错误: 需要class, interface或enum
void Dijkstra(int n,int start){
^
0_0_21034554_12305\Main.java:32: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++)dist[i]=INF;
    ^
0_0_21034554_12305\Main.java:32: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++)dist[i]=INF;
                ^
0_0_21034554_12305\Main.java:32: 错误: 需要class, interface或enum
    for(int i=1;i<=n;i++)dist[i]=INF;
                     ^
0_0_21034554_12305\Main.java:33: 错误: 需要class, interface或enum
    priority_queue<qnode>que;
    ^
0_0_21034554_12305\Main.java:34: 错误: 需要class, interface或enum
    while(!que.empty())que.pop();
    ^
0_0_21034554_12305\Main.java:35: 错误: 需要class, interface或enum
    dist[start]=0;
    ^
0_0_21034554_12305\Main.java:36: 错误: 需要class, interface或enum
    que.push(qnode(start,0));
    ^
0_0_21034554_12305\Main.java:37: 错误: 需要class, interface或enum
    qnode tmp;
    ^
0_0_21034554_12305\Main.java:38: 错误: 需要class, interface或enum
    while(!que.empty()){
    ^
0_0_21034554_12305\Main.java:40: 错误: 需要class, interface或enum
        que.pop();
        ^
0_0_21034554_12305\Main.java:41: 错误: 需要class, interface或enum
        int u=tmp.v;
        ^
0_0_21034554_12305\Main.java:42: 错误: 需要class, interface或enum
        if(vis[u])continue;
        ^
0_0_21034554_12305\Main.java:43: 错误: 需要class, interface或enum
        vis[u]=true;
        ^
0_0_21034554_12305\Main.java:44: 错误: 需要class, interface或enum
        for(int i=head[u];i!=-1;i=edge[i].next){
        ^
0_0_21034554_12305\Main.java:44: 错误: 需要class, interface或enum
        for(int i=head[u];i!=-1;i=edge[i].next){
                          ^
0_0_21034554_12305\Main.java:44: 错误: 需要class, interface或enum
        for(int i=head[u];i!=-1;i=edge[i].next){
                                ^
0_0_21034554_12305\Main.java:46: 错误: 需要class, interface或enum
            int cost=edge[i].cost;
            ^
0_0_21034554_12305\Main.java:47: 错误: 需要class, interface或enum
            if(!vis[v]&&dist[v]>dist[u]+cost){
            ^
0_0_21034554_12305\Main.java:49: 错误: 需要class, interface或enum
                que.push(qnode(v,dist[v]));
                ^
0_0_21034554_12305\Main.java:50: 错误: 需要class, interface或enum
            }
            ^
0_0_21034554_12305\Main.java:56: 错误: 需要class, interface或enum
    edge[tol].cost=w;
    ^
0_0_21034554_12305\Main.java:57: 错误: 需要class, interface或enum
    edge[tol].next=head[u];
    ^
0_0_21034554_12305\Main.java:58: 错误: 需要class, interface或enum
    head[u]=tol++;
    ^
0_0_21034554_12305\Main.java:59: 错误: 需要class, interface或enum
}
^
0_0_21034554_12305\Main.java:61: 错误: 需要class, interface或enum
int main(){
^
0_0_21034554_12305\Main.java:63: 错误: 需要class, interface或enum
	scanf("%d",&t);
	^
0_0_21034554_12305\Main.java:64: 错误: 需要class, interface或enum
	for(int cas=1;cas<=t;cas++){
	^
0_0_21034554_12305\Main.java:64: 错误: 需要class, interface或enum
	for(int cas=1;cas<=t;cas++){
	              ^
0_0_21034554_12305\Main.java:64: 错误: 需要class, interface或enum
	for(int cas=1;cas<=t;cas++){
	                     ^
0_0_21034554_12305\Main.java:66: 错误: 需要class, interface或enum
		tol=0;
		^
0_0_21034554_12305\Main.java:67: 错误: 需要class, interface或enum
		int n,m,c,MAX=0;
		^
0_0_21034554_12305\Main.java:68: 错误: 需要class, interface或enum
		for(int i=0;i<MAXN;i++) v[i].clear();
		^
0_0_21034554_12305\Main.java:68: 错误: 需要class, interface或enum
		for(int i=0;i<MAXN;i++) v[i].clear();
		            ^
0_0_21034554_12305\Main.java:68: 错误: 需要class, interface或enum
		for(int i=0;i<MAXN;i++) v[i].clear();
		                   ^
0_0_21034554_12305\Main.java:69: 错误: 需要class, interface或enum
		scanf("%d%d%d",&n,&m,&c);
		^
0_0_21034554_12305\Main.java:70: 错误: 需要class, interface或enum
		for(int i=1;i<=n;i++){
		^
0_0_21034554_12305\Main.java:70: 错误: 需要class, interface或enum
		for(int i=1;i<=n;i++){
		            ^
0_0_21034554_12305\Main.java:70: 错误: 需要class, interface或enum
		for(int i=1;i<=n;i++){
		                 ^
0_0_21034554_12305\Main.java:72: 错误: 需要class, interface或enum
			scanf("%d",&num);
			^
0_0_21034554_12305\Main.java:73: 错误: 需要class, interface或enum
			MAX=max(MAX,num);
			^
0_0_21034554_12305\Main.java:74: 错误: 需要class, interface或enum
			v[num].push_back(i);
			^
0_0_21034554_12305\Main.java:75: 错误: 需要class, interface或enum
		}
		^
0_0_21034554_12305\Main.java:76: 错误: 需要class, interface或enum
		for(int i=1;i<=MAX-1;i++){
		            ^
0_0_21034554_12305\Main.java:76: 错误: 需要class, interface或enum
		for(int i=1;i<=MAX-1;i++){
		                     ^
0_0_21034554_12305\Main.java:77: 错误: 需要class, interface或enum
			for(int j=0;j<v[i].size();j++){
			            ^
0_0_21034554_12305\Main.java:77: 错误: 需要class, interface或enum
			for(int j=0;j<v[i].size();j++){
			                          ^
0_0_21034554_12305\Main.java:78: 错误: 需要class, interface或enum
				for(int k=0;k<v[i+1].size();k++){
				            ^
0_0_21034554_12305\Main.java:78: 错误: 需要class, interface或enum
				for(int k=0;k<v[i+1].size();k++){
				                            ^
0_0_21034554_12305\Main.java:80: 错误: 需要class, interface或enum
					addedge(v[i+1][k],v[i][j],c);
					^
0_0_21034554_12305\Main.java:81: 错误: 需要class, interface或enum
				}
				^
0_0_21034554_12305\Main.java:84: 错误: 需要class, interface或enum
		for(int i=1;i<=m;i++){
		            ^
0_0_21034554_12305\Main.java:84: 错误: 需要class, interface或enum
		for(int i=1;i<=m;i++){
		                 ^
0_0_21034554_12305\Main.java:86: 错误: 需要class, interface或enum
			scanf("%d%d%d",&fr,&to,&co);
			^
0_0_21034554_12305\Main.java:87: 错误: 需要class, interface或enum
			addedge(fr,to,co);
			^
0_0_21034554_12305\Main.java:88: 错误: 需要class, interface或enum
		}
		^
0_0_21034554_12305\Main.java:90: 错误: 需要class, interface或enum
		printf("Case #%d: %d\n",cas,dist[n]);
		^
0_0_21034554_12305\Main.java:91: 错误: 需要class, interface或enum
	} 
	^
0_0_21034554_12305\Main.java:93: 错误: 需要class, interface或enum
}
^
80 个错误


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-04 23:13:55, Gzip enabled