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_23269737_2030\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_23269737_2030\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
         ^
0_0_23269737_2030\Main.java:3: 错误: 需要class, interface或enum
typedef pair<int, int> P;
^
0_0_23269737_2030\Main.java:4: 错误: 需要class, interface或enum
vector<P> vec;
^
0_0_23269737_2030\Main.java:5: 错误: 需要class, interface或enum
const int maxn = 1005;
^
0_0_23269737_2030\Main.java:6: 错误: 需要class, interface或enum
const int maxm = 2005;
^
0_0_23269737_2030\Main.java:7: 错误: 需要class, interface或enum
int n, D;
^
0_0_23269737_2030\Main.java:8: 错误: 需要class, interface或enum
struct edge {
^
0_0_23269737_2030\Main.java:10: 错误: 需要class, interface或enum
} e[maxm];
^
0_0_23269737_2030\Main.java:12: 错误: 需要class, interface或enum
int head[maxn], tot;
^
0_0_23269737_2030\Main.java:13: 错误: 需要class, interface或enum
void addedge(int u, int v, int w) {
^
0_0_23269737_2030\Main.java:16: 错误: 需要class, interface或enum
    e[tot].w = w;
    ^
0_0_23269737_2030\Main.java:17: 错误: 需要class, interface或enum
    e[tot].nxt = head[u];
    ^
0_0_23269737_2030\Main.java:18: 错误: 需要class, interface或enum
    head[u] = tot++;
    ^
0_0_23269737_2030\Main.java:19: 错误: 需要class, interface或enum
}
^
0_0_23269737_2030\Main.java:22: 错误: 需要class, interface或enum
    memset(head, -1, sizeof(head));
    ^
0_0_23269737_2030\Main.java:23: 错误: 需要class, interface或enum
}
^
0_0_23269737_2030\Main.java:25: 错误: 需要class, interface或enum
int d[maxn];
^
0_0_23269737_2030\Main.java:26: 错误: 需要class, interface或enum
int num = 0;
^
0_0_23269737_2030\Main.java:27: 错误: 需要class, interface或enum
int in[maxn];
^
0_0_23269737_2030\Main.java:28: 错误: 需要class, interface或enum
 void spfa(int s) {
 ^
0_0_23269737_2030\Main.java:30: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; i++){
    ^
0_0_23269737_2030\Main.java:30: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; i++){
                    ^
0_0_23269737_2030\Main.java:30: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; i++){
                            ^
0_0_23269737_2030\Main.java:32: 错误: 需要class, interface或enum
        d[i] = 0x3f3f3f3f;
        ^
0_0_23269737_2030\Main.java:33: 错误: 需要class, interface或enum
    }
    ^
0_0_23269737_2030\Main.java:35: 错误: 需要class, interface或enum
    que.push(s);
    ^
0_0_23269737_2030\Main.java:36: 错误: 需要class, interface或enum
    d[s] = 0;
    ^
0_0_23269737_2030\Main.java:37: 错误: 需要class, interface或enum
    while (!que.empty()) {
    ^
0_0_23269737_2030\Main.java:39: 错误: 需要class, interface或enum
        que.pop();
        ^
0_0_23269737_2030\Main.java:41: 错误: 需要class, interface或enum
        for (int i = head[u]; ~i; i = e[i].nxt) {
        ^
0_0_23269737_2030\Main.java:41: 错误: 需要class, interface或enum
        for (int i = head[u]; ~i; i = e[i].nxt) {
                              ^
0_0_23269737_2030\Main.java:41: 错误: 需要class, interface或enum
        for (int i = head[u]; ~i; i = e[i].nxt) {
                                  ^
0_0_23269737_2030\Main.java:44: 错误: 需要class, interface或enum
            if (d[v] > d[u] + e[i].w) {
            ^
0_0_23269737_2030\Main.java:47: 错误: 需要class, interface或enum
                if (!vis[v]) {
                ^
0_0_23269737_2030\Main.java:49: 错误: 需要class, interface或enum
                    if(in[v] >= n)
                    ^
0_0_23269737_2030\Main.java:51: 错误: 需要class, interface或enum
                    vis[v] = 1;
                    ^
0_0_23269737_2030\Main.java:52: 错误: 需要class, interface或enum
                    que.push(v);
                    ^
0_0_23269737_2030\Main.java:53: 错误: 需要class, interface或enum
                }
                ^
0_0_23269737_2030\Main.java:58: 错误: 需要class, interface或enum
    }
    ^
0_0_23269737_2030\Main.java:62: 错误: 需要class, interface或enum
    scanf("%d", &T);
    ^
0_0_23269737_2030\Main.java:63: 错误: 需要class, interface或enum
    int cs = 0;
    ^
0_0_23269737_2030\Main.java:64: 错误: 需要class, interface或enum
    while (T--) {
    ^
0_0_23269737_2030\Main.java:66: 错误: 需要class, interface或enum
        vec.clear();
        ^
0_0_23269737_2030\Main.java:67: 错误: 需要class, interface或enum
        scanf("%d%d", &n, &D);
        ^
0_0_23269737_2030\Main.java:68: 错误: 需要class, interface或enum
        for (int i = 1; i <= n; i++) {
        ^
0_0_23269737_2030\Main.java:68: 错误: 需要class, interface或enum
        for (int i = 1; i <= n; i++) {
                        ^
0_0_23269737_2030\Main.java:68: 错误: 需要class, interface或enum
        for (int i = 1; i <= n; i++) {
                                ^
0_0_23269737_2030\Main.java:70: 错误: 需要class, interface或enum
            scanf("%d", &t);
            ^
0_0_23269737_2030\Main.java:71: 错误: 需要class, interface或enum
            vec.push_back(make_pair(t, i));
            ^
0_0_23269737_2030\Main.java:72: 错误: 需要class, interface或enum
        }
        ^
0_0_23269737_2030\Main.java:74: 错误: 需要class, interface或enum
        for (int i = 1; i < n; i++)
        ^
0_0_23269737_2030\Main.java:74: 错误: 需要class, interface或enum
        for (int i = 1; i < n; i++)
                        ^
0_0_23269737_2030\Main.java:74: 错误: 需要class, interface或enum
        for (int i = 1; i < n; i++)
                               ^
0_0_23269737_2030\Main.java:76: 错误: 需要class, interface或enum
        for (int i = 0; i < n - 1; i++) {
        ^
0_0_23269737_2030\Main.java:76: 错误: 需要class, interface或enum
        for (int i = 0; i < n - 1; i++) {
                        ^
0_0_23269737_2030\Main.java:76: 错误: 需要class, interface或enum
        for (int i = 0; i < n - 1; i++) {
                                   ^
0_0_23269737_2030\Main.java:79: 错误: 需要class, interface或enum
            else
            ^
0_0_23269737_2030\Main.java:81: 错误: 需要class, interface或enum
        }
        ^
0_0_23269737_2030\Main.java:83: 错误: 需要class, interface或enum
        int t = vec[n - 1].second;
        ^
0_0_23269737_2030\Main.java:84: 错误: 需要class, interface或enum
        if( s > t)
        ^
0_0_23269737_2030\Main.java:86: 错误: 需要class, interface或enum
        spfa(s);
        ^
0_0_23269737_2030\Main.java:87: 错误: 需要class, interface或enum
            printf("Case %d: %d\n", ++cs,d[t] <= 0 ? -1 : d[t]);
            ^
0_0_23269737_2030\Main.java:88: 错误: 需要class, interface或enum
    }
    ^
64 个错误


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-26 01:45:57, Gzip enabled