0_0_20928448_22522.cpp:28:23: error: stray '#' in program
for(int i=0;i<=n;++i)
^
0_0_20928448_22522.cpp:28:28: error: stray '#' in program
for(int i=0;i<=n;++i)
^
0_0_20928448_22522.cpp:37:25: error: stray '#' in program
int cost=(bug[root]+19)/20;
^
0_0_20928448_22522.cpp:43:34: error: stray '#' in program
for(int i=cost;i<=SodierSum;++i)
^
0_0_20928448_22522.cpp:43:39: error: stray '#' in program
for(int i=cost;i<=SodierSum;++i)
^
0_0_20928448_22522.cpp:46:25: error: stray '#' in program
for(int i=0;i<size;++i)
^
0_0_20928448_22522.cpp:46:30: error: stray '#' in program
for(int i=0;i<size;++i)
^
0_0_20928448_22522.cpp:54:51: error: stray '#' in program
for(int send=1;send<=sodier-cost;send++)//派出去的士兵最多sodier-cost,因为至少要留下cost人在父节点
^
0_0_20928448_22522.cpp:54:56: error: stray '#' in program
for(int send=1;send<=sodier-cost;send++)//派出去的士兵最多sodier-cost,因为至少要留下cost人在父节点
^
0_0_20928448_22522.cpp:57:72: error: stray '#' in program
Gain[root][sodier]=max(Gain[root][sodier],Gain[root][sodier-send]+Gain[son][send]);
^
0_0_20928448_22522.cpp:68:27: error: stray '#' in program
for(int i=1;i<=n;++i)
^
0_0_20928448_22522.cpp:68:32: error: stray '#' in program
for(int i=1;i<=n;++i)
^
0_0_20928448_22522.cpp:71:36: error: stray '#' in program
for(int root=1;root<n;root++)
^
0_0_20928448_22522.cpp:71:41: error: stray '#' in program
for(int root=1;root<n;root++)
^
0_0_20928448_22522.cpp: In function 'void init()':
0_0_20928448_22522.cpp:26:41: error: 'memset' was not declared in this scope
memset(visited,false,sizeof(visited));
^
0_0_20928448_22522.cpp:28:24: error: lvalue required as unary '&' operand
for(int i=0;i<=n;++i)
^
0_0_20928448_22522.cpp:28:26: error: expected ')' before ';' token
for(int i=0;i<=n;++i)
^
0_0_20928448_22522.cpp:28:29: error: lvalue required as unary '&' operand
for(int i=0;i<=n;++i)
^
0_0_20928448_22522.cpp:28:32: error: 'i' was not declared in this scope
for(int i=0;i<=n;++i)
^
0_0_20928448_22522.cpp: In function 'void dfs(int)':
0_0_20928448_22522.cpp:37:28: error: expected ')' before ';' token
int cost=(bug[root]+19)/20;
^
0_0_20928448_22522.cpp:37:31: error: expected ';' before ')' token
int cost=(bug[root]+19)/20;
^
0_0_20928448_22522.cpp:43:35: error: lvalue required as unary '&' operand
for(int i=cost;i<=SodierSum;++i)
^
0_0_20928448_22522.cpp:43:37: error: expected ')' before ';' token
for(int i=cost;i<=SodierSum;++i)
^
0_0_20928448_22522.cpp:43:40: error: lvalue required as unary '&' operand
for(int i=cost;i<=SodierSum;++i)
^
0_0_20928448_22522.cpp:43:43: error: 'i' was not declared in this scope
for(int i=cost;i<=SodierSum;++i)
^
0_0_20928448_22522.cpp:46:26: error: lvalue required as unary '&' operand
for(int i=0;i<size;++i)
^
0_0_20928448_22522.cpp:46:28: error: expected ')' before ';' token
for(int i=0;i<size;++i)
^
0_0_20928448_22522.cpp:46:31: error: lvalue required as unary '&' operand
for(int i=0;i<size;++i)
^
0_0_20928448_22522.cpp:46:35: error: expected ';' before ')' token
for(int i=0;i<size;++i)
^
0_0_20928448_22522.cpp:90:1: error: expected '}' at end of input
}
^
|