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_39276045_13830.cpp:59:11: error: redefinition of 'const int MAXN'
   59 | const int MAXN = 500;
      |           ^~~~
0_0_39276045_13830.cpp:7:11: note: 'const int MAXN' previously defined here
    7 | const int MAXN = 500;
      |           ^~~~
0_0_39276045_13830.cpp:61:13: error: redefinition of 'std::vector<int> Graph [500]'
   61 | vector<int> Graph[MAXN];
      |             ^~~~~
0_0_39276045_13830.cpp:9:13: note: 'std::vector<int> Graph [500]' previously defined here
    9 | vector<int> Graph[MAXN];
      |             ^~~~~
0_0_39276045_13830.cpp:63:5: error: redefinition of 'int in_degree [500]'
   63 | int in_degree[MAXN];
      |     ^~~~~~~~~
0_0_39276045_13830.cpp:11:5: note: 'int in_degree [500]' previously declared here
   11 | int in_degree[MAXN];
      |     ^~~~~~~~~
0_0_39276045_13830.cpp:65:6: error: redefinition of 'bool TSort(int)'
   65 | bool TSort(int n){
      |      ^~~~~
0_0_39276045_13830.cpp:13:6: note: 'bool TSort(int)' previously defined here
   13 | bool TSort(int n){
      |      ^~~~~
0_0_39276045_13830.cpp:85:5: error: redefinition of 'int main()'
   85 | int main(){
      |     ^~~~
0_0_39276045_13830.cpp:33:5: note: 'int main()' previously defined here
   33 | int main(){
      |     ^~~~


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-26 18:31:37, Gzip enabled