F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-23 04:39:13, Gzip enabled