0_0_21590732_5920.cpp:4:1: error: 'vector' does not name a type
vector<int> List[Max_N] ;
^
0_0_21590732_5920.cpp: In function 'void dfs(int, int)':
0_0_21590732_5920.cpp:10:21: error: 'List' was not declared in this scope
for(i = 0 ; i < List[u].size() ; i++){
^
0_0_21590732_5920.cpp:16:53: error: 'max' was not declared in this scope
dp[u][notgo] += max(dp[v][go] , dp[v][notgo]) ;
^
0_0_21590732_5920.cpp: In function 'int main()':
0_0_21590732_5920.cpp:23:12: error: 'cin' was not declared in this scope
while(cin>>N){
^
0_0_21590732_5920.cpp:24:37: error: 'memset' was not declared in this scope
memset(dp , 0 , sizeof(dp)) ;
^
0_0_21590732_5920.cpp:25:37: error: 'List' was not declared in this scope
for(i = 1 ; i <= N ; i++) List[i].clear() ;
^
0_0_21590732_5920.cpp:27:36: error: 'scanf' was not declared in this scope
scanf("%d" ,&dp[i][go]) ;
^
0_0_21590732_5920.cpp:28:37: error: 'scanf' was not declared in this scope
while(scanf("%d%d" ,&u ,&v)){
^
0_0_21590732_5920.cpp:31:16: error: 'List' was not declared in this scope
List[u].push_back(v) ;
^
0_0_21590732_5920.cpp:35:55: error: 'max' was not declared in this scope
printf("%d\n" , max(dp[1][go] , dp[1][notgo])) ;
^
0_0_21590732_5920.cpp:35:56: error: 'printf' was not declared in this scope
printf("%d\n" , max(dp[1][go] , dp[1][notgo])) ;
^
|