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_29633805_25370.cpp:5:12: error: expected initializer before 'a'
 long longh a[1005];
            ^
0_0_29633805_25370.cpp: In function 'int main()':
0_0_29633805_25370.cpp:15:16: error: invalid types 'int[int]' for array subscript
             a[i] = b+1;
                ^
0_0_29633805_25370.cpp:17:19: error: 'sort' was not declared in this scope
         sort(a,a+n);
                   ^
0_0_29633805_25370.cpp:21:23: error: invalid types 'int[int]' for array subscript
             if(sum*a[i] <= m) sum = sum*a[i];
                       ^
0_0_29633805_25370.cpp:21:44: error: invalid types 'int[int]' for array subscript
             if(sum*a[i] <= m) sum = sum*a[i];
                                            ^
0_0_29633805_25370.cpp:23:13: error: 'else' without a previous 'if'
             else break;
             ^


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-29 19:31:44, Gzip enabled