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_31381177_5313\Main.java:1: 错误: 非法字符: '#'
#include<stdio.h>
^
0_0_31381177_5313\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h>
        ^
0_0_31381177_5313\Main.java:2: 错误: 非法字符: '#'
#include<string.h>
^
0_0_31381177_5313\Main.java:3: 错误: 非法字符: '#'
#include<iostream>
^
0_0_31381177_5313\Main.java:6: 错误: 需要class, interface或enum
const int maxn = 110;
^
0_0_31381177_5313\Main.java:7: 错误: 需要class, interface或enum
const int INF = 10000000000;
^
0_0_31381177_5313\Main.java:9: 错误: 需要class, interface或enum
int w[maxn][maxn]; // 判断图的连通性
^
0_0_31381177_5313\Main.java:10: 错误: 需要class, interface或enum
int en[maxn]; //进入该点的能量值
^
0_0_31381177_5313\Main.java:11: 错误: 需要class, interface或enum
int d[maxn];  //每一点的能量值
^
0_0_31381177_5313\Main.java:12: 错误: 需要class, interface或enum
int n,m; //n 个点, m 条边
^
0_0_31381177_5313\Main.java:14: 错误: 需要class, interface或enum
struct Edge{
^
0_0_31381177_5313\Main.java:16: 错误: 需要class, interface或enum
}edge[maxn*maxn];
^
0_0_31381177_5313\Main.java:18: 错误: 需要class, interface或enum
void floyd() // 有向图的传递闭包
^
0_0_31381177_5313\Main.java:20: 错误: 需要class, interface或enum
    for(int k = 1; k <= n; k++)
                   ^
0_0_31381177_5313\Main.java:20: 错误: 需要class, interface或enum
    for(int k = 1; k <= n; k++)
                           ^
0_0_31381177_5313\Main.java:21: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i++)
                       ^
0_0_31381177_5313\Main.java:21: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i++)
                               ^
0_0_31381177_5313\Main.java:22: 错误: 需要class, interface或enum
            for(int j = 1; j <= n; j++)
                           ^
0_0_31381177_5313\Main.java:22: 错误: 需要class, interface或enum
            for(int j = 1; j <= n; j++)
                                   ^
0_0_31381177_5313\Main.java:24: 错误: 需要class, interface或enum
}
^
0_0_31381177_5313\Main.java:28: 错误: 需要class, interface或enum
    for(int i = 1; i <= n; i++) d[i] = -INF;
                   ^
0_0_31381177_5313\Main.java:28: 错误: 需要class, interface或enum
    for(int i = 1; i <= n; i++) d[i] = -INF;
                           ^
0_0_31381177_5313\Main.java:29: 错误: 需要class, interface或enum
    d[1] = 100; // 初始第一个点有 100 个能量
    ^
0_0_31381177_5313\Main.java:31: 错误: 需要class, interface或enum
    for(int i = 1; i < n; i++)
    ^
0_0_31381177_5313\Main.java:31: 错误: 需要class, interface或enum
    for(int i = 1; i < n; i++)
                   ^
0_0_31381177_5313\Main.java:31: 错误: 需要class, interface或enum
    for(int i = 1; i < n; i++)
                          ^
0_0_31381177_5313\Main.java:33: 错误: 需要class, interface或enum
        for(int j = 0; j < m; j++)
                       ^
0_0_31381177_5313\Main.java:33: 错误: 需要class, interface或enum
        for(int j = 0; j < m; j++)
                              ^
0_0_31381177_5313\Main.java:36: 错误: 需要class, interface或enum
            int v = edge[j].v;
            ^
0_0_31381177_5313\Main.java:38: 错误: 需要class, interface或enum
            if(d[v] < d[u]+en[v] && d[u]+en[v] > 0) //松弛
            ^
0_0_31381177_5313\Main.java:40: 错误: 需要class, interface或enum
        } //注意:不能像以前一样不能松弛了,就直接返回 false 因为判断正环的目的是使 d[n] > 0
        ^
0_0_31381177_5313\Main.java:43: 错误: 需要class, interface或enum
    for(int i = 0; i < m; i++)
                   ^
0_0_31381177_5313\Main.java:43: 错误: 需要class, interface或enum
    for(int i = 0; i < m; i++)
                          ^
0_0_31381177_5313\Main.java:46: 错误: 需要class, interface或enum
        int v = edge[i].v;
        ^
0_0_31381177_5313\Main.java:48: 错误: 需要class, interface或enum
        if(d[v] < d[u]+en[v] && d[u]+en[v] > 0) //如果存在正环
        ^
0_0_31381177_5313\Main.java:51: 错误: 需要class, interface或enum
    }
    ^
0_0_31381177_5313\Main.java:54: 错误: 需要class, interface或enum
}
^
0_0_31381177_5313\Main.java:62: 错误: 需要class, interface或enum
        m = 0; // 初始化边
        ^
0_0_31381177_5313\Main.java:63: 错误: 需要class, interface或enum
        memset(w, 0, sizeof(w));
        ^
0_0_31381177_5313\Main.java:64: 错误: 需要class, interface或enum
        memset(en, 0, sizeof(en));
        ^
0_0_31381177_5313\Main.java:65: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i++) w[i][i] = 1;
        ^
0_0_31381177_5313\Main.java:65: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i++) w[i][i] = 1;
                       ^
0_0_31381177_5313\Main.java:65: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i++) w[i][i] = 1;
                               ^
0_0_31381177_5313\Main.java:67: 错误: 需要class, interface或enum
        int num;
        ^
0_0_31381177_5313\Main.java:68: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i++)
        ^
0_0_31381177_5313\Main.java:68: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i++)
                       ^
0_0_31381177_5313\Main.java:68: 错误: 需要class, interface或enum
        for(int i = 1; i <= n; i++)
                               ^
0_0_31381177_5313\Main.java:71: 错误: 需要class, interface或enum
            scanf("%d%d", &en[i], &num);
            ^
0_0_31381177_5313\Main.java:72: 错误: 需要class, interface或enum
            while(num--) //注意是单向的
            ^
0_0_31381177_5313\Main.java:75: 错误: 需要class, interface或enum
                edge[m].u = i;
                ^
0_0_31381177_5313\Main.java:76: 错误: 需要class, interface或enum
                edge[m++].v = v;
                ^
0_0_31381177_5313\Main.java:77: 错误: 需要class, interface或enum
                w[i][v] = 1; // 有向图, 不要傻逼的加上 w[v][i] = 1
                ^
0_0_31381177_5313\Main.java:78: 错误: 需要class, interface或enum
            }
            ^
0_0_31381177_5313\Main.java:88: 错误: 需要class, interface或enum
        if(Bellman_ford()) printf("winnable\n");
        ^
0_0_31381177_5313\Main.java:89: 错误: 需要class, interface或enum
        else printf("hopeless\n");
        ^
0_0_31381177_5313\Main.java:90: 错误: 需要class, interface或enum
    }
    ^
0_0_31381177_5313\Main.java:92: 错误: 需要class, interface或enum
}
^
57 个错误


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-25 10:10:39, Gzip enabled