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_29289008_15737.cpp: In function 'int main()':
0_0_29289008_15737.cpp:3:43: error: conflicting declaration 'int k'
 {     double a[10000],k,n,w,max,i,s,t;int k,j;
                                           ^
0_0_29289008_15737.cpp:3:23: note: previous declaration as 'double k'
 {     double a[10000],k,n,w,max,i,s,t;int k,j;
                       ^
0_0_29289008_15737.cpp:7:26: error: invalid types 'double [10000][double]' for array subscript
         {scanf("%lf",&a[k]);s*=a[k];}
                          ^
0_0_29289008_15737.cpp:7:35: error: invalid types 'double [10000][double]' for array subscript
         {scanf("%lf",&a[k]);s*=a[k];}
                                   ^
0_0_29289008_15737.cpp:10:21: error: invalid types 'double [10000][double]' for array subscript
          {    if(a[k]>max)max=a[k]; }
                     ^
0_0_29289008_15737.cpp:10:34: error: invalid types 'double [10000][double]' for array subscript
          {    if(a[k]>max)max=a[k]; }
                                  ^
0_0_29289008_15737.cpp:15:21: error: invalid operands of types 'double' and 'double' to binary 'operator%'
             if(i%a[j]==0)w++;}
                     ^


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-30 17:17:01, Gzip enabled