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_27691105_28144.cpp:4:11: error: redefinition of 'const int N'
 const int N = 1e5 + 10;
           ^
0_0_27691105_28144.cpp:3:11: note: 'const int N' previously defined here
 const int N = 5010;
           ^
0_0_27691105_28144.cpp:10:4: error: 'M' was not declared in this scope
 }e[M];
    ^
0_0_27691105_28144.cpp:13:8: error: 'M' was not declared in this scope
 }e_new[M];
        ^
0_0_27691105_28144.cpp: In function 'void add(int, int)':
0_0_27691105_28144.cpp:24:2: error: 'e' was not declared in this scope
  e[++num].nx = head[u],e[num].v = v,head[u] = num;
  ^
0_0_27691105_28144.cpp: In function 'void add_new(int, int)':
0_0_27691105_28144.cpp:28:2: error: 'e_new' was not declared in this scope
  e_new[++num_new].nx = head_new[u],e_new[num_new].v = v,head_new[u] = num;
  ^
0_0_27691105_28144.cpp: In function 'void tarjan(int)':
0_0_27691105_28144.cpp:36:31: error: 'e' was not declared in this scope
  for(int i = head[u]; ~i; i = e[i].nx) {
                               ^
0_0_27691105_28144.cpp: In function 'bool dfs(int)':
0_0_27691105_28144.cpp:51:35: error: 'e_new' was not declared in this scope
  for(int i = head_new[u]; ~i; i = e_new[i].nx) {
                                   ^
0_0_27691105_28144.cpp: In function 'int main(int, const char**)':
0_0_27691105_28144.cpp:81:33: error: 'e' was not declared in this scope
    for(int j = head[i]; ~j; j = e[j].nx) {
                                 ^


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-15 21:11:10, Gzip enabled