Because you have declared then as taking parameters:
void fillBox(int magicbox[19][19], int n);
void createBox(int magicbox[19][19], int n);
And then called them without supplying the parameters:
createBox();
fillBox();
You need to declare the array somewhere, and pass that, and presumably pass the size of each array dimension as the second parameter.