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_28608557_6592.cpp:5:9: error: 'N' was not declared in this scope
 type in[N];
         ^
0_0_28608557_6592.cpp:6:16: error: 'N' was not declared in this scope
 int n,m,pos,fa[N],col[N],vis[N];;
                ^
0_0_28608557_6592.cpp:6:23: error: 'N' was not declared in this scope
 int n,m,pos,fa[N],col[N],vis[N];;
                       ^
0_0_28608557_6592.cpp:6:30: error: 'N' was not declared in this scope
 int n,m,pos,fa[N],col[N],vis[N];;
                              ^
0_0_28608557_6592.cpp:7:44: error: 'N' was not declared in this scope
 struct Edge{int from,to;type dis;} edge[20*N];
                                            ^
0_0_28608557_6592.cpp: In function 'int Work(int, int, int)':
0_0_28608557_6592.cpp:13:24: error: 'in' was not declared in this scope
   for(int i=0;i<V;i++) in[i]=0x3f3f3f3f;
                        ^
0_0_28608557_6592.cpp:16:10: error: 'edge' was not declared in this scope
    int u=edge[i].from,v=edge[i].to;
          ^
0_0_28608557_6592.cpp:17:19: error: 'in' was not declared in this scope
    if(edge[i].dis<in[v]&&u!=v)
                   ^
0_0_28608557_6592.cpp:17:22: error: 'v' was not declared in this scope
    if(edge[i].dis<in[v]&&u!=v)
                      ^
0_0_28608557_6592.cpp:19:5: error: 'fa' was not declared in this scope
     fa[v]=u;in[v]=edge[i].dis;
     ^
0_0_28608557_6592.cpp:24:7: error: 'in' was not declared in this scope
    if(in[i]==0x3f3f3f3f&&i!=root) return -1;
       ^
0_0_28608557_6592.cpp:26:10: error: 'col' was not declared in this scope
   memset(col,-1,sizeof(col));
          ^
0_0_28608557_6592.cpp:27:10: error: 'vis' was not declared in this scope
   memset(vis,-1,sizeof(vis));
          ^
0_0_28608557_6592.cpp:28:3: error: 'in' was not declared in this scope
   in[root]=0;
   ^
0_0_28608557_6592.cpp:33:20: error: 'fa' was not declared in this scope
     vis[now]=i,now=fa[now];
                    ^
0_0_28608557_6592.cpp:36:15: error: 'fa' was not declared in this scope
     for(int p=fa[now];p!=now;p=fa[p])
               ^
0_0_28608557_6592.cpp:46:10: error: 'edge' was not declared in this scope
    int u=edge[i].from,v=edge[i].to;
          ^
0_0_28608557_6592.cpp:48:19: error: 'v' was not declared in this scope
    edge[i].to=col[v];
                   ^
0_0_28608557_6592.cpp: In function 'int main()':
0_0_28608557_6592.cpp:61:23: error: 'edge' was not declared in this scope
    scanf("%d%d%I64d",&edge[i].from,&edge[i].to,&edge[i].dis);
                       ^
0_0_28608557_6592.cpp:67:4: error: 'edge' was not declared in this scope
    edge[i].from=0,edge[i].to=i-m+1,edge[i].dis=sum;
    ^
0_0_28608557_6592.cpp:70:15: error: unable to find string literal operator 'operator""ans'
   else printf("%I64d %d\n"ans-sum,pos-m);puts("");
               ^


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-12-02 21:25:43, Gzip enabled