/ Vijos /

记录详情

Compile Error

foo.cpp:1:19: warning: extra tokens at end of #include directive [enabled by default]
 #include <cstdio> #include <algorithm> #include <cstring> #include <bitset>
                   ^
foo.cpp: In function 'int sap(int, int)':
foo.cpp:31:58: error: 'min' was not declared in this scope
         int ret = sap( p -> t , min( flow - rec , p -> f ) ) ;
                                                          ^
foo.cpp: In function 'int maxflow()':
foo.cpp:41:37: error: 'memset' was not declared in this scope
     memset( gap , 0 , sizeof( gap ) ) ;
                                     ^
foo.cpp: At global scope:
foo.cpp:53:1: error: 'bitset' does not name a type
 bitset < maxn > f , vi ;
 ^
foo.cpp: In function 'void dfs(int, int)':
foo.cpp:56:5: error: 'f' was not declared in this scope
     f[ v ] = true ;
     ^
foo.cpp:57:89: error: 'vi' was not declared in this scope
     for ( P[ v ] = head[ v ] ; P[ v ] ; P[ v ] = P[ v ] -> next ) if ( P[ v ] -> f && ! vi[ P[ v ] -> t ] ) {
                                                                                         ^
foo.cpp:65:22: error: 'vi' was not declared in this scope
     f[ v ] = false , vi[ v ] = true ;
                      ^
foo.cpp: In function 'int main()':
foo.cpp:71:39: error: 'memset' was not declared in this scope
     memset( head , 0 , sizeof( head ) ) ;
                                       ^
foo.cpp:81:9: error: 'f' was not declared in this scope
         f.reset(  ) ;
         ^
foo.cpp:84:48: error: 'swap' was not declared in this scope
             if ( x -> t > y -> t ) swap( x , y ) ;
                                                ^
foo.cpp:89:17: error: 'vi' was not declared in this scope
                 vi.reset(  ) ; vi[ S ] = true ;
                 ^

信息

递交者
类型
递交
题目
P1820 变换序列
语言
C++
递交时间
2016-03-23 07:49:31
评测时间
2016-03-23 07:49:31
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes