Your error comes from the way you call your function.
Say we have the following function:
bool foo(int myArray[]) { // do your stuff here }
You will call this function like that:
int tmpArray = [1{1, 2, 3];3} ; foo(tmpArray); // and not foo(tmpArray[]);