Error when i count number of particles

i use the following code to count the number of particles for each energy bin :
G4double E_min=1.,Pas=1.;
for (i=0;i<100;i++)
if(E_min<Energy && Energy<E_min+Pas)
fEventAction-> AddCounter(counter[i],i);
but i get this error

i hope someone can help,
Thank you

in eventaction.hh i use this function:
void AddCounter(G4double c[100],G4int i)
Counter[i] += c[i];