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_31383921_7444\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_31383921_7444\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_31383921_7444\Main.java:2: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_31383921_7444\Main.java:3: 错误: 非法字符: '#'
#include <cstring>
^
0_0_31383921_7444\Main.java:4: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_31383921_7444\Main.java:5: 错误: 非法字符: '#'
#include <vector>
^
0_0_31383921_7444\Main.java:6: 错误: 非法字符: '#'
#include <queue>
^
0_0_31383921_7444\Main.java:10: 错误: 需要class, interface或enum
const int maxn=211;
^
0_0_31383921_7444\Main.java:12: 错误: 需要class, interface或enum
vector<int> g[maxn];
^
0_0_31383921_7444\Main.java:13: 错误: 需要class, interface或enum
int dist[maxn],inq[maxn],cq[maxn];
^
0_0_31383921_7444\Main.java:14: 错误: 需要class, interface或enum
int vis[maxn],energy[maxn],n;
^
0_0_31383921_7444\Main.java:16: 错误: 需要class, interface或enum
void dfs(int u)
^
0_0_31383921_7444\Main.java:19: 错误: 需要class, interface或enum
    for(int i=0,sz=g[u].size();i<sz;i++)
    ^
0_0_31383921_7444\Main.java:19: 错误: 需要class, interface或enum
    for(int i=0,sz=g[u].size();i<sz;i++)
                               ^
0_0_31383921_7444\Main.java:19: 错误: 需要class, interface或enum
    for(int i=0,sz=g[u].size();i<sz;i++)
                                    ^
0_0_31383921_7444\Main.java:22: 错误: 需要class, interface或enum
        if(vis[v]) continue;
        ^
0_0_31383921_7444\Main.java:23: 错误: 需要class, interface或enum
        dfs(v);
        ^
0_0_31383921_7444\Main.java:24: 错误: 需要class, interface或enum
    }
    ^
0_0_31383921_7444\Main.java:30: 错误: 需要class, interface或enum
    memset(inq,0,sizeof(inq));
    ^
0_0_31383921_7444\Main.java:31: 错误: 需要class, interface或enum
    memset(cq,0,sizeof(cq));
    ^
0_0_31383921_7444\Main.java:33: 错误: 需要class, interface或enum
    dist[1]=0;
    ^
0_0_31383921_7444\Main.java:34: 错误: 需要class, interface或enum
    inq[1]=cq[1]=1;
    ^
0_0_31383921_7444\Main.java:35: 错误: 需要class, interface或enum
    queue<int> q;
    ^
0_0_31383921_7444\Main.java:36: 错误: 需要class, interface或enum
    q.push(1);
    ^
0_0_31383921_7444\Main.java:38: 错误: 需要class, interface或enum
    while(!q.empty())
    ^
0_0_31383921_7444\Main.java:40: 错误: 需要class, interface或enum
        int u=q.front(); q.pop();
                         ^
0_0_31383921_7444\Main.java:41: 错误: 需要class, interface或enum
        for(int i=0,sz=g[u].size();i<sz;i++)
        ^
0_0_31383921_7444\Main.java:41: 错误: 需要class, interface或enum
        for(int i=0,sz=g[u].size();i<sz;i++)
                                   ^
0_0_31383921_7444\Main.java:41: 错误: 需要class, interface或enum
        for(int i=0,sz=g[u].size();i<sz;i++)
                                        ^
0_0_31383921_7444\Main.java:44: 错误: 需要class, interface或enum
            int newvalue=dist[u]+energy[v];
            ^
0_0_31383921_7444\Main.java:45: 错误: 需要class, interface或enum
            if(newvalue>-100)
            ^
0_0_31383921_7444\Main.java:49: 错误: 需要class, interface或enum
                if(inq[v]==0)
                ^
0_0_31383921_7444\Main.java:52: 错误: 需要class, interface或enum
                    cq[v]++;
                    ^
0_0_31383921_7444\Main.java:53: 错误: 需要class, interface或enum
                    if(cq[v]>=n)
                    ^
0_0_31383921_7444\Main.java:56: 错误: 需要class, interface或enum
                        dfs(v);
                        ^
0_0_31383921_7444\Main.java:57: 错误: 需要class, interface或enum
                        if(vis[n]) return true;
                        ^
0_0_31383921_7444\Main.java:58: 错误: 需要class, interface或enum
                        continue;
                        ^
0_0_31383921_7444\Main.java:59: 错误: 需要class, interface或enum
                    }
                    ^
0_0_31383921_7444\Main.java:61: 错误: 需要class, interface或enum
                }
                ^
0_0_31383921_7444\Main.java:65: 错误: 需要class, interface或enum
    }
    ^
0_0_31383921_7444\Main.java:67: 错误: 需要class, interface或enum
    return false;
    ^
0_0_31383921_7444\Main.java:68: 错误: 需要class, interface或enum
}
^
0_0_31383921_7444\Main.java:73: 错误: 需要class, interface或enum
    while(scanf("%d",&n)!=EOF&&~n)
    ^
0_0_31383921_7444\Main.java:75: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
                    ^
0_0_31383921_7444\Main.java:75: 错误: 需要class, interface或enum
        for(int i=1;i<=n;i++)
                         ^
0_0_31383921_7444\Main.java:78: 错误: 需要class, interface或enum
            scanf("%d",energy+i);
            ^
0_0_31383921_7444\Main.java:79: 错误: 需要class, interface或enum
            scanf("%d",&a);
            ^
0_0_31383921_7444\Main.java:80: 错误: 需要class, interface或enum
            for(int j=1;j<=a;j++)
            ^
0_0_31383921_7444\Main.java:80: 错误: 需要class, interface或enum
            for(int j=1;j<=a;j++)
                        ^
0_0_31383921_7444\Main.java:80: 错误: 需要class, interface或enum
            for(int j=1;j<=a;j++)
                             ^
0_0_31383921_7444\Main.java:83: 错误: 需要class, interface或enum
                g[i].push_back(b);
                ^
0_0_31383921_7444\Main.java:84: 错误: 需要class, interface或enum
            }
            ^
0_0_31383921_7444\Main.java:87: 错误: 需要class, interface或enum
        else puts("hopeless");
        ^
0_0_31383921_7444\Main.java:88: 错误: 需要class, interface或enum
    }
    ^
0_0_31383921_7444\Main.java:90: 错误: 需要class, interface或enum
}
^
55 个错误


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 09:54:17, Gzip enabled