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_32852438_16658.cpp:6:1: error: 'vector' does not name a type
 vector<int>v[N];
 ^
0_0_32852438_16658.cpp: In function 'void dfs(int)':
0_0_32852438_16658.cpp:10:19: error: 'v' was not declared in this scope
     for(int i=0;i<v[now].size();i++)
                   ^
0_0_32852438_16658.cpp:12:19: error: 'v' was not declared in this scope
     for(int i=0;i<v[now].size();i++)
                   ^
0_0_32852438_16658.cpp:13:55: error: 'max' was not declared in this scope
         f[now][0]+=max(f[v[now][i]][0],f[v[now][i]][1]),f[now][1]+=f[v[now][i]][0];
                                                       ^
0_0_32852438_16658.cpp: In function 'int main()':
0_0_32852438_16658.cpp:18:24: error: 'scanf' was not declared in this scope
     while(scanf("%d",&n)!=EOF&&n)
                        ^
0_0_32852438_16658.cpp:18:27: error: 'EOF' was not declared in this scope
     while(scanf("%d",&n)!=EOF&&n)
                           ^
0_0_32852438_16658.cpp:21:13: error: 'v' was not declared in this scope
             v[i].clear();
             ^
0_0_32852438_16658.cpp:28:13: error: 'v' was not declared in this scope
             v[x].push_back(y);
             ^
0_0_32852438_16658.cpp:36:41: error: 'max' was not declared in this scope
                 res+=max(f[i][0],f[i][1]);
                                         ^
0_0_32852438_16658.cpp:38:26: error: 'printf' was not declared in this scope
         printf("%d\n",res);
                          ^


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-12-02 06:33:10, Gzip enabled