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_30217309_29383.cpp: In function 'int main()':
0_0_30217309_29383.cpp:17:23: error: invalid types 'int[int]' for array subscript
         if(2*b-a<0)a[0]=1;
                       ^
0_0_30217309_29383.cpp:18:28: error: invalid types 'int[int]' for array subscript
         else if(2*b==a) a[1]=1;
                            ^
0_0_30217309_29383.cpp:23:25: error: 'k' was not declared in this scope
             if(5*L>sum) k[0]=1;
                         ^
0_0_30217309_29383.cpp:31:32: error: invalid types 'int[int]' for array subscript
                             a[5]=i,a[9]=L-i;
                                ^
0_0_30217309_29383.cpp:31:39: error: invalid types 'int[int]' for array subscript
                             a[5]=i,a[9]=L-i;
                                       ^
0_0_30217309_29383.cpp:35:32: error: invalid types 'int[int]' for array subscript
                             a[5]=i-1;k[x]=1;a[9]=L-i;
                                ^
0_0_30217309_29383.cpp:35:38: error: 'k' was not declared in this scope
                             a[5]=i-1;k[x]=1;a[9]=L-i;
                                      ^
0_0_30217309_29383.cpp:35:48: error: invalid types 'int[int]' for array subscript
                             a[5]=i-1;k[x]=1;a[9]=L-i;
                                                ^
0_0_30217309_29383.cpp:49:28: error: invalid types 'int[int]' for array subscript
                         a[x]=1;a[4]=i;a[9]=L;
                            ^
0_0_30217309_29383.cpp:49:35: error: invalid types 'int[int]' for array subscript
                         a[x]=1;a[4]=i;a[9]=L;
                                   ^
0_0_30217309_29383.cpp:49:42: error: invalid types 'int[int]' for array subscript
                         a[x]=1;a[4]=i;a[9]=L;
                                          ^
0_0_30217309_29383.cpp:57:22: error: invalid types 'int[int]' for array subscript
             while(a[i]--)
                      ^


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-06-26 21:48:07, Gzip enabled