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