How to pass arrays to functions?

So i have the code (below) and no matter how i try to pass the array it just won't work? I keep getting the error: No matching function for call to "wpisz_park". What am i doing wrong? I am new to programming so if someone could explain what the best way to pass arrays to functions is I would be incredibly grateful. :)

Sidenote: Do you pass vectors the same way as arrays?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <iostream>

using namespace std;


void wpisz_park(int n,int *park[n][n])
{
    for (int i=0;i<n;i++)
    {
        for(int j=0;j<n;j++)
            cin>>*park[i][j];
    }
}

int main()
{
    int n;
    int park[n][n];
    wpisz_park(n,park);
    return 0;
}
Topic archived. No new replies allowed.