Why do you refuse to try
cnt[i]
as jlp765 suggests?
Do you have an idea how plain
cnt +=
should work? All the parallel calculated results should accumulate in this
single variable. Then you may need something to control the access to it.
