/ Vijos /

记录详情

Compile Error

foo.c:2:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
 include <cstdio>
         ^
foo.c:10:1: error: unknown type name 'define'
 define REP( i , l , r ) for ( int i = l ; i <= r ; ++ i )
 ^
foo.c: In function 'REP':
foo.c:10:25: error: expected declaration specifiers before 'for'
 define REP( i , l , r ) for ( int i = l ; i <= r ; ++ i )
                         ^
foo.c:10:43: error: expected declaration specifiers before 'i'
 define REP( i , l , r ) for ( int i = l ; i <= r ; ++ i )
                                           ^
foo.c:10:52: error: expected declaration specifiers before '++' token
 define REP( i , l , r ) for ( int i = l ; i <= r ; ++ i )
                                                    ^
foo.c:12:39: error: expected declaration specifiers before 'i'
 define rep( i , x ) for ( int i = 0 ; i ++ < x ; )
                                       ^
foo.c:12:50: error: expected declaration specifiers before ')' token
 define rep( i , x ) for ( int i = 0 ; i ++ < x ; )
                                                  ^
foo.c:14:44: error: expected declaration specifiers before 'i'
 define DOWN( i , r , l ) for ( int i = r ; i >= l ; -- i )
                                            ^
foo.c:14:53: error: expected declaration specifiers before '--' token
 define DOWN( i , r , l ) for ( int i = r ; i >= l ; -- i )
                                                     ^
foo.c:18:1: error: parameter 'maxn' is initialized
 const int maxn = 75 ; 
 ^
foo.c:21:2: error: unknown type name 'bool'
  int d , v , u ; bool operator < ( const ntype &x ) const { return d < x.d ; } } t[ maxn ] ;
  ^
foo.c:21:32: error: expected ':', ',', ';', '}' or '__attribute__' before '<' token
  int d , v , u ; bool operator < ( const ntype &x ) const { return d < x.d ; } } t[ maxn ] ;
                                ^
foo.c:23:1: error: parameter 'm' is initialized
 int a[ maxn ] , b[ maxn ] , n , m = 0 , k , w[ maxn ] , sum[ maxn ] ;
 ^
foo.c:25:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
 inline int getp( int x ) {
                          ^
foo.c:28:1: error: parameter 'inf' is initialized
 const int inf = 1000000000 ;
 ^
foo.c:29:2: error: unknown type name 'll'
  const ll INF = ll( inf ) * ll( inf ) ;
  ^
foo.c:29:2: error: parameter 'INF' is initialized
foo.c:29:2: warning: implicit declaration of function 'll' [-Wimplicit-function-declaration]
foo.c:31:1: error: expected declaration specifiers before 'll'
 ll dp[ maxn ][ maxn ][ maxn ] , suff[ 2 ][ maxn ] ;
 ^
foo.c:32:2: error: unknown type name 'bool'
  bool used[ maxn ][ maxn ] ;
  ^
foo.c:34:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
 void dfs( int l , int r ) {
                           ^
foo.c:37:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
 int main( ) {
             ^
foo.c:32:7: error: declaration for parameter 'used' but no such parameter
  bool used[ maxn ][ maxn ] ;
       ^
foo.c:29:11: error: declaration for parameter 'INF' but no such parameter
  const ll INF = ll( inf ) * ll( inf ) ;
           ^
foo.c:28:11: error: declaration for parameter 'inf' but no such parameter
 const int inf = 1000000000 ;
           ^
foo.c:23:57: error: declaration for parameter 'sum' but no such parameter
 int a[ maxn ] , b[ maxn ] , n , m = 0 , k , w[ maxn ] , sum[ maxn ] ;
                                                         ^
foo.c:23:45: error: declaration for parameter 'w' but no such parameter
 int a[ maxn ] , b[ maxn ] , n , m = 0 , k , w[ maxn ] , sum[ maxn ] ;
                                             ^
foo.c:23:41: error: declaration for parameter 'k' but no such parameter
 int a[ maxn ] , b[ maxn ] , n , m = 0 , k , w[ maxn ] , sum[ maxn ] ;
                                         ^
foo.c:23:33: error: declaration for parameter 'm' but no such parameter
 int a[ maxn ] , b[ maxn ] , n , m = 0 , k , w[ maxn ] , sum[ maxn ] ;
                                 ^

信息

递交者
类型
递交
题目
P1821 二叉查找树
语言
C
递交时间
2015-12-22 12:37:09
评测时间
2015-12-22 12:37:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes