0_0_18088498_11333.cpp:18:4: error: 'N' was not declared in this scope
}e[N * 2] ;
^
0_0_18088498_11333.cpp: In function 'void add(int, int, int)':
0_0_18088498_11333.cpp:22:5: error: 'e' was not declared in this scope
e[len] = Edge( v , cost , head[u] ) ;
^
0_0_18088498_11333.cpp:22:7: error: 'len' was not declared in this scope
e[len] = Edge( v , cost , head[u] ) ;
^
0_0_18088498_11333.cpp:22:31: error: 'head' was not declared in this scope
e[len] = Edge( v , cost , head[u] ) ;
^
0_0_18088498_11333.cpp: In function 'void init()':
0_0_18088498_11333.cpp:29:13: error: 'head' was not declared in this scope
memset( head , -1 , sizeof( head ) ) ;
^
0_0_18088498_11333.cpp:31:5: error: 'len' was not declared in this scope
len = 0 ;
^
0_0_18088498_11333.cpp: At global scope:
0_0_18088498_11333.cpp:34:10: error: 'N' was not declared in this scope
int head[N] , len , n , v[N] , dp[N][2] , fa[N] ;
^
0_0_18088498_11333.cpp:34:27: error: 'N' was not declared in this scope
int head[N] , len , n , v[N] , dp[N][2] , fa[N] ;
^
0_0_18088498_11333.cpp:34:35: error: 'N' was not declared in this scope
int head[N] , len , n , v[N] , dp[N][2] , fa[N] ;
^
0_0_18088498_11333.cpp:34:46: error: 'N' was not declared in this scope
int head[N] , len , n , v[N] , dp[N][2] , fa[N] ;
^
0_0_18088498_11333.cpp: In function 'int d(int, int, int)':
0_0_18088498_11333.cpp:38:16: error: 'dp' was not declared in this scope
int &ans = dp[u][stat] ;
^
0_0_18088498_11333.cpp:42:9: error: 'e' was not declared in this scope
if( e[head[u]].next == -1 )
^
0_0_18088498_11333.cpp:42:11: error: 'head' was not declared in this scope
if( e[head[u]].next == -1 )
^
0_0_18088498_11333.cpp:44:23: error: 'v' was not declared in this scope
dp[u][stat] = v[u] ;
^
0_0_18088498_11333.cpp:49:18: error: 'head' was not declared in this scope
for( int i = head[u] ; ~i ; i = e[i].next )
^
0_0_18088498_11333.cpp:49:37: error: 'e' was not declared in this scope
for( int i = head[u] ; ~i ; i = e[i].next )
^
0_0_18088498_11333.cpp:62:18: error: 'head' was not declared in this scope
for( int i = head[u] ; ~i ; i = e[i].next )
^
0_0_18088498_11333.cpp:62:37: error: 'e' was not declared in this scope
for( int i = head[u] ; ~i ; i = e[i].next )
^
0_0_18088498_11333.cpp: In function 'int main()':
0_0_18088498_11333.cpp:83:27: error: 'v' was not declared in this scope
scanf( "%d" , v + i ) ;
^
|