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_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);
                                                                   ^


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 10:20:39, Gzip enabled