0_0_20989240_27840.cpp:16:30: error: stray '#' in program
for(int i = 1 ; i <= N ; i++ )
^
0_0_20989240_27840.cpp:16:35: error: stray '#' in program
for(int i = 1 ; i <= N ; i++ )
^
0_0_20989240_27840.cpp:18:15: error: stray '#' in program
int all = A+B;
^
0_0_20989240_27840.cpp:20:30: error: stray '#' in program
for(int i = 1; i <= N ; i ++){
^
0_0_20989240_27840.cpp:20:35: error: stray '#' in program
for(int i = 1; i <= N ; i ++){
^
0_0_20989240_27840.cpp:21:22: error: stray '#' in program
sum[i] = sum[i-1]+C[i]; //前面所需的总和
^
0_0_20989240_27840.cpp:31:21: error: stray '#' in program
dp[i] = min(dp[i+1]+C[i],all-sum[i-1]-dp[i+1]+1);
^
0_0_20989240_27840.cpp:31:28: error: stray '#' in program
dp[i] = min(dp[i+1]+C[i],all-sum[i-1]-dp[i+1]+1);
^
0_0_20989240_27840.cpp:31:55: error: stray '#' in program
dp[i] = min(dp[i+1]+C[i],all-sum[i-1]-dp[i+1]+1);
^
0_0_20989240_27840.cpp:31:62: error: stray '#' in program
dp[i] = min(dp[i+1]+C[i],all-sum[i-1]-dp[i+1]+1);
^
0_0_20989240_27840.cpp: In function 'int main()':
0_0_20989240_27840.cpp:16:33: error: expected ')' before ';' token
for(int i = 1 ; i <= N ; i++ )
^
0_0_20989240_27840.cpp:16:36: error: lvalue required as unary '&' operand
for(int i = 1 ; i <= N ; i++ )
^
0_0_20989240_27840.cpp:16:40: error: expected primary-expression before ')' token
for(int i = 1 ; i <= N ; i++ )
^
0_0_20989240_27840.cpp:20:33: error: expected ')' before ';' token
for(int i = 1; i <= N ; i ++){
^
0_0_20989240_27840.cpp:20:36: error: lvalue required as unary '&' operand
for(int i = 1; i <= N ; i ++){
^
0_0_20989240_27840.cpp:20:39: error: expected primary-expression before ')' token
for(int i = 1; i <= N ; i ++){
^
0_0_20989240_27840.cpp:31:24: error: expected ']' before ';' token
dp[i] = min(dp[i+1]+C[i],all-sum[i-1]-dp[i+1]+1);
^
0_0_20989240_27840.cpp:31:24: error: expected ')' before ';' token
0_0_20989240_27840.cpp:31:26: error: expected ';' before ']' token
dp[i] = min(dp[i+1]+C[i],all-sum[i-1]-dp[i+1]+1);
^
0_0_20989240_27840.cpp:31:58: error: expected ']' before ';' token
dp[i] = min(dp[i+1]+C[i],all-sum[i-1]-dp[i+1]+1);
^
0_0_20989240_27840.cpp:31:60: error: expected ';' before ']' token
dp[i] = min(dp[i+1]+C[i],all-sum[i-1]-dp[i+1]+1);
^
0_0_20989240_27840.cpp:31:67: error: expected ';' before ')' token
dp[i] = min(dp[i+1]+C[i],all-sum[i-1]-dp[i+1]+1);
^
|