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++;}
^
|