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_35645081_6131.cpp:32:1: error: expected initializer before 'int'
 int dfn[maxn],low[maxn],cnt,Time;
 ^
0_0_35645081_6131.cpp: In function 'void init()':
0_0_35645081_6131.cpp:39:5: error: 'Time' was not declared in this scope
     Time=cnt=tot=0;
     ^
0_0_35645081_6131.cpp:39:10: error: 'cnt' was not declared in this scope
     Time=cnt=tot=0;
          ^
0_0_35645081_6131.cpp:40:12: error: 'dp' was not declared in this scope
     memset(dp,0,sizeof(dp));
            ^
0_0_35645081_6131.cpp:43:31: error: 'dfn' was not declared in this scope
         In[i]=0,num[i]=col[i]=dfn[i]=low[i]=0,vec[i].clear(),head[i]=-1,vis[i]=false;
                               ^
0_0_35645081_6131.cpp:43:38: error: 'low' was not declared in this scope
         In[i]=0,num[i]=col[i]=dfn[i]=low[i]=0,vec[i].clear(),head[i]=-1,vis[i]=false;
                                      ^
0_0_35645081_6131.cpp: In function 'void Tarjan(int)':
0_0_35645081_6131.cpp:48:5: error: 'dfn' was not declared in this scope
     dfn[x]=low[x]=++Time;
     ^
0_0_35645081_6131.cpp:48:12: error: 'low' was not declared in this scope
     dfn[x]=low[x]=++Time;
            ^
0_0_35645081_6131.cpp:48:21: error: 'Time' was not declared in this scope
     dfn[x]=low[x]=++Time;
                     ^
0_0_35645081_6131.cpp:58:18: error: 'cnt' was not declared in this scope
         int y; ++cnt;
                  ^
0_0_35645081_6131.cpp: In function 'void dfs(int, int)':
0_0_35645081_6131.cpp:71:6: error: 'dp' was not declared in this scope
      dp[fa]+=num[x];
      ^
0_0_35645081_6131.cpp: In function 'void solve(int)':
0_0_35645081_6131.cpp:83:21: error: 'cnt' was not declared in this scope
      for(int i=1;i<=cnt;i++)
                     ^
0_0_35645081_6131.cpp:91:21: error: 'cnt' was not declared in this scope
      for(int i=1;i<=cnt;i++) Max=max(Max,dp[i]);
                     ^
0_0_35645081_6131.cpp:91:42: error: 'dp' was not declared in this scope
      for(int i=1;i<=cnt;i++) Max=max(Max,dp[i]);
                                          ^
0_0_35645081_6131.cpp:94:21: error: 'cnt' was not declared in this scope
      for(int i=1;i<=cnt;i++)
                     ^
0_0_35645081_6131.cpp:95:18: error: 'dp' was not declared in this scope
          if(Max==dp[i])
                  ^
0_0_35645081_6131.cpp: In function 'int main()':
0_0_35645081_6131.cpp:127:17: error: 'dfn' was not declared in this scope
             if(!dfn[i]) Tarjan(i);
                 ^


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-06-28 05:11:27, Gzip enabled