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_37442381_4062\Main.java:1: 错误: 非法字符: '#'
#include<iostream>
^
0_0_37442381_4062\Main.java:1: 错误: 需要class, interface或enum
#include<iostream>
        ^
0_0_37442381_4062\Main.java:2: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_37442381_4062\Main.java:3: 错误: 非法字符: '#'
#include<string.h>
^
0_0_37442381_4062\Main.java:5: 错误: 非法字符: '#'
#define inf 999999
^
0_0_37442381_4062\Main.java:5: 错误: 需要class, interface或enum
#define inf 999999
        ^
0_0_37442381_4062\Main.java:6: 错误: 非法字符: '#'
#define M 105
^
0_0_37442381_4062\Main.java:8: 错误: 需要class, interface或enum
int tu[M][M];//零阶矩阵来保存图,值为两点之间的距离
^
0_0_37442381_4062\Main.java:9: 错误: 需要class, interface或enum
int dist[M];//剩余点到子图的最小距离
^
0_0_37442381_4062\Main.java:11: 错误: 需要class, interface或enum
int main(){
^
0_0_37442381_4062\Main.java:13: 错误: 需要class, interface或enum
    int a,b,dis;
    ^
0_0_37442381_4062\Main.java:14: 错误: 需要class, interface或enum
    int mins;
    ^
0_0_37442381_4062\Main.java:15: 错误: 需要class, interface或enum
    while(scanf("%d",&N)!=EOF&&N){
    ^
0_0_37442381_4062\Main.java:17: 错误: 需要class, interface或enum
        memset(tu,inf,sizeof(tu));
        ^
0_0_37442381_4062\Main.java:18: 错误: 需要class, interface或enum
        memset(dist,inf,sizeof(dist));
        ^
0_0_37442381_4062\Main.java:19: 错误: 需要class, interface或enum
        n=N*(N-1)/2;
        ^
0_0_37442381_4062\Main.java:20: 错误: 需要class, interface或enum
        mins=0;
        ^
0_0_37442381_4062\Main.java:21: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++){
        ^
0_0_37442381_4062\Main.java:21: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++){
                    ^
0_0_37442381_4062\Main.java:21: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++){
                        ^
0_0_37442381_4062\Main.java:23: 错误: 需要class, interface或enum
            tu[a][b]=tu[b][a]=dis;
            ^
0_0_37442381_4062\Main.java:24: 错误: 需要class, interface或enum
        }
        ^
0_0_37442381_4062\Main.java:27: 错误: 需要class, interface或enum
        visit[1]=1;//将1结点作为子图的第一个元素
        ^
0_0_37442381_4062\Main.java:28: 错误: 需要class, interface或enum
        for(int i=2;i<=N;i++)
        ^
0_0_37442381_4062\Main.java:28: 错误: 需要class, interface或enum
        for(int i=2;i<=N;i++)
                    ^
0_0_37442381_4062\Main.java:28: 错误: 需要class, interface或enum
        for(int i=2;i<=N;i++)
                         ^
0_0_37442381_4062\Main.java:30: 错误: 需要class, interface或enum
        for (int i=1;i<N;i++){//把其余n-1个点放进来
        ^
0_0_37442381_4062\Main.java:30: 错误: 需要class, interface或enum
        for (int i=1;i<N;i++){//把其余n-1个点放进来
                     ^
0_0_37442381_4062\Main.java:30: 错误: 需要class, interface或enum
        for (int i=1;i<N;i++){//把其余n-1个点放进来
                         ^
0_0_37442381_4062\Main.java:32: 错误: 需要class, interface或enum
            int temp=inf;
            ^
0_0_37442381_4062\Main.java:33: 错误: 需要class, interface或enum
            for(int j=1;j<=N;j++){//查询到子图中最小距离的点
            ^
0_0_37442381_4062\Main.java:33: 错误: 需要class, interface或enum
            for(int j=1;j<=N;j++){//查询到子图中最小距离的点
                        ^
0_0_37442381_4062\Main.java:33: 错误: 需要class, interface或enum
            for(int j=1;j<=N;j++){//查询到子图中最小距离的点
                             ^
0_0_37442381_4062\Main.java:36: 错误: 需要class, interface或enum
                    temp=dist[j];
                    ^
0_0_37442381_4062\Main.java:37: 错误: 需要class, interface或enum
                }
                ^
0_0_37442381_4062\Main.java:41: 错误: 需要class, interface或enum
            if(v!=1)
            ^
0_0_37442381_4062\Main.java:43: 错误: 需要class, interface或enum
            for(int j=1;j<=N;j++){//更新剩余结点到子图的最小距离
            ^
0_0_37442381_4062\Main.java:43: 错误: 需要class, interface或enum
            for(int j=1;j<=N;j++){//更新剩余结点到子图的最小距离
                        ^
0_0_37442381_4062\Main.java:43: 错误: 需要class, interface或enum
            for(int j=1;j<=N;j++){//更新剩余结点到子图的最小距离
                             ^
0_0_37442381_4062\Main.java:46: 错误: 需要class, interface或enum
            }
            ^
0_0_37442381_4062\Main.java:50: 错误: 需要class, interface或enum
    }
    ^
0_0_37442381_4062\Main.java:52: 错误: 需要class, interface或enum
}
^
42 个错误


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-11-29 22:20:00, Gzip enabled