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_23311384_3802.cpp: In function 'void InitTop()':
0_0_23311384_3802.cpp:3:26: error: 'n' was not declared in this scope
     for (int i = 1; i <= n; i++)  
                          ^
0_0_23311384_3802.cpp:4:13: error: 'indegree' was not declared in this scope
         if (indegree[i] == 0)  
             ^
0_0_23311384_3802.cpp:5:13: error: 'q' was not declared in this scope
             q.push(i);  
             ^
0_0_23311384_3802.cpp: In function 'void TopSort()':
0_0_23311384_3802.cpp:11:12: error: 'q' was not declared in this scope
     while(!q.empty())  
            ^
0_0_23311384_3802.cpp:16:18: error: 'n' was not declared in this scope
         if (c != n)  
                  ^
0_0_23311384_3802.cpp:17:31: error: 'printf' was not declared in this scope
             printf("%d ", temp), c++;  
                               ^
0_0_23311384_3802.cpp:19:32: error: 'printf' was not declared in this scope
             printf("%d\n", temp);  
                                ^
0_0_23311384_3802.cpp:20:30: error: 'n' was not declared in this scope
         for (int i = 1; i <= n; i++)  
                              ^
0_0_23311384_3802.cpp:22:17: error: 'map' was not declared in this scope
             if (map[temp][i])  
                 ^
0_0_23311384_3802.cpp:24:17: error: 'indegree' was not declared in this scope
                 indegree[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-11-30 12:36:58, Gzip enabled