error: size of array 'momentumOfparticles' has non-integral type 'float [i]'

ok did that