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_23864282_20548.cpp: In function 'void dfs(int, int)':
0_0_23864282_20548.cpp:25:5: error: 'len' was not declared in this scope
  if(len==1&&s!=1) {
     ^
0_0_23864282_20548.cpp:26:7: error: 'i' was not declared in this scope
   for(i=0; i<=m; i++) dp[s][i] = hp[s][i];
       ^
0_0_23864282_20548.cpp:30:17: error: 'len' was not declared in this scope
  for(int i=0; i<len; i++) {
                 ^
0_0_23864282_20548.cpp:31:3: error: 'ss' was not declared in this scope
   ss = E[s][i];
   ^
0_0_23864282_20548.cpp:34:7: error: 'j' was not declared in this scope
   for(j=m; j>=0; j--) { //树与子树之间的分组背包,子树花费和是j
       ^
0_0_23864282_20548.cpp:36:8: error: 'k' was not declared in this scope
    for(k=0; k<=j; k++) //ss子树花费是k
        ^
0_0_23864282_20548.cpp:42:6: error: 'j' was not declared in this scope
  for(j=m; j>=0; j--) //树与该树根节点之间的分组背包
      ^
0_0_23864282_20548.cpp:43:7: error: 'k' was not declared in this scope
   for(k=0; k<=j; k++)
       ^


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-23 04:10:12, Gzip enabled