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_35822811_16320.cpp:11:7: error: 'N' was not declared in this scope
 }edge[N*2];
       ^
0_0_35822811_16320.cpp:12:10: error: 'N' was not declared in this scope
 int head[N],tot;
          ^
0_0_35822811_16320.cpp:14:9: error: 'N' was not declared in this scope
 int dfn[N],low[N];
         ^
0_0_35822811_16320.cpp:14:16: error: 'N' was not declared in this scope
 int dfn[N],low[N];
                ^
0_0_35822811_16320.cpp:15:10: error: 'N' was not declared in this scope
 bool vis[N];//标记数组
          ^
0_0_35822811_16320.cpp:16:9: error: 'N' was not declared in this scope
 int scc[N];//记录结点i属于哪个强连通分量
         ^
0_0_35822811_16320.cpp: In function 'void init()':
0_0_35822811_16320.cpp:24:12: error: 'head' was not declared in this scope
     memset(head,-1,sizeof(head));
            ^
0_0_35822811_16320.cpp:25:12: error: 'vis' was not declared in this scope
     memset(vis,0,sizeof(vis));
            ^
0_0_35822811_16320.cpp:26:12: error: 'dfn' was not declared in this scope
     memset(dfn,0,sizeof(dfn));
            ^
0_0_35822811_16320.cpp:27:12: error: 'low' was not declared in this scope
     memset(low,0,sizeof(low));
            ^
0_0_35822811_16320.cpp:28:12: error: 'scc' was not declared in this scope
     memset(scc,0,sizeof(scc));
            ^
0_0_35822811_16320.cpp: In function 'void addEdge(int, int)':
0_0_35822811_16320.cpp:31:5: error: 'edge' was not declared in this scope
     edge[++tot].to=to;
     ^
0_0_35822811_16320.cpp:32:20: error: 'head' was not declared in this scope
     edge[tot].next=head[from];
                    ^
0_0_35822811_16320.cpp: In function 'void Tarjan(int)':
0_0_35822811_16320.cpp:36:5: error: 'vis' was not declared in this scope
     vis[x]=true;
     ^
0_0_35822811_16320.cpp:37:5: error: 'dfn' was not declared in this scope
     dfn[x]=low[x]=++block_cnt;
     ^
0_0_35822811_16320.cpp:37:12: error: 'low' was not declared in this scope
     dfn[x]=low[x]=++block_cnt;
            ^
0_0_35822811_16320.cpp:40:15: error: 'head' was not declared in this scope
     for(int i=head[x]; i!=-1; i=edge[i].next) { 
               ^
0_0_35822811_16320.cpp:40:33: error: 'edge' was not declared in this scope
     for(int i=head[x]; i!=-1; i=edge[i].next) { 
                                 ^
0_0_35822811_16320.cpp:57:13: error: 'scc' was not declared in this scope
             scc[temp]=sig;
             ^
0_0_35822811_16320.cpp: In function 'int main()':
0_0_35822811_16320.cpp:84:13: error: 'dfn' was not declared in this scope
         if(!dfn[i])
             ^
0_0_35822811_16320.cpp:87:10: error: 'scc' was not declared in this scope
      if (scc[i] == scc[i + 3 * n])
          ^


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-10-01 21:39:51, Gzip enabled