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);
^
|