I'm trying to create a dynamic array of type int and using a for loop trying to assign a value to each element of the array. I'm getting a syntax error while doing so

In reply to Ammu4392:

cores=new[no_cores] is a function call; it has to be called by another function or task.