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_31130153_22660.cpp:14:44: error: '_n' has not been declared
     TopologicalSort_Matrix ( int _n ) ; n( _n ) { };
                                            ^
0_0_31130153_22660.cpp:14:51: error: 'int TopologicalSort_Matrix::n(int)' conflicts with a previous declaration
     TopologicalSort_Matrix ( int _n ) ; n( _n ) { };
                                                   ^
0_0_31130153_22660.cpp:11:6: note: previous declaration 'int TopologicalSort_Matrix::n'
  int n, cnt;
      ^
0_0_31130153_22660.cpp: In constructor 'TopologicalSort_Matrix::TopologicalSort_Matrix()':
0_0_31130153_22660.cpp:13:34: error: expected identifier before '{' token
     TopologicalSort_Matrix ( ) : { };
                                  ^
0_0_31130153_22660.cpp: In member function 'void TopologicalSort_Matrix::ini(int)':
0_0_31130153_22660.cpp:22:11: error: invalid use of member (did you forget the '&' ?)
   this->n = n;
           ^
0_0_31130153_22660.cpp: In member function 'void TopologicalSort_Matrix::topo()':
0_0_31130153_22660.cpp:32:25: error: invalid use of member (did you forget the '&' ?)
   for ( int i = 1; i <= n; ++i ) 
                         ^
0_0_31130153_22660.cpp:39:27: error: invalid use of member (did you forget the '&' ?)
    for ( int v = 1 ; v <= n ; ++v ) { 
                           ^


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-12-02 14:34:10, Gzip enabled