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_20981202_27547.cpp:10:20: error: stray '#' in program
 const int maxn=1e3+10;
                    ^
0_0_20981202_27547.cpp:11:20: error: stray '#' in program
 const int maxm=1e6+10;
                    ^
0_0_20981202_27547.cpp:20:23: error: stray '#' in program
         for(i=0;i<n;i++)
                       ^
0_0_20981202_27547.cpp:20:28: error: stray '#' in program
         for(i=0;i<n;i++)
                            ^
0_0_20981202_27547.cpp:22:18: error: stray '#' in program
         sort(a,a+n);
                  ^
0_0_20981202_27547.cpp:26:23: error: stray '#' in program
         for(i=0;i<n;i++)
                       ^
0_0_20981202_27547.cpp:26:28: error: stray '#' in program
         for(i=0;i<n;i++)
                            ^
0_0_20981202_27547.cpp:28:17: error: stray '#' in program
             m=m+a[i];//前i个数能组合的最大值。
                 ^
0_0_20981202_27547.cpp:34:26: error: stray '#' in program
             while(f[k])k++;
                          ^
0_0_20981202_27547.cpp:34:31: error: stray '#' in program
             while(f[k])k++;
                               ^
0_0_20981202_27547.cpp:37:22: error: stray '#' in program
         while(f[k])k++;
                      ^
0_0_20981202_27547.cpp:37:27: error: stray '#' in program
         while(f[k])k++;
                           ^
0_0_20981202_27547.cpp:10:21: error: invalid operands of types 'double' and 'int' to binary 'operator&'
 const int maxn=1e3+10;
                     ^
0_0_20981202_27547.cpp:10:24: error: expected unqualified-id before numeric constant
 const int maxn=1e3+10;
                        ^
0_0_20981202_27547.cpp:11:21: error: invalid operands of types 'double' and 'int' to binary 'operator&'
 const int maxm=1e6+10;
                     ^
0_0_20981202_27547.cpp:11:24: error: expected unqualified-id before numeric constant
 const int maxm=1e6+10;
                        ^
0_0_20981202_27547.cpp:12:11: error: size of array 'a' is not an integral constant-expression
 int a[maxn];
           ^
0_0_20981202_27547.cpp:13:11: error: size of array 'f' is not an integral constant-expression
 int f[maxm];
           ^
0_0_20981202_27547.cpp: In function 'int main()':
0_0_20981202_27547.cpp:20:26: error: expected ')' before ';' token
         for(i=0;i<n;i++)
                          ^
0_0_20981202_27547.cpp:20:29: error: lvalue required as unary '&' operand
         for(i=0;i<n;i++)
                             ^
0_0_20981202_27547.cpp:20:32: error: expected primary-expression before ')' token
         for(i=0;i<n;i++)
                                ^
0_0_20981202_27547.cpp:22:19: error: invalid operands of types 'int [1]' and 'int' to binary 'operator&'
         sort(a,a+n);
                   ^
0_0_20981202_27547.cpp:22:23: error: expected ';' before ')' token
         sort(a,a+n);
                       ^
0_0_20981202_27547.cpp:26:26: error: expected ')' before ';' token
         for(i=0;i<n;i++)
                          ^
0_0_20981202_27547.cpp:26:29: error: lvalue required as unary '&' operand
         for(i=0;i<n;i++)
                             ^
0_0_20981202_27547.cpp:26:32: error: expected primary-expression before ')' token
         for(i=0;i<n;i++)
                                ^
0_0_20981202_27547.cpp:37:28: error: lvalue required as unary '&' operand
         while(f[k])k++;
                            ^


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-09-30 14:27:14, Gzip enabled