Were given the header file (which only contains the function prototype) and the object file with the defenition to a function that prompts the user to enter the filename (a file of only integer numbers), to which the function will then store the integers into an array.

the header file also has 2 constants defined: ROWS = 9, COLS = 9.
The function prototype is:

void LoadPuzzle(int original[ROWS][COLS], int solution[ROWS][COLS], int rows, int cols);

Code:
#include <stdio.h>
#include "loadPuzzle.h"

int main()
{
    int original[ROWS][COLS];
    int solution[ROWS][COLS];
    
    
    LoadPuzzle( original[ROWS][COLS], solution[ROWS][COLS], ROWS, COLS);
    
    printf("%d", original[1][5]);
    
    return 0;
    
}
with this I get the following warning: "warning: passing arg1 of 'LoadPuzzle' makes pointer from integer without a cast"

messing around with the & and * I still didn't have any luck. The program/function will run but as soon as I enter in the filename with all the integers I get a segmentation error. I know it doesn't help not being able to see the definition for LoadPuzzle(), the header and object file for that function is given by the professor, others have made it work so I know 100% that the function is written correctly without any errors. Any help would be greatly appreciated! Thanks!