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_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
 }
 ^


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-26 13:10:15, Gzip enabled