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_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


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-30 00:02:14, Gzip enabled