0_0_22229069_10399.cpp:5:3: error: found ':' in nested-name-specifier, expected '::'
u:v
^
0_0_22229069_10399.cpp:5:2: error: 'u' does not name a type
u:v
^
0_0_22229069_10399.cpp: In function 'void dfs(int)':
0_0_22229069_10399.cpp:13:16: error: 'v' was not declared in this scope
for(int j=0;j<v[i].size();j++)
^
0_0_22229069_10399.cpp:16:44: error: expected primary-expression before ';' token
f[i][0]+=max(f[v[i][j]][0],f[v[i][j]][1]);
^
0_0_22229069_10399.cpp:16:44: error: expected ':' before ';' token
0_0_22229069_10399.cpp:16:44: error: expected primary-expression before ';' token
0_0_22229069_10399.cpp: In function 'int main()':
0_0_22229069_10399.cpp:28:3: error: 'v' was not declared in this scope
v[y].push_back(x);b[x]=1;
^
0_0_22229069_10399.cpp:34:37: error: expected primary-expression before ')' token
printf("%d\n",max(f[i][0],f[i][1]));
^
0_0_22229069_10399.cpp:34:37: error: expected ':' before ')' token
0_0_22229069_10399.cpp:34:37: error: expected primary-expression before ')' token
|