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_29889872_10511.cpp: In function 'int dfs(int)':
0_0_29889872_10511.cpp:22:5: error: 'col' was not declared in this scope
  if(col==0)
     ^
0_0_29889872_10511.cpp:26:32: error: too many arguments to function 'int dfs(int)'
    f[x][col]+=max(dfs(e[i].to,1),dfs(e[i].to,0));
                                ^
0_0_29889872_10511.cpp:19:5: note: declared here
 int dfs(int x)
     ^
0_0_29889872_10511.cpp:26:47: error: too many arguments to function 'int dfs(int)'
    f[x][col]+=max(dfs(e[i].to,1),dfs(e[i].to,0));
                                               ^
0_0_29889872_10511.cpp:19:5: note: declared here
 int dfs(int x)
     ^
0_0_29889872_10511.cpp:33:28: error: too many arguments to function 'int dfs(int)'
    f[x][col]+=dfs(e[i].to,0); 
                            ^
0_0_29889872_10511.cpp:19:5: note: declared here
 int dfs(int x)
     ^
0_0_29889872_10511.cpp:37:14: error: 'col' was not declared in this scope
  return f[x][col];
              ^


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-10-06 10:36:10, Gzip enabled