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_39089038_5335\Main.java:1: 错误: 需要class, interface或enum
View Code 
^
0_0_39089038_5335\Main.java:2: 错误: 非法字符: '#'
  1 #include<iostream>
    ^
0_0_39089038_5335\Main.java:3: 错误: 非法字符: '#'
  2 #include<string.h>
    ^
0_0_39089038_5335\Main.java:4: 错误: 非法字符: '#'
  3 #include<string>
    ^
0_0_39089038_5335\Main.java:5: 错误: 非法字符: '#'
  4 #include<queue>
    ^
0_0_39089038_5335\Main.java:6: 错误: 非法字符: '#'
  5 #define MAX 100000
    ^
0_0_39089038_5335\Main.java:9: 错误: 需要class, interface或enum
  8 
  ^
0_0_39089038_5335\Main.java:13: 错误: 需要class, interface或enum
 12 }e[20*MAX];
 ^
0_0_39089038_5335\Main.java:14: 错误: 需要class, interface或enum
 13 int cnt,head[MAX],c[MAX],a[MAX],d[MAX];
 ^
0_0_39089038_5335\Main.java:15: 错误: 需要class, interface或enum
 14 bool visited[MAX],flag[MAX];
 ^
0_0_39089038_5335\Main.java:16: 错误: 需要class, interface或enum
 15 
 ^
0_0_39089038_5335\Main.java:20: 错误: 需要class, interface或enum
 19     e[cnt].value=w;
 ^
0_0_39089038_5335\Main.java:21: 错误: 需要class, interface或enum
 20     e[cnt].next=head[u];
 ^
0_0_39089038_5335\Main.java:22: 错误: 需要class, interface或enum
 21     head[u]=cnt++;
 ^
0_0_39089038_5335\Main.java:23: 错误: 需要class, interface或enum
 22 }
 ^
0_0_39089038_5335\Main.java:28: 错误: 需要class, interface或enum
 27     memset(visited,false,sizeof(visited));
 ^
0_0_39089038_5335\Main.java:29: 错误: 需要class, interface或enum
 28     memset(c,0,sizeof(c));
 ^
0_0_39089038_5335\Main.java:30: 错误: 需要class, interface或enum
 29     queue<int>Q;
 ^
0_0_39089038_5335\Main.java:31: 错误: 需要class, interface或enum
 30     while(!Q.empty()) Q.pop();
 ^
0_0_39089038_5335\Main.java:32: 错误: 需要class, interface或enum
 31     Q.push(s);
 ^
0_0_39089038_5335\Main.java:33: 错误: 需要class, interface或enum
 32     c[s]++;
 ^
0_0_39089038_5335\Main.java:34: 错误: 需要class, interface或enum
 33     d[s]=0;
 ^
0_0_39089038_5335\Main.java:35: 错误: 需要class, interface或enum
 34     visited[s]=true;
 ^
0_0_39089038_5335\Main.java:36: 错误: 需要class, interface或enum
 35     flag[s]=true;
 ^
0_0_39089038_5335\Main.java:37: 错误: 需要class, interface或enum
 36     while(!Q.empty())
 ^
0_0_39089038_5335\Main.java:39: 错误: 需要class, interface或enum
 38         temp=Q.front();Q.pop();
                           ^
0_0_39089038_5335\Main.java:40: 错误: 需要class, interface或enum
 39         tnext=head[temp];
 ^
0_0_39089038_5335\Main.java:41: 错误: 需要class, interface或enum
 40         while(tnext!=-1)
 ^
0_0_39089038_5335\Main.java:44: 错误: 需要class, interface或enum
 43             if(d[tx]<d[temp]+e[tnext].value)
 ^
0_0_39089038_5335\Main.java:47: 错误: 需要class, interface或enum
 46                 if(!visited[tx])
 ^
0_0_39089038_5335\Main.java:50: 错误: 需要class, interface或enum
 49                     flag[tx]=true;
 ^
0_0_39089038_5335\Main.java:51: 错误: 需要class, interface或enum
 50                     c[tx]++;
 ^
0_0_39089038_5335\Main.java:52: 错误: 需要class, interface或enum
 51                     if(c[tx]>n) return false;
 ^
0_0_39089038_5335\Main.java:53: 错误: 需要class, interface或enum
 52                     visited[tx]=true;
 ^
0_0_39089038_5335\Main.java:54: 错误: 需要class, interface或enum
 53                 }
 ^
0_0_39089038_5335\Main.java:57: 错误: 需要class, interface或enum
 56         }
 ^
0_0_39089038_5335\Main.java:59: 错误: 需要class, interface或enum
 58     }
 ^
0_0_39089038_5335\Main.java:61: 错误: 需要class, interface或enum
 60 }
 ^
0_0_39089038_5335\Main.java:66: 错误: 需要class, interface或enum
 65     string str;
 ^
0_0_39089038_5335\Main.java:67: 错误: 需要class, interface或enum
 66     while(cin>>n&&n)
 ^
0_0_39089038_5335\Main.java:70: 错误: 需要class, interface或enum
 69         for(i=1;i<=n;i++)cin>>a[i];
 ^
0_0_39089038_5335\Main.java:70: 错误: 需要class, interface或enum
 69         for(i=1;i<=n;i++)cin>>a[i];
                    ^
0_0_39089038_5335\Main.java:70: 错误: 需要class, interface或enum
 69         for(i=1;i<=n;i++)cin>>a[i];
                         ^
0_0_39089038_5335\Main.java:71: 错误: 需要class, interface或enum
 70         for(i=0;i<MAX;i++) head[i]=-1;
 ^
0_0_39089038_5335\Main.java:71: 错误: 需要class, interface或enum
 70         for(i=0;i<MAX;i++) head[i]=-1;
                    ^
0_0_39089038_5335\Main.java:71: 错误: 需要class, interface或enum
 70         for(i=0;i<MAX;i++) head[i]=-1;
                          ^
0_0_39089038_5335\Main.java:72: 错误: 需要class, interface或enum
 71         memset(flag,false,sizeof(flag));
 ^
0_0_39089038_5335\Main.java:73: 错误: 需要class, interface或enum
 72         while(cin>>str&&str!="#")
 ^
0_0_39089038_5335\Main.java:76: 错误: 需要class, interface或enum
 75             if(str=="SAS") add(v,u,0);
 ^
0_0_39089038_5335\Main.java:77: 错误: 需要class, interface或enum
 76             if(str=="SAF") add(v,u,a[v]);
 ^
0_0_39089038_5335\Main.java:78: 错误: 需要class, interface或enum
 77             if(str=="FAF") add(v,u,a[v]-a[u]);
 ^
0_0_39089038_5335\Main.java:79: 错误: 需要class, interface或enum
 78             if(str=="FAS") add(v,u,-a[u]);
 ^
0_0_39089038_5335\Main.java:80: 错误: 需要class, interface或enum
 79         }
 ^
0_0_39089038_5335\Main.java:82: 错误: 需要class, interface或enum
 81         bool yes;
 ^
0_0_39089038_5335\Main.java:83: 错误: 需要class, interface或enum
 82         memset(d,0,sizeof(d));
 ^
0_0_39089038_5335\Main.java:84: 错误: 需要class, interface或enum
 83         for(i=1;i<=n;i++)
 ^
0_0_39089038_5335\Main.java:84: 错误: 需要class, interface或enum
 83         for(i=1;i<=n;i++)
                    ^
0_0_39089038_5335\Main.java:84: 错误: 需要class, interface或enum
 83         for(i=1;i<=n;i++)
                         ^
0_0_39089038_5335\Main.java:89: 错误: 需要class, interface或enum
 88             }
 ^
0_0_39089038_5335\Main.java:91: 错误: 需要class, interface或enum
 90         }
 ^
0_0_39089038_5335\Main.java:94: 错误: 需要class, interface或enum
 93             for(i=1;i<=n;i++)
                        ^
0_0_39089038_5335\Main.java:94: 错误: 需要class, interface或enum
 93             for(i=1;i<=n;i++)
                             ^
0_0_39089038_5335\Main.java:97: 错误: 需要class, interface或enum
 96             }
 ^
0_0_39089038_5335\Main.java:102: 错误: 需要class, interface或enum
101         }
^
0_0_39089038_5335\Main.java:104: 错误: 需要class, interface或enum
103     }
^
0_0_39089038_5335\Main.java:106: 错误: 需要class, interface或enum
105 }
^
66 个错误


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:51:43, Gzip enabled