0_0_20674186_6607.cpp: In function 'int main()':
0_0_20674186_6607.cpp:29:15: error: invalid types 'Node [1000][double]' for array subscript
if(m>=a[cnt].k){
^
0_0_20674186_6607.cpp:30:13: error: invalid types 'Node [1000][double]' for array subscript
m-=a[cnt].k;
^
0_0_20674186_6607.cpp:31:15: error: invalid types 'Node [1000][double]' for array subscript
sum+=a[cnt].j;
^
0_0_20674186_6607.cpp:35:21: error: invalid types 'Node [1000][double]' for array subscript
sum+=m*1.0/a[cnt].k*a[cnt].j;
^
0_0_20674186_6607.cpp:35:30: error: invalid types 'Node [1000][double]' for array subscript
sum+=m*1.0/a[cnt].k*a[cnt].j;
^
|