Compile Error

/in/foo.cc:67:63: error: macro "fer" requires 3 arguments, but only 1 given
         fer( register int i = head[ u ] ; i ; i = a[ i ].next ){
                                                               ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:47:18: error: 't' was not declared in this scope
     fer( i , 1 , t ){
                  ^
/in/foo.cc:6:57: note: in definition of macro 'fer'
 #define fer( a , b , c ) for( register int a = b ; a <= c ; a ++ )
                                                         ^
/in/foo.cc: At global scope:
/in/foo.cc:6:26: error: expected primary-expression before 'for'
 #define fer( a , b , c ) for( register int a = b ; a <= c ; a ++ )
                          ^
/in/foo.cc:63:5: note: in expansion of macro 'fer'
     fer( i , 1 , n ) dis[ i ] = INF , vis[ i ] = 0 ;
     ^~~
/in/foo.cc:6:26: error: expected ']' before 'for'
 #define fer( a , b , c ) for( register int a = b ; a <= c ; a ++ )
                          ^
/in/foo.cc:63:5: note: in expansion of macro 'fer'
     fer( i , 1 , n ) dis[ i ] = INF , vis[ i ] = 0 ;
     ^~~
/in/foo.cc:63:10: error: 'i' does not name a type
     fer( i , 1 , n ) dis[ i ] = INF , vis[ i ] = 0 ;
          ^
/in/foo.cc:6:52: note: in definition of macro 'fer'
 #define fer( a , b , c ) for( register int a = b ; a <= c ; a ++ )
                                                    ^
/in/foo.cc:63:10: error: 'i' does not name a type
     fer( i , 1 , n ) dis[ i ] = INF , vis[ i ] = 0 ;
          ^
/in/foo.cc:6:61: note: in definition of macro 'fer'
 #define fer( a , b , c ) for( register int a = b ; a <= c ; a ++ )
                                                             ^
/in/foo.cc:64:5: error: 'q' does not name a type
     q.push( s ) , dis[ s ] = 0 , vis[ s ] = 1 ; 
     ^
/in/foo.cc:65:5: error: expected unqualified-id before 'while'
     while( ! q.empty() ){
     ^~~~~
/in/foo.cc:39:13: warning: inline function 'void spaf()' used but never defined
 inline void spaf() ;
             ^~~~

信息

递交者
类型
递交
题目
「一本通 3.2 练习 7」道路和航线
语言
C++
递交时间
2020-10-18 00:07:19
评测时间
2020-10-18 00:07:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes